# Fehlermeldung beim Einspielen von Adressdaten via API nach Update auf 5.6

**URL:** <https://forum.shopware.com/t/fehlermeldung-beim-einspielen-von-adressdaten-via-api-nach-update-auf-5-6/63061>\
**Category:** Allgemein\
**Created:** [19. November 2019 um 16:11 UTC](https://forum.shopware.com/t/fehlermeldung-beim-einspielen-von-adressdaten-via-api-nach-update-auf-5-6/63061 "2019-11-19T16:11:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Winddancer](https://avatars.discourse-cdn.com/v4/letter/w/51bf81/32.png) [@Winddancer](https://forum.shopware.com/u/Winddancer)\
**Post date:** [19. November 2019 um 16:11 UTC](https://forum.shopware.com/t/fehlermeldung-beim-einspielen-von-adressdaten-via-api-nach-update-auf-5-6/63061/1 "2019-11-19T16:11:31Z")

</div>

Hallo zusammen,

wir haben eine Shopware Installation von 5.2.18 auf 5.6.2 geupdatet.&nbsp;

Die Warenwirtschaft ist per SW API angebunden. Beim Abgleich der Adressdaten wird seit dem Update leider ein Fehler erzeugt.

```
FEHLER: Adresse "161471" (ID: "161471", ER: "15412") konnte nicht aktualisiert werden: "Fehler beim Updaten.: 
Fatal error: Uncaught TypeError: Argument 1 passed to ShopwareComponentsApiResourceCustomer::prepareAddressData() must be of the type array, null given, called in /var/www/shop/htdocs/shopware/engine/Shopware/Components/Api/Resource/Customer.php on line 539 and defined in /var/www/shop/htdocs/shopware/engine/Shopware/Components/Api/Resource/Customer.php:518
Stack trace:
#0 /var/www/shop/htdocs/shopware/engine/Shopware/Components/Api/Resource/Customer.php(539): ShopwareComponentsApiResourceCustomer->prepareAddressData(NULL, true)
#1 /var/www/shop/htdocs/shopware/engine/Shopware/Components/Api/Resource/Customer.php(269): ShopwareComponentsApiResourceCustomer->applyAddressData(Array, Object(ShopwareModelsCustomerCustomer))
#2 /var/www/shop/htdocs/shopware/engine/Shopware/Controllers/Api/Cus
tomers.php(111): ShopwareComponentsApiResourceCustomer->update('15412', Array)
#3 /var/www/shop/htdocs/shopware/engine/Library/Enl in /var/www/shop/htdocs/shopware/engine/Shopware/Components/Api/Resource/Customer.php on line 518"

```

Hatte jemand schon ein ähnliches Problem?

Vielen Dank im Voraus

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [20. November 2019 um 11:05 UTC](https://forum.shopware.com/t/fehlermeldung-beim-einspielen-von-adressdaten-via-api-nach-update-auf-5-6/63061/2 "2019-11-20T11:05:18Z")

</div>

Schienbar werden über die API keine Adressdaten übergeben. Vielleicht da mal gucken.

---

<div class="post-metadata">

**Author:** ![Winddancer](https://avatars.discourse-cdn.com/v4/letter/w/51bf81/32.png) [@Winddancer](https://forum.shopware.com/u/Winddancer)\
**Post date:** [20. November 2019 um 11:10 UTC](https://forum.shopware.com/t/fehlermeldung-beim-einspielen-von-adressdaten-via-api-nach-update-auf-5-6/63061/3 "2019-11-20T11:10:01Z")

</div>

Hallo,

danach sieht es aus. Was ich aber nicht nachvollziehen kann, denn laut API Dokumentation hat sich an der Adressen Ressource seit 5.2 nichts getan.

Genausowenig auf der Gegenseite bei der WaWi.

[https://developers.shopware.com/developers-guide/rest-api/api-resource-address/](https://developers.shopware.com/developers-guide/rest-api/api-resource-address/)

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [20. November 2019 um 11:15 UTC](https://forum.shopware.com/t/fehlermeldung-beim-einspielen-von-adressdaten-via-api-nach-update-auf-5-6/63061/4 "2019-11-20T11:15:03Z")

</div>

Vielleicht ist das nur ein kaputter Datensatz?
