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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Odata update customer table getting a "Entity does not support modifying data" error

(0) ShareShare
ReportReport
Posted on by

We have Business Central Dynamics SAAS.

I am using Postman OAUTH to update/patch the post_code (Postal Code) for a customer. I am successful at the "Get" 

it returns the CRONUS data for Trey Research

https://api.businesscentral.dynamics.com/v2.0/2383c526-aef3-47e9-8487-47712e689168/Sandbox/ODataV4/Company('CRONUS Canada, Inc.')/Customers('20000')

{
    "@odata.etag""W/\"JzQ0Ozc0d2RnWkNNaWlUR1VpMjMyQ2RCY2dlRHFDSDRkQk45cTM4WS9VNHFaV0U9MTswMDsn\"",
    "No""20000",
    "Name""Trey Research",
    "Name_2""",
    "Responsibility_Center""",
    "Location_Code""",
    "Post_Code""L5N 8L9",
    "Country_Region_Code""CA",
    "Phone_No""",
    "IC_Partner_Code""",
    "Contact""Helen Ray",
    "Salesperson_Code""PS",
    "Customer_Posting_Group""DOMESTIC",
    "Gen_Bus_Posting_Group""DOMESTIC",
    "VAT_Bus_Posting_Group""",
    "Customer_Price_Group""",
    "Customer_Disc_Group""",
    "Payment_Terms_Code""14 DAYS",
    "Reminder_Terms_Code""",
    "Fin_Charge_Terms_Code""",
    "Currency_Code""",
    "Language_Code""",
    "Search_Name""TREY RESEARCH",
    "Credit_Limit_LCY"0,
    "Blocked"" ",
    "Privacy_Blocked"false,
    "Last_Date_Modified""2020-09-08",
    "Application_Method""Manual",
    "Combine_Shipments"false,
    "Reserve""Optional",
    "Ship_to_Code""",
    "Shipping_Advice""Partial",
    "Shipping_Agent_Code""",
    "Base_Calendar_Code""",
    "Balance_LCY"4908.72,
    "Balance_Due_LCY"4908.72,
    "Sales_LCY"88132.2,
    "Payments_LCY"94680.73,
    "CFDI_Purpose""",
    "CFDI_Relation""",
    "Global_Dimension_1_Filter""",
    "Global_Dimension_2_Filter""",
    "Currency_Filter""",
    "Date_Filter""''..03/09/21"
}
But when I try to patch the Post_Code above, I get this error
{
    "error": {
        "code""BadRequest_MethodNotAllowed",
        "message""Entity does not support modifying data.  CorrelationId:  edaeed0d-3f44-4533-babe-dcd86ad74896."
    }
}
I use JSON with the following in the body
{
    "Post_Code": "H0H 0H0"
}
I have tried chaging If-Match from * to the odata etag    W/"JzQ0Ozc0d2RnWkNNaWlUR1VpMjMyQ2RCY2dlRHFDSDRkQk45cTM4WS9VNHFaV0U9MTswMDsn"
But it's the same error.
 
I think there must be a setting in Business Central to authorize an update to the table, but where can I find that? Or is there something else that is wrong?
I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,247 Super User 2025 Season 2 on at

    Are you using POST method in the PostMan when you update?

  • Suggested answer
    JAngle Profile Picture
    133 on at

    What is the odata page? Is it customer card? How does the field play out in your regular UI? Perhaps it has some none standard logic preventing this with your PATCH request. What about doing a POST do you get an issue with insert?

  • jjku Profile Picture
    on at

    No. We are using Patch. Is that not correct?

  • jjku Profile Picture
    on at

    We got around this by just using the API directly and getting the GUID for the company and customer. Also the API uses postalCode instead of Post_Code.

    api.businesscentral.dynamics.com/.../customers(d1080550-78f1-ea11-bb6a-000d3a2fef8c)

    Still not sure why OAuth is not working though. But at least I know we can write and update the table now.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,116

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 764 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 635 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans