# Update 6.2.2 Undefined index: CZ

**URL:** <https://forum.shopware.com/t/update-6-2-2-undefined-index-cz/67749>\
**Category:** Administration\
**Created:** [18. Juni 2020 um 06:44 UTC](https://forum.shopware.com/t/update-6-2-2-undefined-index-cz/67749 "2020-06-18T06:44:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![steffnc](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@steffnc](https://forum.shopware.com/u/steffnc)\
**Post date:** [18. Juni 2020 um 06:44 UTC](https://forum.shopware.com/t/update-6-2-2-undefined-index-cz/67749/1 "2020-06-18T06:44:36Z")

</div>

Hallo,

beim Update auf die 6.2.2 bekomme ich folgenden Fehler:

Error

Received an error message.  
**URL:** applyMigrations?offset=0&total=0&modus=update  
**Message:** SyntaxError: JSON.parse: unexpected non-whitespace character after JSON data at line 4 column 2 of the JSON data

Please try to fix this error and restart the update.

Response

```
 { "valid": false, "errorMsg": "An exception occurred while executing 'INSERT INTO tax\_rule (id, tax\_id, tax\_rule\_type\_id, country\_id, tax\_rate, created\_at) VALUES (?, ?, ?, ?, ?, ?)' with params [\"\\x08\\xdf\\x8e\\x71\\xcf\\xb9\\x47\\x2d\\xba\\xe0\\xea\\xb4\\xad\\xb2\\xc0\\x6a\", \"\\x7b\\xf0\\x0e\\x6b\\x6e\\xa4\\x4b\\x8e\\xa1\\x1e\\x7f\\xca\\x61\\xb5\\x61\\xa7\", \"\\xd7\\x1d\\x53\\x87\\x26\\x4b\\x45\\x96\\xba\\x5c\\xf6\\xd8\\x78\\x85\\x4b\\xf7\", null, 21, \"2020-06-18 08:16:16.655\"]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1048 Column 'country\_id' cannot be null" } 

**Notice** : Undefined index: CZ in .... 

**vendor/shopware/core/Migration/Migration1589359936AddTaxCountryRules.php** on line **70**

```

&nbsp;

**Kann mir jemand helfen?**

&nbsp;

---

<div class="post-metadata">

**Author:** ![ln2020](https://avatars.discourse-cdn.com/v4/letter/l/fbc32d/32.png) [@ln2020](https://forum.shopware.com/u/ln2020)\
**Post date:** [18. Juni 2020 um 21:13 UTC](https://forum.shopware.com/t/update-6-2-2-undefined-index-cz/67749/2 "2020-06-18T21:13:17Z")

</div>

Wir haben auch das gleiche Problem beim Update von 6.2 auf 6.2.2.

Für eine Antwort wäre ich dankbar.

---

<div class="post-metadata">

**Author:** ![SB1](https://avatars.discourse-cdn.com/v4/letter/s/0ea827/32.png) [@SB1](https://forum.shopware.com/u/SB1)\
**Post date:** [18. Juni 2020 um 21:39 UTC](https://forum.shopware.com/t/update-6-2-2-undefined-index-cz/67749/3 "2020-06-18T21:39:40Z")

</div>

Shopware 5 nutzen und nicht diese promotete SW6 BETA , dann klappt das 🙂

---

<div class="post-metadata">

**Author:** ![Moritz\_Naczenski](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/moritz_naczenski/32/7792_2.png) [@Moritz\_Naczenski](https://forum.shopware.com/u/Moritz_Naczenski)\
**Post date:** [19. Juni 2020 um 04:51 UTC](https://forum.shopware.com/t/update-6-2-2-undefined-index-cz/67749/4 "2020-06-19T04:51:26Z")

</div>

Schaut am besten mal, welche Länder ihr im System habt. Habt ihr da ggf. welche entfernt?
