<turbo-stream action="update" target="wiki_card"><template>

<h1>(400) Bad Request</h1>
<div class="trix-content"><div><strong>Scenario</strong>: A request contains invalid or missing parameters, causing the Web Service to reject it.<br><br><strong>Error Message</strong>: 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).<br><br><strong>Cause</strong>:<br><br></div><ol><li>Missing mandatory fields in the request payload.</li><li>Invalid field values (e.g., unsupported characters).</li></ol><div><strong>Resolution</strong>:<br><br></div><ol><li><strong>Validate Required Fields</strong>:<ul><li>Ensure all mandatory fields are included in the request and therefore sent to NAV.</li></ul></li><li><strong>Verify Field Values</strong>:<ul><li>Check that the data complies with NAV’s validation rules.</li></ul></li></ol></div>
</template></turbo-stream>

