Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with catalog_category_product #67

Closed
dariodor opened this issue Jul 7, 2015 · 3 comments
Closed

Error with catalog_category_product #67

dariodor opened this issue Jul 7, 2015 · 3 comments

Comments

@dariodor
Copy link

dariodor commented Jul 7, 2015

I'm not sure if this is a bug. Magento give this error after a successful Category-product relation import.

exception 'Mage_Core_Exception' with message 'Invalid entity_type specified: catalog_category_product' in /home/user/domains/domain.com/public_html/berto/app/Mage.php:595
#0 /home/user/domains/domain.com/public_html/berto/app/code/core/Mage/Eav/Model/Config.php(328): Mage::throwException('Invalid entity_...')
#1 /home/user/domains/domain.com/public_html/berto/app/code/community/Ho/Import/Model/Import.php(1005): Mage_Eav_Model_Config->getEntityType('catalog_categor...')
#2 /home/user/domains/domain.com/public_html/berto/app/code/community/Ho/Import/Model/Import.php(1091): Ho_Import_Model_Import->_getEntityTypeId()

From Ho Import function, row 1005

    protected function _getEntityTypeId()
    {
        /** @var Mage_Eav_Model_Entity_Type $entityType */
        $entityType = Mage::getSingleton('eav/config')->getEntityType((string) $this->_getEntityType());

        return $entityType->getId();
    }

Profile code in config.xml:

<!-- CATEGORY PRODUCT RELATION IMPORT -->
            <category_products>
                <entity_type>catalog_category_product</entity_type>
                <source model="ho_import/source_adapter_xml">
                    <file>var/import/source.xml</file>
                </source>
                <import_options>
                    <partial_indexing>1</partial_indexing>
                </import_options>
                <fieldmap>
                    <_root value="Default Category" />
                    <_category helper="ho_import/import::formatField">
                        <format>%s/%s</format>
                        <fields>
                            <father field="Categoria_x0020_Descrizione" />
                            <child field="Tipologia_x0020_Descrizione" />
                        </fields>
                    </_category>
                    <_sku helper="ho_import/import::formatField">
                        <format>%s-%s</format>
                        <fields>
                            <sku field="barcode" />
                            <size field="tg" />
                        </fields>
                    </_sku>
                    <position value="0" />
                </fieldmap>
            </category_products>

ho_import.log

2015-07-07T09:08:03+00:00 INFO (6): Processing 53 rows from temp csv file (/home/user/domains/domain.com/public_html/berto/var/import/category_products.csv)
2015-07-07T09:08:03+00:00 INFO (6): Start profile /home/user/domains/domain.com/public_html/berto/var/import/category_products.csv
2015-07-07T09:08:03+00:00 INFO (6): Profile category_products done in 0.27 seconds, 196.3 entities/s, 196.3 rows/s.
2015-07-07T09:08:03+00:00 INFO (6): Clean entity link table
@dariodor dariodor closed this as completed Jul 8, 2015
@jeremylan
Copy link

Hi @dariodor, I also got this error importing category_products.

What was your resolution? I'm not sure I understand from you last comment. The import worked successfully for me too, I just got the error at the end.

Cheers

@infabo
Copy link
Contributor

infabo commented Nov 19, 2015

Same issue here:

Invalid entity_type specified: catalog_category_product

@tormit
Copy link
Contributor

tormit commented Jan 19, 2016

Fixed it: #112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants