Overview
This article will explain possible causes and steps to resolve a "Bad Request" error.
When you get an error saying "there is an issue determining the domestic code", some portion of the address needs to be updated.
Symptoms
When attempting to ship, a pop up dialog will appear with the error message "Bad Request". There is also usually another error dialog that will appear that display a Db2 Server error or there is an issue determining the domestic code.
Possible Causes
- Wrong or invalid Zip code is being used.
- State or other information in the order is wrong.
Troubleshooting Steps
Invalid Zip Code
- Check the the Destination address on USPS Address validator https://tools.usps.com/zip-code-lookup.htm?byaddress
- Enter the full destination address on the above site and check that there is a DPV (Delivery Point Validation) Indicator is marked Y (see image below).
- Compare the Zip code highlighted to the original request.
- If the highlighted Zip code is not the same as in the original request, you will need to change it in the request or the UI to resolve the error.
How to Identify and Fix Bad Data in the Request File
-
Understand the issue
Bad data can appear in any field of the Request file. It’s typically caused by:Invalid special characters.
Missing required fields.
Review the data
Check the XML or view the order in the UI to verify that all information is complete and correctly formatted.-
Correct the data
Update any incorrect fields, such as:Zip Code.
Address.
Any other required values.
Assistance
If any further assistance is needed, please contact our Support team.
Related Articles