0

I did migration for catalog and category in fresh Magento1.9.0.1. to Magento2.2.7 migration was successfully completed after lot's of efforts :)

Actual issue here

But after that i have copied catalog_ table to my current site that is already migrated before so i just want to update with newly added product from my old site.

Everything was working perfect but the issue is when try to save some custom attribute it was not saved.

So i have deleted previous attribute and create same with new upgradeSchemaand it is working fine.

So what could be problem here that previously it was not working any relation table is causing this issue?

1 Answer 1

0

So I found the issue with the custom customer attribute.

My process was :

  1. Create all my attributes with install/updrage scripts in my magento mpdules
  2. Use the Magento migration tool to migrate from Magento 1 & 2
  3. Test my code

The issue is that after the migration my attributes lost the used_in_forms value, were not assigned to any website.

I had to add a step in my migration to reset my customer attributes.

$attribute = $this->_eavConfig->getAttribute('customer', $attributeCode);
        $attribute->setData('used_in_forms', ['adminhtml_customer']);
        $attribute->setData('is_user_defined', false);
        $attribute->setData('is_system', false);
        $attribute->save();

This solved the problème for all the attributes needed.

Reference Link

3
  • Yes you might be right for customer attribute but my issue is with category attribute.I don't think we have to assign form to category attribute
    – Zahirabbas
    Commented Jan 30, 2020 at 8:24
  • try to indexer:reindex Commented Jan 30, 2020 at 13:20
  • already did it many times
    – Zahirabbas
    Commented Jan 31, 2020 at 4:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.