# Fehler Update auf 5 - SQLSTATE\[22004\]: Null value not allowe

**URL:** <https://forum.shopware.com/t/fehler-update-auf-5-sqlstate-22004-null-value-not-allowe/26885>\
**Category:** Installation/Einstieg\
**Created:** [5. Mai 2015 um 10:25 UTC](https://forum.shopware.com/t/fehler-update-auf-5-sqlstate-22004-null-value-not-allowe/26885 "2015-05-05T10:25:44Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![pointout](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@pointout](https://forum.shopware.com/u/pointout)\
**Post date:** [5. Mai 2015 um 10:25 UTC](https://forum.shopware.com/t/fehler-update-auf-5-sqlstate-22004-null-value-not-allowe/26885/1 "2015-05-05T10:25:44Z")

</div>

Ich bekomme beim Update folgende Fehlermeldung: `Response {"valid":false,"errorMsg":"Could not apply migration: SQLSTATE[22004]: Null value not allowed: 1138 Invalid use of NULL value"}` Wie kann ich herausfinden welche NULL Werte gemeint sind?

---

<div class="post-metadata">

**Author:** ![antistatikk](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@antistatikk](https://forum.shopware.com/u/antistatikk)\
**Post date:** [7. Mai 2015 um 13:16 UTC](https://forum.shopware.com/t/fehler-update-auf-5-sqlstate-22004-null-value-not-allowe/26885/2 "2015-05-07T13:16:45Z")

</div>

Wir haben hier das gleiche Problem. Gibt es eine Lösungs-Idee?

---

<div class="post-metadata">

**Author:** ![Fan\_tastischer](https://avatars.discourse-cdn.com/v4/letter/f/bc79bd/32.png) [@Fan\_tastischer](https://forum.shopware.com/u/Fan_tastischer)\
**Post date:** [7. Mai 2015 um 14:20 UTC](https://forum.shopware.com/t/fehler-update-auf-5-sqlstate-22004-null-value-not-allowe/26885/3 "2015-05-07T14:20:52Z")

</div>

Evtl. ist sql\_mode=NO\_ENGINE\_SUBSTITUTION,STRICT\_TRANS\_TABLES fuer den Mysql-Server gesetzt. Ist in jüngerer Vergangenheit der Default geworden. “STRICT\_TRANS\_TABLES” setzt den “Strict SQL Mode” [https://dev.mysql.com/doc/refman/5.0/en … ode-strict](https://dev.mysql.com/doc/refman/5.0/en/sql-mode.html#sql-mode-strict) Nach Abschalten von “STRICT\_TRANS\_TABLES” lief die DbMigration bei mir durch Setzen in /etc/my.cnf GGfls. auch in /usr/my.cnf Und MySQL-Server neu starten…

---

<div class="post-metadata">

**Author:** ![pointout](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@pointout](https://forum.shopware.com/u/pointout)\
**Post date:** [8. Mai 2015 um 09:34 UTC](https://forum.shopware.com/t/fehler-update-auf-5-sqlstate-22004-null-value-not-allowe/26885/4 "2015-05-08T09:34:49Z")

</div>

Das ist es bei mir leider nicht. # sql\_mode=NO\_ENGINE\_SUBSTITUTION,STRICT\_TRANS\_TABLES ist kommentiert. Ich hatte aus dem Artikelimport aus einem anderen Shopsystem noch Artikel mit Preis 0. Habe alle geändert. Das war es leider auch nicht. Noch wer eine Idee?

---

<div class="post-metadata">

**Author:** ![Fan\_tastischer](https://avatars.discourse-cdn.com/v4/letter/f/bc79bd/32.png) [@Fan\_tastischer](https://forum.shopware.com/u/Fan_tastischer)\
**Post date:** [8. Mai 2015 um 10:04 UTC](https://forum.shopware.com/t/fehler-update-auf-5-sqlstate-22004-null-value-not-allowe/26885/5 "2015-05-08T10:04:28Z")

</div>

Hmmm. Mal mit SELECT @@GLOBAL.sql\_mode; SELECT @@SESSION.sql\_mode; prüfen welcher sql\_mode wirklich gesetzt wird ?

---

<div class="post-metadata">

**Author:** ![pointout](https://avatars.discourse-cdn.com/v4/letter/p/ad7895/32.png) [@pointout](https://forum.shopware.com/u/pointout)\
**Post date:** [8. Mai 2015 um 12:33 UTC](https://forum.shopware.com/t/fehler-update-auf-5-sqlstate-22004-null-value-not-allowe/26885/6 "2015-05-08T12:33:38Z")

</div>

Danke. Das war es doch. Hatte in der falschen config nachgesehen. Skript ist jetzt durchgelaufen. Danke nochmals.
