Skip to main content

Known DHL error messages

Here you will find known error messages related to DHL shipping and how to resolve them in Shopify.

Here you will find some known error messages related to DHL shipping and how to resolve them. In all cases: If the problem persists after you have followed the steps described, please contact our Support.

DHL error message: Unknown group profile

If the following error message appears, the user in the business customer portal has not been assigned the correct profile.

Error
​The shipment could not be created due to errors: The DHL BCP API responded with an error: Unknown group profile.

To fix the problem, log in to the DHL business customer portal. Under Parcel & Goods → Ship → Settings → User groups you can assign the STANDARD_GRUPPENPROFIL to the user.

DHL Fehler1.png

DHL error message: Invalid printer settings

The following error message indicates a problem with the printer settings.

Error
​The shipment could not be created due to errors: The DHL BCP API responded with an error: invalid printer settings - please adjust your printer settings in the DHL business customer portal "Sending > Basic Settings > General" and save them in any case with occupied user

To fix the problem, go to Parcel & Goods → Ship → Settings → General settings in the DHL business customer portal and deactivate the local printer settings there.

DHL Fehler2.png

DHL error message: Error message parsing failed

The following error message may appear when creating DHL shipping labels:

Error message parsing failed

This error message appears when the DHL user stored in the configuration has no printer or the wrong printer assigned in the DHL business customer portal. In this case, check this user's printer assignment in the DHL business customer portal and correct it if necessary. After that, you can create the shipping labels again.

DHL error message: DHL Authorisation Server

If the following error message appears when creating shipping or return labels, it may be because two-factor authentication (2FA) is activated for the DHL user you are using.

Error
​The shipment could not be created due to errors: The DHL Parcel API responded with an error: DHL Authorisation Server: Access denied, direct grant with security profile enhanced not allowed.

image.png

Cause

The DHL API does not support authentication with two-factor authentication (2FA) enabled. If 2FA is active in the DHL business customer portal, Pickware cannot establish a connection to the API.

Solution

  1. Use a system user
    In the DHL business customer portal, create a system user that is used exclusively for API access. 2FA is usually not available for such users, which ensures a stable connection.

  2. Alternatively: deactivate 2FA
    If you cannot create a separate system user, deactivate 2FA for the user you are currently using.

  3. Check credentials
    Then enter the credentials of the user you are using again in the DHL configuration of your Pickware Admin and test the connection.

DHL error message: Unexpected client error

The following error message indicates that the terms of service in the DHL customer account have changed and need to be accepted again.

Error message: There occurred an unexpected error: Client error: `GET https://geschaeftskunden.dhl.de/customeradministration/api/v1/user` resulted in a `403 Forbidden` response

To do this, log in to the DHL business customer portal, click your username in the top right, and then click Manage users. A pop-up window then opens in which you can accept the new terms of service.

DHL Fehler3.png

DHL error message: Sender address is incomplete

The following error message indicates that the sender address is incomplete.

The sender address is missing the following property: Name, company or address addition.

In this case, go to Settings → Extensions → Shipping labels common in your Pickware Admin and enter the missing data there. You can find more information about the settings here.

DHL error message: Billing number is not available

The following error message indicates problems with the stored billing number.

Hard validation error occured. Die ausgewählte Abrechnungsnummer steht nicht zur Verfügung

In this case, the number stored under Settings → Extensions → Shipping labels DHL → Contract information does not match the number in the DHL business customer portal. You can find the correct numbers in the DHL business customer portal in the user menu at the top right under Contract data. The last two digits of the billing numbers are the relevant ones.

DHL_GKP_Vertragsdaten.png

DHL error message: Error when creating shipping or return labels

If an error message appears when you create shipping or return labels, it may be because the contract data cannot be retrieved correctly from the DHL business customer portal. First, check in the Pickware Admin under Extensions → Settings → Shipping labels DHL by using the Retrieve contract data button whether retrieving the contract data works at all.

If your contract data can be retrieved correctly and you still cannot create shipping labels, please contact Support.

If retrieving the contract data fails, proceed as follows:

  1. Log in to the DHL business customer portal and navigate to Manage users. You may need to confirm new terms of service there.

  2. Open the extension settings again under Extensions → Settings → Shipping labels DHL and click Retrieve contract data at the top.
    ​

    Vertragsdaten abrufen.png

  3. Check whether creating shipping labels works again.

DHL error message: Authentication failed: User not found or password invalid

If you get this error message when creating shipping or return labels, there can be two causes:

Possibility 1: Login data (username, password) was not entered correctly in the DHL configuration

Note that the username must be entered exactly (including upper and lower case) as it is entered in the DHL business customer portal under Manage users.

To check how your username is stored at DHL, proceed as follows:

  1. Click your username in the top right and then click Manage users.

  2. Your usernames are shown in the table:

DHL Fehler4.png

If needed, you can also configure the settings for DHL shipping at the sales channel level. If you still see the error message even though you entered the correct credentials, also check the settings for the individual sales channels.

DHL_Verkaufskanal.png

As a rule, the settings made under All sales channels are inherited by the other sales channels. You can tell by the icon in front of the field name when you have selected a sales channel. However, you can also exclude individual fields from this by clicking the icon. Here you can see an example of a field that is not inherited (Username) and a field that is inherited (Password).

DHL_Einstellung vererben.png

Possibility 2: The selected DHL product is not available in combination with your DHL contract.

To use the products DHL Retoure Online and DHL Retoure International, you need:

  • a valid business customer contract with DHL Paket GmbH for the products DHL Retoure Online and/or DHL Retoure International

  • access to the Post & DHL business customer portal with permission for the Return function

A DHL Retoure Selbstzahler contract is not sufficient in this case! Contact your DHL contact person to adjust your contract.

DHL error message: invalid_grant – Invalid user credentials

The error message invalid_grant – Invalid user credentials means that DHL no longer accepts the stored credentials. Check whether the password was changed in the DHL business customer portal and whether the new credentials are stored in Pickware. Two-factor authentication for the user does not work with the DHL API.

  1. Check whether you can log in to the DHL business customer portal with these credentials.

  2. Enter the current credentials in the DHL configuration of your Pickware Admin and save.

DHL error message: Credentials invalid or no permission to create shipping labels

This error message appears when the stored credentials are no longer valid or the stored DHL user has no shipping permissions.

  1. Update the credentials in the DHL configuration of your Pickware Admin. Enter the main account or a system user that has shipping permissions in the DHL business customer portal.

  2. Click Check credentials.

  3. Click Retrieve contract data and save the settings.

DHL error message: Create label to [name], parcel 1: Hard validation error occured. Das angegebene Produkt ist für das Land nicht verfügbar

This error message appears when you have selected the DHL product DHL Paket for a shipment outside of Germany. Select DHL Paket International instead and create the label again.

DHL error message: Communication with the DHL BCP API is not possible. Error: Unauthorized.

This error message appears when you have selected the testing web service in the DHL configuration but have not entered the correct credentials. In this case, you must enter the API key and API secret of your DHL developer portal account instead of your regular credentials.

DHL error message: The name argument must be between 1 and 50 characters long.

This error message appears when one of the fields name1, name2 or name3 is longer than 50 characters. The name fields are filled in automatically as follows:

If a company is specified:

  • name1 = Company + Department

  • name2 = First name + Last name

  • name3 = Address addition

If no company is specified:

  • name1 = First name + Last name

  • name2 = Address addition

  • name3 = [remains empty]

Check whether, for example, the combination of company and department or first name and last name might be too long, and adjust the entries accordingly. You can find a tool for counting characters here, for example.

DHL error message: Email address exceeds the permitted field length

This error message appears when the email address stored in the order is longer than the limit DHL allows for this field. In this case, DHL rejects the creation of the shipping label with the following error message.
The DHL Express API could not process the request:

#/shipmentNotification/0/receiverId: expected maxLength: 50, actual: X

This occurs particularly often with orders from marketplaces such as Amazon, because the buyer email addresses transmitted there (e.g. …@marketplace.amazon.com.de) can be very long. In this case, shorten the email address in the affected order and then create the shipping label again. If the full email address is absolutely required, you can alternatively create the label directly in the DHL Express Portal.

DHL error message: The DHL Parcel API responded with an error: Sorry, this recipient is not available

Pickware only supports DHL Retoure Online. The DHL Retoure Selbstzahler variant is not compatible and therefore cannot be used for the automatic creation of return labels.

If DHL Retoure Selbstzahler has nevertheless been stored for a shipping method or a product, this leads to this error message when you create a shipping label. In this case, make sure that the correct return type DHL Retoure Online is used.

DHL error message: Error: Gone or sudden errors for all labels

If Error: Gone appears or DHL labels suddenly all fail even though you have not changed anything in the configuration, there is usually a disruption at DHL. You can see the current state of the DHL interfaces at status.api.dhl.com. In this case, try again later.

DHL error message: Please specify the type of shipment

If DHL reports Bitte geben Sie die Art der Sendung an or Die angegebene Art der Sendung ist nicht gültig, often together with Bitte geben Sie die Beschreibung an, Bitte geben Sie den Warenwert an or Bitte geben Sie die Versandkosten für die Zollabfertigung an, DHL is missing the customs information for the shipment. The message lists exactly the details that belong to the export documents.

In this case, check the three places from which Pickware gets the customs information for the export documents: the shipping method with Create export documents, the customs information on the product, and the general customs information under Settings → Extensions → Shipping labels common. You can find out how to set up all three in How do I create export documents for shipments to non-EU countries?

Shipping labels are incorrectly declared as PREMIUM

If your shipping labels are created as Premium Label even though the Premium function is deactivated, this is because most EU countries do not offer Economy products, and in this case DHL automatically activates the Premium function.

Bulk customer recipient could not be found

This error message can appear when the option Only create label if address is routable is activated when creating a shipping label.

leitcodierbar.png

With routability enabled, DHL checks whether the combination of street and postal code is stored unambiguously in the system. However, some bulk customers, such as universities or public authorities, use different postal codes for postal and street addresses. As a result, the address may not be correctly matched by the DHL system.

Example

A university in Berlin uses 10099 Berlin as its general postal address, but also 10117 Berlin for street addresses. In this case, label creation can only be completed successfully with the correct street postal code (10117 Berlin). If 10099 is used, the error message appears.

Solution

Use the matching street postal code or simply deactivate the option Only create label if address is routable to create the shipping label anyway.

Did this answer your question?