# BusinessEssentials - Versions Wechsel  von 2.2.2 auf 3.0.1

**URL:** <https://forum.shopware.com/t/businessessentials-versions-wechsel-von-2-2-2-auf-3-0-1/44540>\
**Category:** Plugins\
**Tags:** offizielle-shopware-\
**Created:** [16. März 2017 um 11:09 UTC](https://forum.shopware.com/t/businessessentials-versions-wechsel-von-2-2-2-auf-3-0-1/44540 "2017-03-16T11:09:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![v0rti881](https://avatars.discourse-cdn.com/v4/letter/v/2bfe46/32.png) [@v0rti881](https://forum.shopware.com/u/v0rti881)\
**Post date:** [16. März 2017 um 11:09 UTC](https://forum.shopware.com/t/businessessentials-versions-wechsel-von-2-2-2-auf-3-0-1/44540/1 "2017-03-16T11:09:53Z")

</div>

Hallo zusammen,

wir haben sehr große Schwierigkeiten beim updaten des BusinessEssentials Plugin.

Versions Wechsel von 2.2.2 auf 3.0.1

Beim update kommt folgender Fehler zustande:  
An exception occurred while executing ‚INSERT INTO s\_core\_plugins\_b2b\_tpl\_config (variable\_id,customergroup\_id) VALUES (‘’,‚2‘),(’’,’’),(‚1‘,‚2‘),(‚1‘,’’),(‚1‘,’’),(‚1‘,‚40‘),(‚1‘,’’),(‚1‘,‚17‘),(‚1‘,’’),(‚1‘,’’),(‚1‘,‚42‘),(‚1‘,’’),(‚1‘,‚46‘),(‚1‘,‚47‘)’: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry ‚1-0‘ for key ‚PRIMARY‘  
&nbsp;

hat jemand ein ähnliches Problem gehabt und konnte es lösen?

LG

v0rti

&nbsp;

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [16. März 2017 um 11:18 UTC](https://forum.shopware.com/t/businessessentials-versions-wechsel-von-2-2-2-auf-3-0-1/44540/2 "2017-03-16T11:18:09Z")

</div>

Die SQL versucht einzigartige&nbsp;Werte mehrmals einzufügen.

---

<div class="post-metadata">

**Author:** ![brettvormkopp](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/brettvormkopp/32/7788_2.png) [@brettvormkopp](https://forum.shopware.com/u/brettvormkopp)\
**Post date:** [16. März 2017 um 11:26 UTC](https://forum.shopware.com/t/businessessentials-versions-wechsel-von-2-2-2-auf-3-0-1/44540/3 "2017-03-16T11:26:38Z")

</div>

Ich kenne business essentials nicht. Ich würde aber auch mal darauf tippen, dass es bei dir hier einige Kundengruppen &nbsp;nicht mehr gibt, welche dort hinterlegt sind?

---

<div class="post-metadata">

**Author:** ![v0rti881](https://avatars.discourse-cdn.com/v4/letter/v/2bfe46/32.png) [@v0rti881](https://forum.shopware.com/u/v0rti881)\
**Post date:** [31. März 2017 um 09:15 UTC](https://forum.shopware.com/t/businessessentials-versions-wechsel-von-2-2-2-auf-3-0-1/44540/4 "2017-03-31T09:15:31Z")

</div>

Hallo Brettvormkopp,

danke dir - das war eines der Probleme.

Wir hatten Kundengruppe gelöscht, die in den DB-Tables von BusinessEssentials noch enthalten waren.

Normalweise muss das Verhalten des Plugins sein, das nicht mehr existente Kundengruppen automatisch gelöscht&nbsp;werden, so der freundliche und schnelle Support.

[PT-7658](https://issues.shopware.com/issues/PT-7658)&nbsp; Hier wurde extra ein Ticket angelegt für das nächste Update des Plugins.

Damit alles glatt lief musste ich wie folgt vorgehen:

1. BusinessEssentials Update runterladen und via sftp den alten Plugin-Ordner löschen

2. SQL

Dann noch eine weitere Zuordnung die &nbsp;geändert werden muss (Verweis auf alte nicht mehr verfügbare template variablen):

```
DELETE FROM s_core_plugins_b2b_tpl_config
WHERE fieldkey IN ('salutationB2b', 'b2bwaiting')

```

&nbsp;

3.&nbsp;Ich hatte nach dem lokalen testen auf live noch einen Fehler mit dem CHARACTER SET da gab es das Problem das utf8\_general\_ci und utf8\_unicode\_ci nicht mit einander harmonierten, habe dort die entsprechenden Tabellen mit der Fehlermeldung auf utf8\_unicode\_ci gesetzt:

```
ALTER TABLE s_core_plugins_b2b_cgsettings CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;
ALTER TABLE s_core_plugins_b2b_private CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;
ALTER TABLE s_core_plugins_b2b_tpl_config CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;
ALTER TABLE s_core_plugins_b2b_tpl_variables CONVERT TO CHARACTER SET utf8 COLLATE utf8_unicode_ci;

```

&nbsp;

Hoffe es hilft anderen auch weiter!

LG

Jan

&nbsp;
