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

<h1>Bad Request - Error in query syntax</h1>
<div class="trix-content"><p><strong>What this error means: </strong><em>The REST service returned a status code that is not 20x - i.e. not OK - Status code received: 400 Bad Request Response body: {"error {"code":"0x80060888","message":"Bad Request - Error in query syntax."}}.Data Sent to REST service:{"creditlimit":55000,"transactioncurrencyid@odata.bind":"/transactioncurrencies(USD)"}</em><br>Dynamics 365 Sales couldn't process your request because something in the data structure is incorrect. This happens before D365 even validates the business logic - it's a formatting or syntax issue.<br><br></p><p>Instead of <strong>{ "creditlimit": 55000, "transactioncurrencyid@odata.bind": "/transactioncurrencies(USD)" }</strong>, it should be <strong>{ "creditlimit": 55000, "transactioncurrencyid@odata.bind": "/transactioncurrencies(a3b2c1d4-e5f6-7890-abcd-ef1234567890)" }.</strong></p><p><br>Common causes:&nbsp;<br>1. Lookup fields using codes/names instead of GUIDs&nbsp;<br>2. Invalid GUID format (must be: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)&nbsp;<br>3. Wrong entity name in @odata.bind (check plural vs singular)&nbsp;<br>4. Field name doesn't exist or contains typo&nbsp;<br>5. Data type mismatch (string sent for number field, etc.)&nbsp;<br><br>Troubleshooting steps:&nbsp;<br>- Validate all GUIDs are properly formatted&nbsp;<br>- Verify entity logical names in D365&nbsp;<br>- Check field names match exactly (case-sensitive)&nbsp;<br>- Test with minimal payload (one field at a time)</p></div>
</template></turbo-stream>

