Problem

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'


Solutions

1.)

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


2.)

The origin address in the section "Configuration -> Sales -> Shipping settings -> Origin" must be set correctly. The allowed origin countries are shown in the documentation in "Hints for using the module". Otherwise, no valid route may be found, and the product code (e.g. V01PAK) will be missing in the request to DHL.


3.)

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.


4.)

Make sure to use the latest module version.