Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple batch errors #882

Open
calebshannon opened this issue Nov 10, 2022 · 2 comments
Open

Multiple batch errors #882

calebshannon opened this issue Nov 10, 2022 · 2 comments

Comments

@calebshannon
Copy link

calebshannon commented Nov 10, 2022

If there are multiple errors returned in my batch response, is it possible to get them all?

I see this in AssignBatchActionResultsAsync():

if (exceptions.Any())
{
    throw exceptions.First();
}

Am I correct in my understanding that if there are more errors, I will not get them from my ODataBatch?

I'm a bit of a junior so please help me understand it if I'm not thinking about it the correct way.

@marco10507
Copy link

Hi @calebshannon ,
Did you manage to capture all the errors from the batch? I would like to get all the errors and handle them on my side.

@calebshannon
Copy link
Author

Hi @calebshannon , Did you manage to capture all the errors from the batch? I would like to get all the errors and handle them on my side.

No, I ended up not using an OData client library for my project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants