# Shopware Market Plugin "Configuration error - cannot replace the ERP configuration!"

**URL:** <https://forum.shopware.com/t/shopware-market-plugin-configuration-error-cannot-replace-the-erp-configuration/90509>\
**Category:** Shopware 6 (German)\
**Created:** [24. September 2021 um 06:12 UTC](https://forum.shopware.com/t/shopware-market-plugin-configuration-error-cannot-replace-the-erp-configuration/90509 "2021-09-24T06:12:09Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![sitisdesign](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sitisdesign](https://forum.shopware.com/u/sitisdesign)\
**Post date:** [24. September 2021 um 06:12 UTC](https://forum.shopware.com/t/shopware-market-plugin-configuration-error-cannot-replace-the-erp-configuration/90509/1 "2021-09-24T06:12:09Z")

</div>

Guten Tag Zusammen,

wir würden gerne das Shopware 6 Plugin "Shopware Markets (SwagMarkets) in Betrieb nehmen, jedoch ohne Erfolg. Das Plugin läuft in seiner aktuellsten Version unter Shopware 6.4.3. Wenn ich die Konfiguration des Plugins öffne, bekomme ich nur die Möglichkeit die Integration reparieren zu lassen. Wenn ich auf diesen Button klicke, erhalte ich folgendes im Log:

[2021-09-24T06:10:33.560856+00:00] request.CRITICAL: Uncaught PHP Exception Exception: „Configuration error - cannot replace the ERP configuration!“ at /var/www/DOMAIN.DE/custom/plugins/SwagMarkets/src/Service/IntegrationUserService.php line 387 {„exception“:"[object] (Exception(code: 0): Configuration error - cannot replace the ERP configuration! at /var/www/DOMAIN.DE/custom/plugins/SwagMarkets/src/Service/IntegrationUserService.php:387)"}

Kann jemand hierzu mehr sagen?

Vielen Dank im Voraus!

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [24. September 2021 um 07:36 UTC](https://forum.shopware.com/t/shopware-market-plugin-configuration-error-cannot-replace-the-erp-configuration/90509/2 "2021-09-24T07:36:08Z")

</div>

Ich weiß nicht ob es der gleiche Fehler ist, aber ich habe vor ein paar Wochen einen Bug in dem Plugin gemeldet.

Bei der Installation wird eine Tabelle in der Datenbank nicht erstellt, da die Entity Definition fehlerhaft ist.

---

<div class="post-metadata">

**Author:** ![sitisdesign](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sitisdesign](https://forum.shopware.com/u/sitisdesign)\
**Post date:** [11. Oktober 2021 um 12:50 UTC](https://forum.shopware.com/t/shopware-market-plugin-configuration-error-cannot-replace-the-erp-configuration/90509/3 "2021-10-11T12:50:54Z")

</div>

Leider hatte auch eine Neuinstallation des Plugins nicht geholfen.

Ist noch jemand mit dem Problem vertraut?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [11. Oktober 2021 um 13:16 UTC](https://forum.shopware.com/t/shopware-market-plugin-configuration-error-cannot-replace-the-erp-configuration/90509/4 "2021-10-11T13:16:47Z")

</div>

Die Neuinstallation des Plugins bringt auch nichts, da der Fehler im Plugin liegt.

Einfach die fehlende Tabelle in der Datenbank selbst anlegen. SQL kann aus der Migration entnommen werden.

---

<div class="post-metadata">

**Author:** ![sitisdesign](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sitisdesign](https://forum.shopware.com/u/sitisdesign)\
**Post date:** [11. Oktober 2021 um 14:27 UTC](https://forum.shopware.com/t/shopware-market-plugin-configuration-error-cannot-replace-the-erp-configuration/90509/5 "2021-10-11T14:27:54Z")

</div>

Also folgende Tabellen sind in der DB angelegt:

- bf\_config
- bf\_marketplace
- bf\_marketplace\_settings
- bf\_marketplace\_sales\_channel
- bf\_category\_mapping
- bf\_product\_to\_delete

Das sind wohl alle Tables aus dem Migrations Ordner.  
Sieht ja erstmal richtig aus. oder?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [11. Oktober 2021 um 15:34 UTC](https://forum.shopware.com/t/shopware-market-plugin-configuration-error-cannot-replace-the-erp-configuration/90509/6 "2021-10-11T15:34:51Z")

</div>

bf\_support fehlt. Dafür wurde keine Migration erstellt, da die EntityDefinition fehlerhaft ist.

bin/console dal:create:schema

dann kannst du den Fehler nachvollziehen.

---

<div class="post-metadata">

**Author:** ![sitisdesign](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sitisdesign](https://forum.shopware.com/u/sitisdesign)\
**Post date:** [11. Oktober 2021 um 16:12 UTC](https://forum.shopware.com/t/shopware-market-plugin-configuration-error-cannot-replace-the-erp-configuration/90509/7 "2021-10-11T16:12:15Z")

</div>

Okay Danke!  
Jetzt weiß ich schonmal dass es an der „bf\_support“ liegt.  
Aber du meintest, ich soll einfach eine Tabelle mit dem Namen anlegen.  
Woher soll ich den Inhalt der Tabelle kennen, bzw. welche Spalten sollen hinterlegt sein?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [11. Oktober 2021 um 17:39 UTC](https://forum.shopware.com/t/shopware-market-plugin-configuration-error-cannot-replace-the-erp-configuration/90509/8 "2021-10-11T17:39:57Z")

</div>

Den nimmst du dir aus der EntityDefinition.

Das Problem ist, dass in der EntityDefinition ein PrimaryKey fehlt. Ich weiß jedoch nicht, wohin er gehört. Am wahrscheinlichsten ist salutationId. Dann wäre die Tabelle wie folgt:

CREATE TABLE `bf_support` (  
`salutationId` VARCHAR(255) NOT NULL,  
`name` VARCHAR(255) NOT NULL,  
`company` VARCHAR(255) NOT NULL,  
`email` VARCHAR(255) NOT NULL,  
`phoneNumber` VARCHAR(255) NULL,  
`message` VARCHAR(255) NULL,  
`created_at` DATETIME(3) NOT NULL,  
`updated_at` DATETIME(3) NULL,  
PRIMARY KEY (`salutationId`)  
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4\_unicode\_ci;

Wie in meinem ersten Beitrag geschrieben, ich weiß nicht, ob das dein Problem ist/löst.

---

<div class="post-metadata">

**Author:** ![sitisdesign](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sitisdesign](https://forum.shopware.com/u/sitisdesign)\
**Post date:** [11. Oktober 2021 um 17:53 UTC](https://forum.shopware.com/t/shopware-market-plugin-configuration-error-cannot-replace-the-erp-configuration/90509/9 "2021-10-11T17:53:42Z")

</div>

Danke für den Befehl, aber ja - Leider ohne Erfolg.  
Der selbe Fehler ist noch vorhanden.

---

<div class="post-metadata">

**Author:** ![hosono](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/hosono/32/14990_2.png) [@hosono](https://forum.shopware.com/u/hosono)\
**Post date:** [21. Januar 2022 um 07:59 UTC](https://forum.shopware.com/t/shopware-market-plugin-configuration-error-cannot-replace-the-erp-configuration/90509/10 "2022-01-21T07:59:12Z")

</div>

Wir haben den gleichen Fehler 😕 Gibt es bereits eine Lösung?

---

<div class="post-metadata">

**Author:** ![sitisdesign](https://avatars.discourse-cdn.com/v4/letter/s/a9adbd/32.png) [@sitisdesign](https://forum.shopware.com/u/sitisdesign)\
**Post date:** [21. Januar 2022 um 08:11 UTC](https://forum.shopware.com/t/shopware-market-plugin-configuration-error-cannot-replace-the-erp-configuration/90509/11 "2022-01-21T08:11:37Z")

</div>

Wenn in der aktuellsten Version der Fehler noch vorhanden ist, dann gibt es noch keine Lösung.  
Shopwares Support Aussage war, dass Sie selbst noch mit den Schnittstellen kämpfen und sie derzeit andere Plugins, welche z.B. über ein ERP System laufen, eher empfehlen (Pickware, Xentral als Beispiel)
