Notifications
Announcements
I am trying to do a batch operation using dataverse REST API with the header ('Prefer : odata.continue-on-error') to upload valid rows even if there are bad rows in the batch. This appears to be not working. I am not recieving any error and also the rows doesn't show up in the crm. I am following this documentation https://docs.microsoft.com/en-us/odata/webapi/batch#enabledisable-continue-on-error-in-batch-request.
Can anyone guide me what I am missing in my request or this header is not supported in web api?
Hello @ARauf1,
As per my knowledge REST API won't support odata.continue-on-error. Lets wait for others comments too.
Try using ExceuteMultipleRequest for achieving your behavior.
Please mark as Answer if it is helpful and provide Kudos
Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLABlog : https://microsoftcrmtechie.blogspot.com
Hello @rampprakash , I am having the same suspicious but based on the documentation it looks like it should work for the REST API (MS Dataverse). I will do wait to see if more replies pop out.
Could you please tel me what you are try to do, so that i can suggest some other solution too
Hello @rampprakash I am trying to upload accounts where one accunt information is valid and one is not valid. I have attached below the trace snaps from fiddler for the request header and body. It works if all the records are valid and i do see the rows in the crm. The whole reason I was using Prefer : odata.continue-on-error So I can add all the valid rows even if there are bad rows in the batch. Otherwise it won't add even the valid rows if there is a bad row. Let say I have 10 rows adn row 5 and 6 are not valid. It should skip row 5 and 6 and upload the rest of the rows and I can retrieve the information from response about the bad rows.
Hi,
I hope you are not using Changeset in your batch request because changeset is atomic in nature and it will rollback the records if any create any in case of failure.
Execute batch operations using the Web API (Microsoft Dataverse) - Power Apps | Microsoft Docs
Please mark my answer verified if this is helpful!
Regards,
Bipin Kumar
Follow my Blog: https://xrmdynamicscrm.wordpress.com/
@bipinshan Yes you were right. After sending each item in a separate changeset I was able to upload valid rows and retrieve the infomation about bad rows. 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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 739 Most Valuable Professional
Michael E. Gernaey 343 Super User 2025 Season 2
Power Platform 1919 268