sync-magento-2-migration icon indicating copy to clipboard operation
sync-magento-2-migration copied to clipboard

Error "enterprise_catalog_product_rewrite" table not found

Open erfanimani opened this issue 3 years ago • 2 comments

There's a hard reference to Magento Enterprise tables here, causing issues with product export:

https://github.com/EcomDev/sync-magento-2-migration/blob/main/src/ProductInfo.php#L408

I managed to get around it by excluding product URL rewrites, and generating rewrites using this: https://github.com/elgentos/regenerate-catalog-urls

Should there be a check to see if that table exists and/or the current version is Enterprise?

erfanimani avatar Dec 17 '21 01:12 erfanimani

true, this one is based on m1 with EE database structure. It is however possible to use core_url_rewrite table for export, but don't have yet time to make it happen.

IvanChepurnyi avatar Dec 21 '21 16:12 IvanChepurnyi

The implementation solution is to check for table existence, if the enterprise table doesn't exist, switch to using core_url_rewrite

erfanimani avatar Nov 17 '22 09:11 erfanimani