Hi. We're on 21.4.52563.52602 using an integration tool to create new item records.
Getting the following error when the Replenishment_System field is set to 'Prod. Order' for a new item transfer:
"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":"BadRequest","message":"Control 'Replenishment System' is read-only."
There's no error when Replenishment_System ='Purchase' (having tested by altering the transfer script from ##CASE("PDLM__Has_Bom__c",1,'Prod. Order','Purchase') to ##CASE("PDLM__Has_Bom__c",1,'Purchase','Purchase')).
We've just recently seen this error. Many items have previously been created when set to 'Prod. Order'.
The field is clearly not read-only because we're able to send items using the 'Purchase' option. What else might be causing this error?
Thanks for having a look.
Hey, Connor. We were forced to drop the field from the mapping and manually update the replenishment when necessary. I agree it seems to be due to an update.
I'm having the same problem, have you found a solution for this? From what I can see, the field has been changed to read-only in an update and now can't be updated at all through the API. Can't even set it to 'Purchase'. A change like this doesn't make sense, so I'm wondering if there's a new pre-requisite or setting that needs to be modified in our environment.
Hello,
We currently do not have dedicated Dev support via the Dynamics 365 Business Central forums, but I wanted to provide you some additional resources to assist. If you need assistance with debugging or coding I would recommend discussing this on one of our communities.
I will open this up to the community in case they have something to add.
Thanks.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,134 Super User 2024 Season 2
Martin Dráb 229,928 Most Valuable Professional
nmaenpaa 101,156