When creating shipments via the automated mode (Cronjob), the following error occurs:
Invalid XML: cvc-complex-type.2.4.d: Invalid content was found starting with element 'Shipment'. No child element is expected at this point.
statusMessage="Das verwendete XML ist ungültig." statusText="Not-Wellformed or invalid XML"
This error occurs when too many shipments are transmitted to DHL at once. The DHL server only accepts up to 50 shipments in one single request.
If this limit is exceeded, the DHL server responds with the above error message. However, the message can be a bit misleading. The XML is not really invalid, it is just too long.
Execute the Cronjob more often so that fewer shipments are transmitted per request.
Also correct any errors in the shipments (e.g. invalid addresses) as soon as possible, so the queue of unfinished shipments does not become too long.