Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Replenishment System REST error

Posted on by 5

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.

 

Categories:
  • bc_al Profile Picture
    bc_al 5 on at
    RE: Replenishment System REST error

    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.

  • Connor Hyde Profile Picture
    Connor Hyde 70 on at
    RE: Replenishment System REST error

    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.

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Replenishment System REST error

    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.

    www.yammer.com/dynamicsnavdev

    www.dynamicsuser.net/.../14

    I will open this up to the community in case they have something to add.

    Thanks.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,134 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,928 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans