Running Tweakwise Export on Magento Enterprise 2.1.9 gives an error.
$ php bin/magento tweakwise:export
[Zend_Db_Statement_Exception]
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'catalog_category_entity_varchar.entity_id' in 'on clause', query was: SELECT `catalog_category_entity`.`entity_id`, 0 AS `store_id`, 'parent_id' AS `attribute_id`, `catalog_cate
gory_entity`.`parent_id` AS `value`, `catalog_category_entity`.`path` FROM `catalog_category_entity` WHERE (catalog_category_entity.created_in <= '1500295827') AND (catalog_category_entity.updated_in > '1500295827') UNION SELECT `cat
alog_category_entity`.`entity_id`, 0 AS `store_id`, 55 AS `attribute_id`, `catalog_category_entity`.`path` AS `value`, `catalog_category_entity`.`path` FROM `catalog_category_entity` WHERE (catalog_category_entity.created_in <= '1500
295827') AND (catalog_category_entity.updated_in > '1500295827') UNION SELECT `catalog_category_entity`.`entity_id`, 0 AS `store_id`, 65 AS `attribute_id`, `catalog_category_entity`.`level` AS `value`, `catalog_category_entity`.`path
` FROM `catalog_category_entity` WHERE (catalog_category_entity.created_in <= '1500295827') AND (catalog_category_entity.updated_in > '1500295827') UNION SELECT `catalog_category_entity`.`entity_id`, 0 AS `store_id`, 56 AS `attribute
_id`, `catalog_category_entity`.`position` AS `value`, `catalog_category_entity`.`path` FROM `catalog_category_entity` WHERE (catalog_category_entity.created_in <= '1500295827') AND (catalog_category_entity.updated_in > '1500295827')
UNION SELECT `main_table`.`entity_id`, `attribute_table`.`store_id`, `attribute_table`.`attribute_id`, `attribute_table`.`value`, `catalog_category_entity`.`path` FROM `catalog_category_entity_varchar` AS `attribute_table`
INNER JOIN `catalog_category_entity` AS `main_table` ON attribute_table.row_id = main_table.row_id AND (main_table.created_in <= '1500295827' AND main_table.updated_in > '1500295827')
INNER JOIN `catalog_category_entity` ON catalog_category_entity.entity_id = catalog_category_entity_varchar.entity_id AND (catalog_category_entity.created_in <= '1500295827' AND catalog_category_entity.updated_in > '1500295827') WHE
RE (attribute_id IN (45)) AND (store_id = 0 OR store_id = 1) UNION SELECT `main_table`.`entity_id`, `attribute_table`.`store_id`, `attribute_table`.`attribute_id`, `attribute_table`.`value`, `catalog_category_entity`.`path` FROM `cat
alog_category_entity_int` AS `attribute_table`
INNER JOIN `catalog_category_entity` AS `main_table` ON attribute_table.row_id = main_table.row_id AND (main_table.created_in <= '1500295827' AND main_table.updated_in > '1500295827')
INNER JOIN `catalog_category_entity` ON catalog_category_entity.entity_id = catalog_category_entity_int.entity_id AND (catalog_category_entity.created_in <= '1500295827' AND catalog_category_entity.updated_in > '1500295827') WHERE (
attribute_id IN (46)) AND (store_id = 0 OR store_id = 1) ORDER BY `path` ASC, `entity_id` ASC, `store_id` ASC
[PDOException]
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'catalog_category_entity_varchar.entity_id' in 'on clause'
This is caused by getAttributeSelectEnterprise() in magento/vendor/emico/tweakwise-export/src/Model/Write/EavIterator.php:
Running Tweakwise Export on Magento Enterprise 2.1.9 gives an error.
This is caused by
getAttributeSelectEnterprise()
in magento/vendor/emico/tweakwise-export/src/Model/Write/EavIterator.php:This function tries to use the column "entity_id", but Magento has changed the name of this column to "row_id":