ho-nl / magento1-Ho_Import

A Magento Module that allows you to map fields and import all sorts of file formats, sources and entities. Fast and Low Memory
175 stars 55 forks source link

Error when importing "catalog_category_product" profile #109

Closed infabo closed 7 years ago

infabo commented 8 years ago

php hoimport.php -action import -profile demo_category_product 09:59:17 - 14MB Setting option partial_indexing to 0 09:59:17 - 14MB Mapping source fields and saving to temp csv file (/var/www/demo/vhosts/demo/htdocs/var/import/demo_category_product.csv) 09:59:17 - 14MB Getting source adapter ho_import/source_adapter_db 09:59:17 - 14MB Fetching data... 09:59:17 - 15MB Done 09:59:18 - 16MB Fieldmapping demo_category_product with 2439 rows, 2439 entities (done in 0.62 seconds, 3933.87 rows/s) 09:59:18 - 16MB Processing 2439 rows from temp csv file (/var/www/demo/vhosts/demo/htdocs/var/import/demo_category_product.csv) 09:59:18 - 16MB Setting option action to import 09:59:18 - 16MB Setting option profile to demo_category_product 09:59:18 - 16MB Start profile /var/www/demo/vhosts/demo/htdocs/var/import/demo_category_product.csv 09:59:18 - 18MB Profile demo_category_product done in 0.35 seconds, 6968.57 entities/s, 6968.57 rows/s. 09:59:18 - 18MB No errors found in 2439 rows 09:59:18 - 18MB Clean entity link table 09:59:18 - 18MB Invalid entity_type specified: catalog_category_product

tdgroot commented 8 years ago

That's because there's no cleaning mode for entity type catalog_category_product. Try disabling it for that profile.

tdgroot commented 8 years ago

Same issue as https://github.com/ho-nl/magento1-Ho_Import/issues/69

JeroenVanLeusden commented 7 years ago

@infabo What are you trying to achieve here? The catalog_category_product will already replace the product in the category by default.

infabo commented 7 years ago

@JeroenVanLeusden if this is already the case, maybe needs a mention in README or/and console output ("hey, no need to specify cleanup. category-product relation nuked by default").

JeroenVanLeusden commented 7 years ago

Thank you for the suggestion, it's fixed on the develop branch and will be included in the next release.