Product Type is invalid or not supported in rows for custom product type

13,129

With that error there are two possible problems.

a.) You haven't got a _type column in your csv.

I'm going to assume you have at this point.

b.) Magento cannot find the type model for bookable.

The type models are loaded from xml config in the protected method _initTypeModels of that class. Looking at that method you will see that the supported models are loaded via the global/importexport/import_product_types node in your config. So whatever module is including this bookable product will need to add a node to it's config something along the lines of...

<global>
    <importexport>
        <import_product_types>
            <bookable>yourModule/import_entity_product_type_bookable</bookable>
        </import_product_types>
    </importexport>
</global>

Obviously you will also need to create the class YourCompany_YourModule_Model_Import_Entity_Product_type_Bookable, you can check out one of the inbuilt classes for an example (e.g. Mage_ImportExport_Model_Import_Entity_Product_Type_Simple).

Share:
13,129
Gowri
Author by

Gowri

Technologies : Php /MySQL, jQuery, JavaScript Open Source : WordPress, Magento, Symfony, Joomla and Zend framework OWN Android App : Easy Text Twitter : @gchokeen Blog : Code Cocktail Wordpress : @gchokeen

Updated on June 04, 2022

Comments

  • Gowri
    Gowri almost 2 years

    I'm having Custom product type product in my Magento store like "bookable".so i try to import 3 product with "_type" value "bookable". It throw me the error

       Product Type is invalid or not supported in rows: 1, 2, 3
    

    I found the validation i checked here in core

    app/code/core/Mage/importexport/Model/import/Entity/Product.php

    line around 1439.

    How can i solve this problem

    Thanks in advance

  • Gowri
    Gowri over 12 years
    :It obviously excellent solution, But i'm facing memory leak on product import. do you have any hint to solve this issue
  • Peter O'Callaghan
    Peter O'Callaghan over 12 years
    Unfortunately Magento is full of memory leaks when dealing with large collections of objects. Short of upping your memory limit or importing in batches, I don't know of any good fix.