Hi,
I have created an API page in Business Central. Single GET/PATCH/PUT requests are working fine.
But when I send batch patch requests from my C# application I get 404-Not Found http resource api.businesscentral.dynamics.com/v2.0/{myOrgID}/{env}/api/...../contacts('ABC0000')?Company='CRONUS USA, Inc.'
Here is my batch request sample:
--batch_c9e0ac54-6f58-4282-91cb-b116bd7195d5 Content-Type: multipart/mixed;boundary=changeset_f6a5ccb5-9166-4821-9700-0bd9201904f2 --changeset_4e18c9a3-c417-4f39-994c-8a2f5d36276a Content-Type: application/http Content-Transfer-Encoding:binary Content-ID: 1 PATCH https://api.businesscentral.dynamics.com/........ If-Match: * Content-Type: application/json;type=entry {Json Body Here} --changeset_4e18c9a3-c417-4f39-994c-8a2f5d36276a-- --changeset_c3c6e733-d476-42d0-8fc2-e9a5e41f33b6 Content-Type: application/http Content-Transfer-Encoding:binary Content-ID: 2 PATCH https://api.businesscentral.dynamics.com/........ If-Match: * Content-Type: application/json;type=entry {Json Body Here} --changeset_c3c6e733-d476-42d0-8fc2-e9a5e41f33b6-- . . . . --changeset_f6a5ccb5-9166-4821-9700-0bd9201904f2-- --batch_c9e0ac54-6f58-4282-91cb-b116bd7195d5--
Error Message:{ "responses": [ { "id": "1", "atomicityGroup": "5acaa4eb-d2d0-4e66-b456-********", "status": 404, "headers": { "content-type": "application/json; charset=utf-8" }, "body": { "Message": "No HTTP resource was found that matches the request URI 'https://api.businesscentral.dynamics.com/v2.0/{orgid}/{env}/api/...../contacts('CT000001')?Company='CRONUS USA, Inc.''." } } ] }
I have no clue why i'm getting 404 not found error even that URL is working fine for single patch request.
Sohail Ahmed
1,507
Super User 2025 Season 2
YUN ZHU
1,166
Super User 2025 Season 2
Andrés Arias
1,091
Super User 2025 Season 2