Magento Forum

   
Invalid Block Type for Import CSV File
 
bhoudashelt
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2012-08-23
 

Hello,

I am having trouble importing a CSV file using Magento’s Import function. When I upload a CSV file and check its data the Validate section appears but is blank (see attached screenshot). I have looked at the exception log and whenever I try to upload the CSV file I get a Mage_Core_Exception Invalid Block Type error with the following code:

* Throw Exception
*
* @param string $message
* @param string $messageStorage
* @throws Mage_Core_Exception
*/
public static function throwException($message, $messageStorage = null)
{
if ($messageStorage && ($storage = self::getSingleton($messageStorage))) {
$storage->addError($message);
}
throw new Mage_Core_Exception($message);
}

Has anyone had any problems similar to what we are experiencing? If so, what should I look for to fix this issue?

Thanks for your help.

Image Attachments
Screen shot 2012-12-20 at 11.10.08 AM.png
 
Magento Community Magento Community
Magento Community
Magento Community
 
bhoudashelt
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2012-08-23
 

Here is the exception log error I get when the import CSV validation problems occur:

2012-12-26T16:11:39+00:00 ERR (3):
exception ‘Mage_Core_Exception’ with message ‘Invalid block type: ‘ in /usr/local/www/apache22/data/magento/app/Mage.php:594
Stack trace:
#0 /usr/local/www/apache22/data/magento/app/code/core/Mage/Core/Model/Layout.php(495): Mage::throwException(’Invalid block t...’)
#1 /usr/local/www/apache22/data/magento/app/code/core/Mage/Core/Model/Layout.php(437): Mage_Core_Model_Layout->_getBlockInstance(’’, Array)
#2 /usr/local/www/apache22/data/magento/app/code/core/Mage/Core/Model/Layout.php(472): Mage_Core_Model_Layout->createBlock(’’, ‘root’)
#3 /usr/local/www/apache22/data/magento/app/code/core/Mage/Core/Model/Layout.php(239): Mage_Core_Model_Layout->addBlock(’’, ‘root’)
#4 /usr/local/www/apache22/data/magento/app/code/core/Mage/Core/Model/Layout.php(205): Mage_Core_Model_Layout->_generateBlock(Object(Mage_Core_Model_Layout_Element), Object(Mage_Core_Model_Layout_Element))
#5 /usr/local/www/apache22/data/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(344): Mage_Core_Model_Layout->generateBlocks()
#6 /usr/local/www/apache22/data/magento/app/code/core/Mage/Cms/Helper/Page.php(113): Mage_Core_Controller_Varien_Action->generateLayoutBlocks()
#7 /usr/local/www/apache22/data/magento/app/code/core/Mage/Cms/Helper/Page.php(52): Mage_Cms_Helper_Page->_renderPage(Object(Mage_Cms_IndexController), ‘home’)
#8 /usr/local/www/apache22/data/magento/app/code/core/Mage/Cms/controllers/IndexController.php(45): Mage_Cms_Helper_Page->renderPage(Object(Mage_Cms_IndexController), ‘home’)
#9 /usr/local/www/apache22/data/magento/app/code/core/Mage/Core/Controller/Varien/Action.php(419): Mage_Cms_IndexController->indexAction()
#10 /usr/local/www/apache22/data/magento/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(250): Mage_Core_Controller_Varien_Action->dispatch(’index’)
#11 /usr/local/www/apache22/data/magento/app/code/core/Mage/Core/Controller/Varien/Front.php(176): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#12 /usr/local/www/apache22/data/magento/app/code/core/Mage/Core/Model/App.php(354): Mage_Core_Controller_Varien_Front->dispatch()
#13 /usr/local/www/apache22/data/magento/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#14 /usr/local/www/apache22/data/magento/index.php(87): Mage::run(’’, ‘store’)
#15 {main}

 
Magento Community Magento Community
Magento Community
Magento Community
 
OliverMoeller
Jr. Member
 
Total Posts:  7
Joined:  2012-08-21
 

Take a look - http://stackoverflow.com/questions/12090329/weird-invalid-block-type-error-in-magento
Maybe this link will help you. If not it is better to make your import one more time. Sometimes it helps to restart it. Also you can try to cobvert your data file. I this also won’t help, i suggest to try file2cart. I have found this service over here - http://www.file2cart.com/shopping-cart-data-import-options/5121-import-csv-to-magento.
I heard that it solves a lot of problems, because it is fully automated. So you can try it.

Cheers

 
Magento Community Magento Community
Magento Community
Magento Community
 
bhoudashelt
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2012-08-23
 

Thank you very much for the links! I will check them out.

 
Magento Community Magento Community
Magento Community
Magento Community
 
OliverMoeller
Jr. Member
 
Total Posts:  7
Joined:  2012-08-21
 
bhoudashelt - 27 December 2012 07:11 AM

Thank you very much for the links! I will check them out.

You welcome. Hope it helps=))

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top