cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

VariantCategory and a VariantValueCategory cannot have the same code?

crescenzorega
Active Participant
564

The customer has provided us with a list of VariantValueCategory categories, in the file there is a VariantValueCategory with the same code as a VariantCategory during the initialize I get this error

ambiguous unique keys ... for model VariantValueCategoryModel (<unsaved>) - found 1 item(s) using the same keys

If i try to create the VariantValueCategory with the same name from the back office I still get a duplication error

"commonElementCount": 113,
"localizedMessage": "[de.hybris.platform.servicelayer.interceptor.impl.UniqueAttributesInterceptor@c480129]:ambiguous unique keys ... for model VariantValueCategoryModel (<unsaved>) - found 1 item(s) using the same keys",

In your opinion, is it correct that a VariantCategory and a VariantValueCategory cannot have the same code?

Regards,

Crescenzo

Accepted Solutions (1)

Accepted Solutions (1)

geffchang
Active Contributor

VariantCategory and VariantValueCategory are subtypes of Category. So, you cannot have the same codes (not name) for Category, VariantCategory, or VariantValueCategory.

Answers (0)