Disable Interceptors
Disable Interceptors via ImpEx
Similarly, the following import fails:
INSERT_UPDATE Currency;isocode[unique=true];digits;symbol ;EUR_Test;-2;€
with the following exception:
[de.hybris.platform.servicelayer.i18n.interceptors.ValidateCurrencyDataInterceptor@13097d1b]: Number of digits for CurrencyModel must be greater than 0.;EUR;-2;€
To disable all validator type interceptors, use the disable.interceptor.types=validate header attribute:
INSERT_UPDATE Currency[disable.interceptor.types=validate];isocode[unique=true];symbol;digits; ;EUR_Test2;$;-2;
To disable specific interceptors, specify a comma-separated bean-IDs list for the disable.interceptor.beans header attribute. The following impex specifies only one such interceptor:
INSERT_UPDATE Currency[disable.interceptor.beans='validateCurrencyDataInterceptor'];isocode[unique=true];symbol;digits; ;EUR_Test;$;-2;
To disable UniqueAttributesValidator, specify a comma-separated item types for which you want to disable it:
INSERT_UPDATE Currency[disable.UniqueAttributesValidator.for.types='Currency'];isocode[unique=true];symbol;digits; ;EUR_Test;$;-2;
If you want to specify more than one ID, put the bean IDs in apostrophes: <'beanID'>.
Comments
Post a Comment