# Magento 1.9.2.2 Migration zu Shopware 5 - Syntax error beim Importieren von Kunden

**URL:** <https://forum.shopware.com/t/magento-1-9-2-2-migration-zu-shopware-5-syntax-error-beim-importieren-von-kunden/60683>\
**Category:** Installation/Einstieg\
**Created:** [26. Juli 2019 um 12:50 UTC](https://forum.shopware.com/t/magento-1-9-2-2-migration-zu-shopware-5-syntax-error-beim-importieren-von-kunden/60683 "2019-07-26T12:50:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ProWebs](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@ProWebs](https://forum.shopware.com/u/ProWebs)\
**Post date:** [26. Juli 2019 um 12:50 UTC](https://forum.shopware.com/t/magento-1-9-2-2-migration-zu-shopware-5-syntax-error-beim-importieren-von-kunden/60683/1 "2019-07-26T12:50:16Z")

</div>

Beim Importieren der Kunden tritt bei mir der folgende Fehler auf:

&nbsp;

**Beim Importieren der Kunden ist ein Fehler aufgetreten**

**Code** &nbsp;: 42000  
**Line** &nbsp;: 224  
**File** &nbsp;: /var/customers/webs/Studioaus/shopware/engine/Library/Zend/Db/Statement/Pdo.php

**Error** &nbsp;: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ’ ‚1‘, 1, ‚md5reversed‘, ‚720b573d5d414b30e177d0109938151c:2N‘)’ at line 2  
**Trace** &nbsp;: #0 /var/customers/webs/Studioaus/shopware/engine/Library/Zend/Db/Statement.php(297): Zend\_Db\_Statement\_Pdo-\>\_execute(Array) #1 /var/customers/webs/Studioaus/shopware/engine/Library/Zend/Db/Adapter/Abstract.php(470): Zend\_Db\_Statement-\>execute(Array) #2 /var/customers/webs/Studioaus/shopware/engine/Library/Zend/Db/Adapter/Pdo/Abstract.php(232): Zend\_Db\_Adapter\_Abstract-\>query(‚INSERT INTO s\_u…‘, Array) #3 /var/customers/webs/Studioaus/shopware/engine/Library/Enlight/Components/Db/Adapter/Pdo/Mysql.php(85): Zend\_Db\_Adapter\_Pdo\_Abstract-\>query(‚INSERT INTO s\_u…‘, Array) #4 /var/customers/webs/Studioaus/shopware/engine/Shopware/Plugins/Community/Backend/SwagMigration/Components/DbServices/Import/CustomerImporter.php(353): Enlight\_Components\_Db\_Adapter\_Pdo\_Mysql-\>query(‚INSERT INTO s\_u…‘) #5 /var/customers/webs/Studioaus/shopware/engine/Shopware/Plugins/Community/Backend/SwagMigration/Components/DbServices/Import/CustomerImporter.php(169): Shopware\SwagMigration\Components\DbServices\Import\CustomerImporter-\>createOrUpdateCustomer(Array) #6 /var/customers/webs/Studioaus/shopware/engine/Shopware/Plugins/Community/Backend/SwagMigration/Components/DbServices/Import/Import.php(177): Shopware\SwagMigration\Components\DbServices\Import\CustomerImporter-\>import(Array) #7 /var/customers/webs/Studioaus/shopware/engine/Shopware/Plugins/Community/Backend/SwagMigration/Components/Migration/Import/Resource/Customer.php(207): Shopware\SwagMigration\Components\DbServices\Import\Import-\>customer(Array) #8 /var/customers/webs/Studioaus/shopware/engine/Shopware/Plugins/Community/Backend/SwagMigration/Components/Migration/Import/Resource/Customer.php(82): Shopware\SwagMigration\Components\Migration\Import\Resource\Customer-\>migrateCustomer(Array, Object(Shopware\SwagMigration\Components\DbServices\Import\Import), ‚‘) #9 /var/customers/webs/Studioaus/shopware/engine/Shopware/Plugins/Community/Backend/SwagMigration/Controllers/Backend/SwagMigration.php(444): Shopware\SwagMigration\Components\Migration\Import\Resource\Customer-\>run() #10 /var/customers/webs/Studioaus/shopware/engine/Shopware/Plugins/Community/Backend/SwagMigration/Controllers/Backend/SwagMigration.php(479): Shopware\_Controllers\_Backend\_SwagMigration-\>runImport(‚import\_customer…‘) #11 /var/customers/webs/Studioaus/shopware/engine/Library/Enlight/Controller/Action.php(192): Shopware\_Controllers\_Backend\_SwagMigration-\>importAction() #12 /var/customers/webs/Studioaus/shopware/engine/Library/Enlight/Controller/Dispatcher/Default.php(563): Enlight\_Controller\_Action-\>dispatch(‚importAction‘) #13 /var/customers/webs/Studioaus/shopware/engine/Library/Enlight/Controller/Front.php(222): Enlight\_Controller\_Dispatcher\_Default-\>dispatch(Object(Enlight\_Controller\_Request\_RequestHttp), Object(Enlight\_Controller\_Response\_ResponseHttp)) #14 /var/customers/webs/Studioaus/shopware/engine/Shopware/Kernel.php(202): Enlight\_Controller\_Front-\>dispatch() #15 /var/customers/webs/Studioaus/shopware/vendor/symfony/http-kernel/HttpCache/SubRequestHandler.php(102): Shopware\Kernel-\>handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #16 /var/customers/webs/Studioaus/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(448): Symfony\Component\HttpKernel\HttpCache\SubRequestHandler::handle(Object(Shopware\Kernel), Object(Symfony\Component\HttpFoundation\Request), 1, true) #17 /var/customers/webs/Studioaus/shopware/engine/Shopware/Components/HttpCache/AppCache.php(260): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true, NULL) #18 /var/customers/webs/Studioaus/shopware/vendor/symfony/http-kernel/HttpCache/HttpCache.php(238): Shopware\Components\HttpCache\AppCache-\>forward(Object(Symfony\Component\HttpFoundation\Request), true) #19 /var/customers/webs/Studioaus/shopware/engine/Shopware/Components/HttpCache/AppCache.php(105): Symfony\Component\HttpKernel\HttpCache\HttpCache-\>pass(Object(Symfony\Component\HttpFoundation\Request), true) #20 /var/customers/webs/Studioaus/shopware/shopware.php(122): Shopware\Components\HttpCache\AppCache-\>handle(Object(Symfony\Component\HttpFoundation\Request)) #21 {main}

_OK_

---

<div class="post-metadata">

**Author:** ![ProWebs](https://avatars.discourse-cdn.com/v4/letter/p/dec6dc/32.png) [@ProWebs](https://forum.shopware.com/u/ProWebs)\
**Post date:** [31. Juli 2019 um 07:34 UTC](https://forum.shopware.com/t/magento-1-9-2-2-migration-zu-shopware-5-syntax-error-beim-importieren-von-kunden/60683/2 "2019-07-31T07:34:35Z")

</div>

Den Fehler habe ich zwar nach wie vor nichgt gefunden, aber nach dem ich mir immer den Kunden, bei dem es ins Stocken geraten ist angeschaut habe und diesen in Magento einfach nur geöffnet und gepeichert habe ging der Datensatz durch. Geändert habe ich im Grunde nichts. Sicherheitshalber hatte ich auch die Kunden von offensichtlichen Bot Anmeldungen gesäubert.
