When trying to create DHL shipping labels, this error occurs:

Invalid XML: cvc-length-valid: Wert '...' mit Länge = '12' ist nicht Facet-gültig in Bezug auf die Länge '14' für Typ '#AnonType_billingNumberAbstractShipmentType'

In English:

Invalid XML: cvc-length-valid: Value '...' with length = '12' is not facet-valid with respect to length '14' for type '#AnonType_billingNumberAbstractShipmentType'

Possible causes


The participation numbers (German: Teilnahmenummern) and / or the EKP (DHL account number) have not been entered correctly into the module configuration. This article explains how to configure these numbers.


The shipper or receiver data are too long. The DHL webservice allows only up to 35 characters per field for "Name 1" and "Name 2" in the shipper (sender) and receiver (buyer) address.

  • For the shipper fields, check the module configuration.
  • For the receiver fields, edit the address in the Magento order.
  • Make sure there are no forbidden characters present in the fields (e.g. accents or diacritical marks). If in doubt, remove any special characters.