MyRapidi
MyRapidi

Search our Wiki

(400) Bad Request

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.