Problem


I have tried printing a DHL shipping label and am seeing the following error returned:

Error in parsing request XML:Error: Datatype error: In element BillToCountryCode' : Value '' with length '0' is not equal to length facet '2'.


Solution


The error means there is an issue with the Billing address country, which might have an incorrect ISO code specified in the Country List (Settings > Countries


If the billing and shipping address are the same, please try marking the billing address as 'Same as Shipping' via Edit Order tab, or alternatively ensure that the ISO code is a correct 2-character one. If the issue persists after the changes, please contact technical support.