Skip to main content

Known DHL error messages

Shopware 6 — Solutions for common DHL shipping errors such as "Unknown group profile" and "Invalid printer settings".

Most errors that occur with the DHL Versand integration can already be resolved using the information in the error message. In this article, you will find these messages as well as several other error messages related to the DHL Versand extension, along with their solutions. In all cases: If the problem persists after you have followed the described steps, feel free to 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 Paket & Waren (Parcels & Goods) → Versenden (Ship) → Einstellungen (Settings) → Nutzergruppen (User groups) you can assign the STANDARD_GRUPPENPROFIL to the user.

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, navigate in the DHL business customer portal to Paket & Waren (Parcels & Goods) → Versenden (Ship) → Einstellungen (Settings) → Allgemeine Einstellungen (General settings) and deactivate the local printer settings there.

DHL error message: Error message parsing failed

The following error message can occur when creating DHL shipping labels:

Error message parsing failed

This error message occurs when no printer or an incorrect printer is assigned in the DHL business customer portal to the DHL user stored in the configuration. In this case, check the printer assignment of this user in the DHL business customer portal and correct it if necessary. You can then create the shipping labels again.

DHL error message: DHL Authorisation Server

If the following error message appears when creating shipping or return labels, this may be because two-factor authentication (2FA) is enabled for the DHL user being used.

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 in your Shopware Admin and test the connection.

Contract data cannot be retrieved. 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 so, log in to the DHL business customer portal, click your user name at the top right and then click Benutzer verwalten (Manage users). A pop-up window then opens in which you can accept the new terms of service.

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 Shopware Admin and enter the missing data there. You can find more information about the settings options 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 Vertragsdaten (Contract data). The last two digits of the billing numbers are relevant.

DHL_GKP_Vertragsdaten.png

DHL error message: Error when creating shipping or return labels

If an error message occurs when creating shipping or return labels, this may be because the contract data cannot be retrieved correctly from the DHL business customer portal. First check in your Shopware Admin under Extensions → Settings → Shipping labels DHL, 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 Benutzer verwalten (Manage users). You may have to confirm new terms of service here.

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

  3. Check whether creating shipping labels works again.

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

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

Possibility 1: Login data (user name, password) was not stored correctly in the DHL configuration

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

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

  1. Click your user name at the top right and then click Benutzer verwalten (Manage users).

  2. Your user names are displayed in the table:

If needed, you can also configure the settings for DHL shipping at the Sales Channel level. If the error message is still displayed even though you entered the correct credentials, also check the settings for the individual Sales Channels.

As a rule, the settings made under All Sales Channels are inherited by the other Sales Channels. You can recognize this by the symbol 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 symbol. Here you can see an example of a field that is not inherited (User name) and a field that is inherited (Password).

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 the permission for the Return function

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

DHL error message: The credentials are NOT valid!

The Pickware DHL integration requires Shopware 6.5 or newer. The reason is a change to the DHL API that can no longer be used with older Shopware versions. Under Shopware 6.4, therefore, no connection to the DHL business customer portal can be established and the following message appears even though the stored credentials are correct:

Die Zugangsdaten sind NICHT gültig!

In this case, update your shop to Shopware 6.5 or newer. You can find out which version your shop currently uses in the article Which Shopware version does my shop have?. If the message appears under Shopware 6.5 or newer, check the stored credentials as described in the section DHL error message: Authentication failed: User not found or password invalid.

Under Shopware 6.5 or newer, also check the Nutze den Testing-Webservice (Use the testing web service) switch in the DHL configuration. It must match the stored credentials: If live credentials are stored, the switch must be deactivated. If it is activated, you need the credentials of your DHL developer portal account.

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 your Shopware Admin under Settings → Extensions → DHL and save.

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

This error message appears when the stored DHL user has no rights to ship. The credentials can still be correct in this case.

  1. In the DHL configuration, enter the main account or a system user that has shipping rights in the DHL business customer portal.

  2. Click Check credentials.

  3. Click Retrieve contract data and save the settings.

DHL error message: No billing number configured for product

The error message No billing number configured for product … means that no matching billing number is stored for the selected DHL product. In the DHL configuration, click Retrieve contract data, compare the billing number with the contract data in the DHL business customer portal and save the settings.

DHL error message: Could not connect to DHL OAuth

The error message Could not connect to DHL OAuth means that your server cannot establish a connection to DHL. Your server must allow outgoing connections to api-eu.dhl.com on port 443. Ask your hosting provider to check the firewall and proxy and to allow the connection. Also check whether DHL IP addresses are being blocked.

DHL error message: Error: Gone or sudden errors in all shops

If Error: Gone appears or DHL labels suddenly fail in all shops, there is usually an outage at DHL. You can see the current status of the DHL interfaces at status.api.dhl.com. In this case, try again later.

DHL error message after an update: Column not found … supports_receiver_address_for_shipments

If the error message Column not found … supports_receiver_address_for_shipments appears after updating the DHL plugin, this is an error that has been fixed in current versions of the DHL plugin. Update the DHL plugin to the current version.

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: Die Kommunikation mit der DHL BCP API ist nicht möglich. Error: Unauthorized.

This error message appears when you have selected the testing web service in the DHL configuration but have not stored 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: Der Parameter name muss zwischen 1 und 50 Zeichen lang sein.

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]

Therefore, 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 placed via 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, the label can alternatively be created directly in the DHL Express Portal.

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

Pickware supports only DHL Retoure Online. The variant DHL Retoure Selbstzahler 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 creating a shipping label. In this case, make sure that the correct return type DHL Retoure Online is used.

DHL rounding error

If the weight of your packages is not rounded correctly, this may be due to an incorrect setting in your PHP configuration. To check this, look in your php.ini to see whether the value -1 is set for serialize_precision and, if not, adjust the value accordingly. You can find more information here, for example.

Shipping labels are incorrectly declared as PREMIUM

If your shipping labels are created as a 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.

Large-volume recipient could not be found

This error message can appear when the option Label nur erzeugen, wenn Adresse leitcodierbar (Only create label if address is routable) is activated when creating a shipping label.

leitcodierbar.png

When routability is activated, DHL checks whether the combination of street and postal code is uniquely stored in the system. However, some large-volume customers, such as universities or public authorities, use different postal codes for mail addresses 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 mail 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 Label nur erzeugen, wenn Adresse leitcodierbar (Only create label if address is routable) to create the shipping label anyway.

DHL label fails because the street is not found

If the option Label nur erzeugen, wenn Adresse leitcodierbar (Only create label if address is routable) is activated when creating a DHL label, DHL aborts the routing check if the street is not found. Pickware does not check the address itself, but passes on the error message from DHL. You have two options:

  • Adjust the spelling of the street in the shipping address and create the label again.

  • In the dialog for creating the shipping label, deactivate the option Label nur erzeugen, wenn Adresse leitcodierbar (Only create label if address is routable) under Erweiterte Einstellungen (Advanced settings).

Did this answer your question?