Custom Attributes of Customer missing

Hello everybody,
after migration, all custom attributes of customer entity where migrated and the data is there. But when you load a customer via customerRepository, the getCustomAttribute function does not include those attributes.
Loading via Factory and using getData works finde.
What is missing for the custom attributes? Thank you.
Best wishes

3 answers

Profile photo of hcgmbh 70.00 $tone January 24, 2018
Public

The problem seem to be based on the hard coded Set IDs, for example in CustomerMetadataInterface. Is there any fix for that? After Migration, Customers have a new set.

#1
Profile photo of hcgmbh 70.00 $tone January 24, 2018
Public

If you correct the set ids hard in Magento 2code, CustomAttributes are loaded, but save has the effect, that all custom attributes are deleted (not the attributes, but the values). Can anybody help? Thanks in advance!!!!

#2
Profile photo of Mall Staff 184060.00 $tone January 24, 2018
Public

Hi there,

If you correct the set ids hard in Magento 2code, CustomAttributes are loaded, but save has the effect, that all custom attributes are deleted (not the attributes, but the values)

Could you explain more information about the issue as you mentioned. I will check further and reply you more later.
Regards,
Mall.

#3

Please login or Register to Submit Answer

Written By

Comments