---
title: "(400) Bad Request"
description: "(400) Bad Request"
keywords: "(400) Bad Request NAV Web Services"
url: "https://myrapidi.com/wiki/400_bad_request"
locale: "en"
published: "2025-01-14T10:34:19Z"
modified: "2025-01-14T10:34:19Z"
---

**Scenario** : A request contains invalid or missing parameters, causing the Web Service to reject it.  
  
**Error Message** : Status code received: 400 Bad RequestResponse body: {"error":{"code":"Internal\_InvalidTableRelation","message":"The field Sell-to Customer No. of table Sales Header contains a value (XZY) that cannot be found in the related table (Customer).  
  
**Cause** :  
  

1. Missing mandatory fields in the request payload.
2. Invalid field values (e.g., unsupported characters).

**Resolution** :  
  

1. **Validate Required Fields** :
  - Ensure all mandatory fields are included in the request and therefore sent to NAV.

2. **Verify Field Values** :
  - Check that the data complies with NAV’s validation rules.
