on 10-02-2014 5:14 PM - last edited on 02-04-2024 5:46 AM by postmig_api_4
Hi,
we tried to import Customer Master Data from ERP to hybris commerce suite. The data hub creates ImpEx which is not compatible with Hybris 5.3. See the following ImpEx Script. We also tried to import it with Hybris 5.1 and on this version it works without errors.
INSERT_UPDATE B2BUnit;;uid[unique=true];description;userDiscountGroup(UserDiscountGroup.code);Name;active;locName[lang=en];userPriceGroup(UserPriceGroup.code);buyer;groups(uid) ;17;0000123456;Mustermann;;Mustermann;true;Mustermann;;true;
02.10.2014 16:19:33: ERROR: line 2 at main script: line 2: cannot create B2BUnit with values ItemAttributeMap[ registry: null, type: , data: {active=true, locname={8796093055008->en=Mustermann}, uid=0000123456, description=Mustermann, name=Mustermann, buyer=true} ] due to [de.hybris.platform.validation.interceptors.ValidationInterceptor@436f355a]: The attribute "Name" must not be empty
Is this a bug in ImpEx or data hub?
Kind regards,
Copy/paste from https://wiki.hybris.com/pages/viewpage.action?pageId=232626835
As workaround you can remove the Constraint on the name field (B2BUnitNameNotBlankConstraint) in the admincockpit.
Actually deleting the constraint seems to be a valid option, because it's (accidentally?) defined on a localised attribute. The implementation of our validation engine only ensures that the single value which is localised in the current session language is inspected. In all places where localised values are explicitly set by their Locale (as it happens in ImpEx) that behaviour is totally random. In case you don't want to delete the constraint: Please make sure to run your ImpEx via hmc ( not hac! - you'll find a wizard in System/Tools/Import) which allows to define locale settings. These must match the language you're using in the ImpEx headers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.