When creating shipments with transport insurance (Transportversicherung), this error occurs:
Hard validation error occured. Bitte geben Sie einen gültigen Betrag an
Hard validation error occured. Please enter a valid amount
If the order amount is 1000 EUR or higher, Magento will add a comma as thousands-separator to the amount. However, the DHL Webservice (API) cannot process this correctly.
This problem applies to the DHL Versenden module for Magento 1 up to version 1.3.0. It is resolved in later versions.
As a quick fix, the following can be done:
Go into this file
and search for this code section:
$insuranceAmount = $requestData->getInsurance();
Replace that line with the following code:
$insuranceAmount = str_replace(',', '', $requestData->getInsurance());
The result should look like this:
Save the file, flush all Magento caches, and execute the transmission to DHL again.