This topic contains 0 replies, has 1 voice, and was last updated by Tawfek Daghistani 9 years, 7 months ago.
- Topic
Hello ,
I was trying to setup the integration with magento store , Oro was able to connect to magento and start the syncing job .
I had enabled all connectors (customer , order , carts and states )
this store has about 50K customers , the process took about 6 hours , after that it only import 9625 customers and no orders12345678910111213141516171819202122232425262728293031PHP Catchable fatal error: Argument 1 passed to OroCRM\Bundle\MagentoBundle\Entity\Customer::setStore() must be an instance of OroCRM\Bundle\MagentoBundle\Entity\Store, null given, called in /home/sshadmin/Sites/crm/vendor/oro/crm/src/OroCRM/Bundle/MagentoBundle/ImportExport/Strategy/CustomerStrategy.php on line 154 and defined in /home/sshadmin/Sites/crm/vendor/oro/crm/src/OroCRM/Bundle/MagentoBundle/Entity/Customer.php on line 305PHP Stack trace:PHP 1. {main}() /home/sshadmin/Sites/crm/app/console:0PHP 2. Symfony\Component\Console\Application->run() /home/sshadmin/Sites/crm/app/console:23PHP 3. JMS\JobQueueBundle\Console\Application->doRun() /home/sshadmin/Sites/crm/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:121PHP 4. Symfony\Bundle\FrameworkBundle\Console\Application->doRun() /home/sshadmin/Sites/crm/vendor/jms/job-queue-bundle/JMS/JobQueueBundle/Console/Application.php:44PHP 5. Symfony\Component\Console\Application->doRun() /home/sshadmin/Sites/crm/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96PHP 6. Symfony\Component\Console\Application->doRunCommand() /home/sshadmin/Sites/crm/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:191PHP 7. Symfony\Component\Console\Command\Command->run() /home/sshadmin/Sites/crm/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:898PHP 8. Oro\Bundle\IntegrationBundle\Command\SyncCommand->execute() /home/sshadmin/Sites/crm/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:244PHP 9. OroBundleIntegrationBundleProviderSyncProcessor_0000000078517db80000000035bd2c43->process() /home/sshadmin/Sites/crm/vendor/oro/platform/src/Oro/Bundle/IntegrationBundle/Command/SyncCommand.php:127PHP 10. Oro\Bundle\IntegrationBundle\Provider\SyncProcessor->process() /home/sshadmin/Sites/crm/app/cache/prod/appProdProjectContainer.php:12PHP 11. Oro\Bundle\IntegrationBundle\Provider\SyncProcessor->processConnectors() /home/sshadmin/Sites/crm/vendor/oro/platform/src/Oro/Bundle/IntegrationBundle/Provider/SyncProcessor.php:74PHP 12. Oro\Bundle\IntegrationBundle\Provider\SyncProcessor->processIntegrationConnector() /home/sshadmin/Sites/crm/vendor/oro/platform/src/Oro/Bundle/IntegrationBundle/Provider/SyncProcessor.php:103PHP 13. Oro\Bundle\IntegrationBundle\Provider\SyncProcessor->processImport() /home/sshadmin/Sites/crm/vendor/oro/platform/src/Oro/Bundle/IntegrationBundle/Provider/SyncProcessor.php:184PHP 14. OroBundleIntegrationBundleImportExportJobExecutor_0000000078517da10000000035bd2c43->executeJob() /home/sshadmin/Sites/crm/vendor/oro/platform/src/Oro/Bundle/IntegrationBundle/Provider/SyncProcessor.php:198PHP 15. Oro\Bundle\ImportExportBundle\Job\JobExecutor->executeJob() /home/sshadmin/Sites/crm/app/cache/prod/appProdProjectContainer.php:12PHP 16. Oro\Bundle\IntegrationBundle\ImportExport\Job\Executor->doJob() /home/sshadmin/Sites/crm/vendor/oro/platform/src/Oro/Bundle/ImportExportBundle/Job/JobExecutor.php:87PHP 17. Akeneo\Bundle\BatchBundle\Job\Job->execute() /home/sshadmin/Sites/crm/vendor/oro/platform/src/Oro/Bundle/IntegrationBundle/ImportExport/Job/Executor.php:31PHP 18. Akeneo\Bundle\BatchBundle\Job\Job->doExecute() /home/sshadmin/Sites/crm/vendor/akeneo/batch-bundle/Akeneo/Bundle/BatchBundle/Job/Job.php:296PHP 19. Akeneo\Bundle\BatchBundle\Job\Job->handleStep() /home/sshadmin/Sites/crm/vendor/akeneo/batch-bundle/Akeneo/Bundle/BatchBundle/Job/Job.php:361PHP 20. Akeneo\Bundle\BatchBundle\Step\AbstractStep->execute() /home/sshadmin/Sites/crm/vendor/akeneo/batch-bundle/Akeneo/Bundle/BatchBundle/Job/Job.php:400PHP 21. Oro\Bundle\BatchBundle\Step\ItemStep->doExecute() /home/sshadmin/Sites/crm/vendor/akeneo/batch-bundle/Akeneo/Bundle/BatchBundle/Step/AbstractStep.php:158PHP 22. Oro\Bundle\BatchBundle\Step\StepExecutor->execute() /home/sshadmin/Sites/crm/vendor/oro/platform/src/Oro/Bundle/BatchBundle/Step/ItemStep.php:35PHP 23. Oro\Bundle\BatchBundle\Step\StepExecutor->process() /home/sshadmin/Sites/crm/vendor/oro/platform/src/Oro/Bundle/BatchBundle/Step/StepExecutor.php:159PHP 24. Oro\Bundle\ImportExportBundle\Processor\RegistryDelegateProcessor->process() /home/sshadmin/Sites/crm/vendor/oro/platform/src/Oro/Bundle/BatchBundle/Step/StepExecutor.php:191PHP 25. Oro\Bundle\ImportExportBundle\Processor\ImportProcessor->process() /home/sshadmin/Sites/crm/vendor/oro/platform/src/Oro/Bundle/ImportExportBundle/Processor/RegistryDelegateProcessor.php:52PHP 26. OroCRM\Bundle\MagentoBundle\ImportExport\Strategy\CustomerStrategy->process() /home/sshadmin/Sites/crm/vendor/oro/platform/src/Oro/Bundle/ImportExportBundle/Processor/ImportProcessor.php:99PHP 27. OroCRM\Bundle\MagentoBundle\ImportExport\Strategy\CustomerStrategy->updateStoresAndGroup() /home/sshadmin/Sites/crm/vendor/oro/crm/src/OroCRM/Bundle/MagentoBundle/ImportExport/Strategy/CustomerStrategy.php:63PHP 28. OroCRM\Bundle\MagentoBundle\Entity\Customer->setStore() /home/sshadmin/Sites/crm/vendor/oro/crm/src/OroCRM/Bundle/MagentoBundle/ImportExport/Strategy/CustomerStrategy.php:154and I noticed the batch log file erros like this one below :
1234[2014-09-03 06:26:50] batch.WARNING: The Oro\Bundle\IntegrationBundle\ImportExport\Writer\PersistentBatchWriter was unable to handle the following item: [] (REASON: A new entity was found through the relationship 'OroCRM\Bundle\ContactBundle\Entity\Contact#accounts' that was not configured to cascade persist operations for entity: . To solve this issue: Either explicitly call EntityManager#persist() on this unknown entity or configure cascade persist this association in the mapping for example @ManyToOne(..,cascade={"persist"}).Following customers were not imported: 2282, 2283, 2284, 2285, 2286, 2287, 2288, 2289, 2290, 2291, 2292, 2293, 2294, 2295, 2296, 2297, 2298, 2299, 2300, 2301, 2302, 2303, 2304, 2305, 2306) [] []do you have any suggestions ?
Thanks
The forum ‘OroCRM – Installation/Technical Issues or Problems’ is closed to new topics and replies.