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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / CDS REST API Header Pr...
Power Apps
Answered

CDS REST API Header Prefer : odata-continue-on-error

(0) ShareShare
ReportReport
Posted on by 12

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?

I have the same question (0)
  • Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    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/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

  • ARauf1 Profile Picture
    12 on at

    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.

  • Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    Hello @ARauf1,

     

    Could you please tel me what you are try to do, so that i can suggest some other solution too

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

  • ARauf1 Profile Picture
    12 on at

    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.

    3.png2.png

     

  • Verified answer
    Bipin D365 Profile Picture
    971 on at

    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/

  • ARauf1 Profile Picture
    12 on at

    @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.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard