> For the complete documentation index, see [llms.txt](https://docs.sync4.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sync4.de/faq/problembehandlung/integrity-constraint-violation-id-duplicate-entry-artikelnummer-for-key-ordernumber.md).

# Integrity constraint violation: ID Duplicate entry ‚ARTIKELNUMMER‘ for key ‚ordernumber

Wenn Sie folgenden Fehler (Integrity constraint violation: ID Duplicate entry ‚ARTIKELNUMMER‘ for key ‚ordernumber) bei der Übertragung von Artikel zu Shopware erhalten, dann kann Shopware diesen Artikel nicht aktualisieren, versucht diesen neu anzulegen. Dies geht aber nicht, da dieser Artikel schon vorhanden ist als Variante eines Artikels.

### **Lösung**

Hier kann man ganz leicht Abhilfe schaffen. Suchen Sie im Backend vom Shopware Shop nach der Artikelnummer. Achten Sie darauf, dass Sie auch die Varianten durchsuchen. Dazu kann man in der Artikelübersicht in Shopware einen Haken setzen. Klicken Sie auf den Artikel. Jetzt sind Sie im Hauptartikel der Variante und wissen dessen Artikelnummer. Diesen Artikel müssen Sie löschen. Danach kann sync4 den Artikel ganz normal wieder übertragen.

### **Warum kommt es zu so einem Problem?**

Wenn ein Artikel mal ein Variantenartikel eines anderen Artikels war und nun selbst ein ganz normaler Artikel werden soll, kann Shopware damit nicht umgehen. Shopware lässt eine Aktualisierung des Artikels nicht zu. Die einzige Lösung ist hier, den Artikel im Shop zu löschen.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sync4.de/faq/problembehandlung/integrity-constraint-violation-id-duplicate-entry-artikelnummer-for-key-ordernumber.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
