web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Replenishment System REST error

(0) ShareShare
ReportReport
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.

 

I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    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.

  • Connor Hyde Profile Picture
    70 on at

    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.

  • bc_al Profile Picture
    5 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,028 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,121 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 669 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans