Skip to main content

Notifications

Announcements

No record found.

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.

 

  • 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,445 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans