Demo data import fails with Call to a member function getIdProductAbstract() on null


#1

running /vendor/bin/install causes the installer to fail with:

Store: DE | Environment: development
Start "full" import
Error - Exception: Call to a member function getIdProductAbstract() on null 
in /data/shop/development/current/src/Pyz/Zed/DataImport/Business/Model/ProductAbstractStore/Writer/ProductAbstractStorePropelDataSetWriter.php (69)

Command: vendor/bin/console data:import

Trace: 
#0 /data/shop/development/current/src/Pyz/Zed/DataImport/Business/Model/ProductAbstractStore/Writer/ProductAbstractStorePropelDataSetWriter.php(50): Pyz\Zed\DataImport\Business\Model\ProductAbstractStore\Writer\ProductAbstractStorePropelDataSetWriter->getIdProductAbstractBySku('137')
#1 /data/shop/development/current/src/Pyz/Zed/DataImport/Business/Model/ProductAbstractStore/Writer/ProductAbstractStorePropelDataSetWriter.php(38): Pyz\Zed\DataImport\Business\Model\ProductAbstractStore\Writer\ProductAbstractStorePropelDataSetWriter->createOrUpdateProductAbstractStore(Object(Spryker\Zed\DataImport\Business\Model\DataSet\DataSet))
#2 /data/shop/development/current/src/Pyz/Zed/DataImport/Business/DataImportFacade.php(117): Pyz\Zed\DataImport\Business\Model\ProductAbstractStore\Writer\ProductAbstractStorePropelDataSetWriter->write(Object(Spryker\Zed\DataImport\Business\Model\DataSet\DataSet))
#3 /data/shop/development/current/src/Pyz/Zed/DataImport/Communication/Plugin/ProductAbstractStore/ProductAbstractStorePropelWriterPlugin.php(29): Pyz\Zed\DataImport\Business\DataImportFacade->writeProductAbstractStoreDataSet(Object(Spryker\Zed\DataImport\Business\Model\DataSet\DataSet))
#4 /data/shop/development/current/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataSet/DataSetWriterCollection.php(33): Pyz\Zed\DataImport\Communication\Plugin\ProductAbstractStore\ProductAbstractStorePropelWriterPlugin->write(Object(Spryker\Zed\DataImport\Business\Model\DataSet\DataSet))
#5 /data/shop/development/current/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataImporterDataSetWriterAware.php(68): Spryker\Zed\DataImport\Business\Model\DataSet\DataSetWriterCollection->write(Object(Spryker\Zed\DataImport\Business\Model\DataSet\DataSet))
#6 /data/shop/development/current/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataImporter.php(143): Spryker\Zed\DataImport\Business\Model\DataImporterDataSetWriterAware->importDataSet(Object(Spryker\Zed\DataImport\Business\Model\DataSet\DataSet))
#7 /data/shop/development/current/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataImporterDataSetWriterAware.php(48): Spryker\Zed\DataImport\Business\Model\DataImporter->importByDataImporterConfiguration(Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
#8 /data/shop/development/current/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataImporterCollection.php(190): Spryker\Zed\DataImport\Business\Model\DataImporterDataSetWriterAware->import(Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
#9 /data/shop/development/current/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataImporterCollection.php(149): Spryker\Zed\DataImport\Business\Model\DataImporterCollection->executeDataImporter(Object(Spryker\Zed\DataImport\Business\Model\DataImporterDataSetWriterAware), Object(Generated\Shared\Transfer\DataImporterReportTransfer), Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
#10 /data/shop/development/current/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/DataImportFacade.php(29): Spryker\Zed\DataImport\Business\Model\DataImporterCollection->import(Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
#11 /data/shop/development/current/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Communication/Console/DataImportConsole.php(110): Spryker\Zed\DataImport\Business\DataImportFacade->import(Object(Generated\Shared\Transfer\DataImporterConfigurationTransfer))
#12 /data/shop/development/current/vendor/symfony/console/Command/Command.php(255): Spryker\Zed\DataImport\Communication\Console\DataImportConsole->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#13 /data/shop/development/current/vendor/symfony/console/Application.php(964): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#14 /data/shop/development/current/vendor/symfony/console/Application.php(248): Symfony\Component\Console\Application->doRunCommand(Object(Spryker\Zed\DataImport\Communication\Console\DataImportConsole), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#15 /data/shop/development/current/vendor/spryker/console/src/Spryker/Zed/Console/Communication/ConsoleBootstrap.php(150): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#16 /data/shop/development/current/vendor/symfony/console/Application.php(148): Spryker\Zed\Console\Communication\ConsoleBootstrap->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#17 /data/shop/development/current/vendor/spryker/console/bin/console(21): Symfony\Component\Console\Application->run()
#18 {main}
Fatal error: Uncaught Error: Call to a member function inTransaction() on null in /data/shop/development/current/vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionWrapper.php:306
Stack trace:
#0 /data/shop/development/current/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Dependency/Propel/DataImportToPropelConnectionBridge.php(30): Propel\Runtime\Connection\ConnectionWrapper->inTransaction()
#1 /data/shop/development/current/vendor/spryker/data-import/src/Spryker/Zed/DataImport/Business/Model/DataSet/DataSetStepBrokerTransactionAware.php(92): Spryker\Zed\DataImport\Dependency\Propel\DataImportToPropelConnectionBridge->inTransaction()
#2 [internal function]: Spryker\Zed\DataImport\Business\Model\DataSet\DataSetStepBrokerTransactionAware->__destruct()
#3 {main}
  thrown in /data/shop/development/current/vendor/propel/propel/src/Propel/Runtime/Connection/ConnectionWrapper.php on line 306

How can we fix this to test the store using demo data?


#2

Hi @janmyszkier,

Are you using our demo data or your own?
In case of your data, it seems that sku’s are different in data/import/icecat_biz_data/product_abstract.csv and
data/import/icecat_biz_data/product_abstract_store.csv.

Best regards
Valerii


#3

I don’t think you’re right. as far as I can see
abstract_sku and product_abstract_sku match one another in both files