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

Community site session details

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

Issue in create order API which is sometimes working and sometimes not - Urgent

(0) ShareShare
ReportReport
Posted on by 76
Hello, 
 
We have been creating Sale Order through API for the last 2 years through our app but I don't know is it a problem from BC or something else recently since last week we are facing this below issue, where we are getting this below error message and the strange thing is if I post the same order data after some time then it will be successfully imported. 
 
{/error/:{/code/:/BadRequest/,/message/:/Invalid Request Body CorrelationId: 5546002a-449e-4078-9823-b6092ed02abc./}}
 
Does anyone know what would be the problem here and how do I solve it?
I have the same question (0)
  • Community member Profile Picture
    76 on at
    Issue in create order API which is sometimes working and sometimes not - Urgent
    Hello Again,
     
    The issue happened between the end of October and the start of November but It seems quite strange because now it's working properly without any change.

    Is anybody has experienced the same?

    It was a problem from the BC side? or what should I take action so that it won't happen again?
  • DAnny3211 Profile Picture
    11,382 on at
    Issue in create order API which is sometimes working and sometimes not - Urgent
    Hi 
    I agree with Ruchita Chavda
    In my opinion it is not a problem attributable to BC but more to the body that is sent,
    check that the callsign and the body is correcto
    DAniele
  • Community member Profile Picture
    76 on at
    Issue in create order API which is sometimes working and sometimes not - Urgent
    Hello @DAnny3211 ,
     
    The order body that I am passing is correct that's why if I post an order after some time then I can able to do it.
     
    It seems like the problem has started occurring in the last 2 days again while posting the orders.
     
    each time the order data will be the same but sometimes it's processed and sometimes it fails for the following reasons,
     
    {/error/:{/code/:/BadRequest/,/message/:/Invalid Request Body CorrelationId: 5546002a-449e-4078-9823-b6092ed02abc./}}
     
    Does anyone know what causing an issue, please let me know.
  • Community member Profile Picture
    76 on at
    Issue in create order API which is sometimes working and sometimes not - Urgent
    Hello,
     
    We have noticed some changes from the BC error message since 25-11-2023 while posting an order,
     
    Exception Message: {"error":{"code":"Internal_ServerError","message":"We can't save your changes right now, because a record in table 'Sales Header Archive' is being updated in a transaction done by another session.\r\n\r\nYou'll have to wait until the other transaction has completed, which may take a while. Please try again later. CorrelationId: d3e4e909-5aed-4732-98b8-aaf675e85009."}}
     
    this seems to be the right error message instead of the Invalid Request Body where the only solution is to attempt the operation again.
     
     
  • Community member Profile Picture
    76 on at
    Issue in create order API which is sometimes working and sometimes not - Urgent
    Hello @All,
     
    I have again started receiving this type of error message as below,
     
    Exception Message: {"error":{"code":"BadRequest","message":"Invalid Request Body CorrelationId: d9517141-35ba-4494-ae40-f518e54c0a72."}}

    Here I know there wasn't an issue in my request body because after some time if I post the same body then it will work and the order will be posted without any issue.
     
    Can anybody know how to solve or diagnose what is the issue here?

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,762

#2
Sumit Singh Profile Picture

Sumit Singh 2,573

#3
YUN ZHU Profile Picture

YUN ZHU 1,930 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans