cancel
Showing results for 
Search instead for 
Did you mean: 

Can I disable UniqueAttributesInterceptor? What's the effect of it?

Former Member
0 Kudos

When importing data to Product(extends Product), OrderableProduct(extends VariantProduct), Tool(extends Product) and OrderableTool(extends VariantProduct), we used [allownull=true] statement in impex because they have same codes among different types and cannot import all data into all types because of "de.hybris.platform.servicelayer.interceptor.impl.UniqueAttributesInterceptor".

Can I disable UniqueAttributesInterceptor so that I can import the data have the same codes ?

I really want to know if there are negative impact...

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Zhiyu,

You can import the data in legacy mode, with that option the interceptors will be fired. You are trying to import products with the same code?

Cheers

Former Member
0 Kudos

Thanks a lot.But I want create the Product and OrderableProduct in hmc or cockpit,too. And they have the same one code.It couldn't skip the interceptor and select the legacy mode.What can I do for it ?

Zhiyu

Former Member
0 Kudos

Hi,

The issue is that product code is a unique field, I think that if you define an index with product.code and another attribute that makes unique that product, the issue will be solved.

Cheers