Problem


I have tried printing a Deutsche Post shipping label and am seeing an error returned:


items[0].contents[0].contentPieceOrigin: size must be 2 characters


Solution


The error is being returned because there is an incorrect Item Extended Property value for the Country of Origin on an order item. ISO-2 codes need to be supplied as those are expected instead of using full country names.

  • If you are using Item Extended Properties, please check the steps below:

    Go to Shipping > Integrations > Deutsche Post > PropertiesDouble-check to which Item Extended Property CountryOfOrigin is linked:


    Go to Inventory > My Inventory click on the SKU from Order > Extended Properties. Double-check that Item Extended Property is present (the name should be identical to the one in the Properties for Deutsche Post) with the correct value.

  • If you are not using Item Extended Properties, double-check that on the Service/Config level Default Country of Origin is specified:

    On the Service level: Shipping > Integrations > Services > Edit:


    This method is suitable to have different Country of Origins per Service.

    On the Integrations level: Shipping > Config:


    This method is suitable to have the same Country of Origin for all Services.

If the error message will still be the same, feel free to contact Linnworks Technical Support!

Related articles:

Shipping - HS Tariff Code and Country of Origin