Our application is integration between Dynamics and other system and we have an issue to create an Item through API. This is happening only for this client.
The following error occurs when we try to create an Item:
The field Tax Group Id of table Item contains a value ({A1272569-9819-ED11-90EB-6045BD880AA6}) that cannot be found in the related table (Tax Group)
This is the response we get when we fetch the Tax Groups
And this is the request body we are sending when we try to create an Item
Being that we are fetching the Tax Group Id from Dynamics and then using it to create an Item, there should be nothing wrong.
But it is
We then looked into the customers Dynamics account and how Tax Groups were set up. Everything seems to be in order.
When customer tries to create an Item manually, he sees all the Tax Groups that are available to us as well
Looking into the Tax Details of this one Tax Group, everything seem to be in order
This issue is happening for all the Tax Groups the customer has. We also tried to create a new Tax Group and the issue still persists.
One thing to note, customer is able to manually create an Item using Tax Group through Dynamics portal.
The issue is happening only through API.
Looking into Dynamics docs, I see this example for request body when trying to create an Item
In the documentation it's not clear which of these fields are mandatory.
For example, we are not passing taxGroupCode, only taxGroupId. May that be an issue?
We are not facing these issue with other customers from US. Only this customer in Belgium
Is there any specific limitation for creating Items through API for different region/country accounts (Example, an account from Europe/Belgium)?
Is there any specific configuration that needs to be made for different region/country accounts in order for Items to be created through API?
Is there any additional parameters required to be sent when creating Items in accounts from different regions/countries?