Errors can include
An Error occurred when creating the shipment Error: Web Request Error: An XML Error occurred! - Error in parsing request XML:Error: Datatype error: In element 'CommodityCode' : Value '' with length '0' is less than minimum length facet of '1'.. at line 134, column 24.
An Error occurred when creating the shipment Error: Web Request Error: An XML Error occurred! - Error 1:Error in parsing request XML:Error: Datatype error: In element 'ShipmentRequest/ExportDeclaration/ExportLineItem[0]/Value' : '0' value is less than minInclusive Error 2: Error in parsing request XML:Error: Datatype error: In element 'ShipmentRequest/ExportDeclaration/OtherCharges/OtherCharge[0]/OtherChargeValue' : '0' value is less than minInclusive.
An Error occurred when creating the shipment Error: Web Request Error: An XML Error occurred! - Error in parsing request XML:Error: Datatype error: In element CommodityCode': Value" with length 'O' is less than minimum length facet of '1'.. at line 48, column 24.
If you are getting one of the following errors listed above when shipping with DHL it could be an issue with the courier service set-up or the order/ shipping value.
Courier Service setup
Firstly, the issue could be related to the word TRUE being added to Extra Code 5 of the DHL service(s). To check if it is an issue with the courier service setup, please check the following:
Click Shipping Management then Extras.
Next, click Courier Service Codes.
Search for the DHL service that you are getting this error message for.
Click Edit on the affected courier service.
Remove True from Extra Code 5.
Save the change and try creating a shipment again via the same service.
Order/ Shipping Value
Next, check there is a positive value higher than 0 in the OrderValue and Shipping Total fields on the Order.
β
If you continue to get the error after making the change, please raise a new case online and reference the title of this article.