akeneo pim - Move attributes from model to variant not updating raw_values

419 Views Asked by At

we are using akeneo v4 now and still stumbling over the following issue. Our customer is moving an attribute from the common model to the variant. All works fine, but when opening a product model which and saving it an error occures which says that

Cannot set the property "attribute_name" to this entity as it is not in the attribute set

as this is right because the attribute should not appear in the product-model anymore. Instead it should be in the variant.

Anyone has a clue why the raw values of the product model is not updated?

Regards Peter

2

There are 2 best solutions below

5
Lam On BEST ANSWER

You need to run the job Compute family variant structure changes to correct the family variant structure.

1
mbraeuner On

related to answer of Lam. Execute the console command:

bin/console akeneo:batch:job compute_family_variant_structure_changes -c "{\"family_variant_codes\": [\"your_family_variant_code\"]}"