# VAT Validation: Die eingegebene USt-IdNr. ist ungültig

**URL:** <https://forum.shopware.com/t/vat-validation-die-eingegebene-ust-idnr-ist-ungultig/43042>\
**Category:** Plugins\
**Tags:** offizielle-shopware-\
**Created:** [23. Januar 2017 um 17:57 UTC](https://forum.shopware.com/t/vat-validation-die-eingegebene-ust-idnr-ist-ungultig/43042 "2017-01-23T17:57:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kai23](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@Kai23](https://forum.shopware.com/u/Kai23)\
**Post date:** [23. Januar 2017 um 17:57 UTC](https://forum.shopware.com/t/vat-validation-die-eingegebene-ust-idnr-ist-ungultig/43042/1 "2017-01-23T17:57:13Z")

</div>

Hallo,

beim Bearbeiten der Adresse unter Mein Konto kommt die Fehlermeldung:  
Die eingegebene USt-IdNr. ist ungültig. Sie enthält ein unzulässiges Länderkennzeichen.

Im php&nbsp;error\_log&nbsp;landet:

```
[23-Jan-2017 18:48:26 Europe/Berlin] PHP Fatal error: Uncaught exception 'Doctrine\ORM\Mapping\MappingException' with message 'No identifier/primary key specified for Entity "Shopware\Models\Attribute\CustomerGroup" sub class of "Shopware\Components\Model\ModelEntity". Every Entity must have an identifier/primary key.' in /var/www/vhosts/shopware/docroot/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php:46
Stack trace:
#0 /var/www/vhosts/shopware/docroot/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1004): Doctrine\ORM\Mapping\MappingException::identifierRequired('Shopware\\Models...')
#1 /var/www/vhosts/shopware/docroot/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(271): Doctrine\ORM\Mapping\ClassMetadataInfo->validateIdentifier()
#2 /var/www/vhosts/shopware/docroot/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(251): Doctrine\ORM\Mapping\ClassMetadataFactory->validateRuntimeMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL)
#3 in /var/www/vhosts/shopware/docroot/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php on line 46
[23-Jan-2017 18:48:26 Europe/Berlin] PHP Fatal error: Uncaught exception 'Doctrine\ORM\Mapping\MappingException' with message 'No identifier/primary key specified for Entity "Shopware\Models\Attribute\CustomerGroup" sub class of "Shopware\Components\Model\ModelEntity". Every Entity must have an identifier/primary key.' in /var/www/vhosts/shopware/docroot/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php:46
Stack trace:
#0 /var/www/vhosts/shopware/docroot/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php(1004): Doctrine\ORM\Mapping\MappingException::identifierRequired('Shopware\\Models...')
#1 /var/www/vhosts/shopware/docroot/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(271): Doctrine\ORM\Mapping\ClassMetadataInfo->validateIdentifier()
#2 /var/www/vhosts/shopware/docroot/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php(251): Doctrine\ORM\Mapping\ClassMetadataFactory->validateRuntimeMetadata(Object(Doctrine\ORM\Mapping\ClassMetadata), NULL)
#3 in /var/www/vhosts/shopware/docroot/vendor/doctrine/orm/lib/Doctrine/ORM/Mapping/MappingException.php on line 46

```

&nbsp;

---

<div class="post-metadata">

**Author:** ![Kai23](https://avatars.discourse-cdn.com/v4/letter/k/c89c15/32.png) [@Kai23](https://forum.shopware.com/u/Kai23)\
**Post date:** [24. Januar 2017 um 09:31 UTC](https://forum.shopware.com/t/vat-validation-die-eingegebene-ust-idnr-ist-ungultig/43042/2 "2017-01-24T09:31:02Z")

</div>

Okay also der PHP Fehler kommt auch schon wenn man sich als Kunde einloggt.

Habe eben nochmal das Formular für die Adresse&nbsp;und der UStID-Nr&nbsp;abgeschickt. Diesmal kam der Fehler nicht sondern:&nbsp;Die Adresse wurde erfolgreich gespeichert  
Die&nbsp;UStID-Nr. war nach wie vor gepseichert, ich habe das Formular einfach nur nochmal abgesendet.  
Ich vermute das die Fehlermeldung irreführend ist. Denn als ich gestern Abend direkt auf&nbsp;[http://ec.europa.eu/taxation\_customs/vies/](http://ec.europa.eu/taxation_customs/vies/) prüfte kam auch ein Fehler.  
" **Bearbeitung im Mitgliedstaat derzeit nicht möglich. Bitte wiederholen Sie Ihre Anfrage später."**

Edit: Per Email kam dann aber doch noch&nbsp;ein Fehler:&nbsp;Eine Bearbeitung Ihrer Anfrage ist zurzeit nicht möglich.  
Auf&nbsp;[http://ec.europa.eu/taxation\_customs/vies/](http://ec.europa.eu/taxation_customs/vies/) kommt immer noch der gleoche Fehler wie gestern.
