# Error on sw6 API import

**URL:** <https://forum.shopware.com/t/error-on-sw6-api-import/62061>\
**Category:** Programmierung\
**Created:** [30. September 2019 um 05:30 UTC](https://forum.shopware.com/t/error-on-sw6-api-import/62061 "2019-09-30T05:30:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nightfox](https://avatars.discourse-cdn.com/v4/letter/n/c89c15/32.png) [@nightfox](https://forum.shopware.com/u/nightfox)\
**Post date:** [30. September 2019 um 05:30 UTC](https://forum.shopware.com/t/error-on-sw6-api-import/62061/1 "2019-09-30T05:30:53Z")

</div>

Hallo Leute,  
Ich habe versucht, einige Einträge mit Shopware 6 api zu importieren. Ich habe Codes, die gut funktionieren (ich konnte einige Einträge importieren, also schätze ich, dass die API und mein Code funktioniert haben :))). Aber jetzt bekomme ich einen Fehler wie folgt,  
SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry \u0027SWP00524-\x0F\xA9\x1C\xE3\xE9jK\xC2\xBEK\xD9\xCEu,4%\u0027 for key \u0027uniq.product.product\_number\_\_version\_id\u0027

Was genau bedeutet dieses Feld? Und was ist diese Version\_id im Allgemeinen. Ich konnte eine Menge version\_id in unserer Datenbank sehen. Was ist der Zweck dieser Felder? Vielen Dank im Voraus.

---

<div class="post-metadata">

**Author:** ![nightfox](https://avatars.discourse-cdn.com/v4/letter/n/c89c15/32.png) [@nightfox](https://forum.shopware.com/u/nightfox)\
**Post date:** [7. November 2019 um 06:47 UTC](https://forum.shopware.com/t/error-on-sw6-api-import/62061/2 "2019-11-07T06:47:56Z")

</div>

Got the answer, It was because the api tried to create product with&nbsp;same product number already inserted.&nbsp;

Thank you
