[CSHARP-3860] How to we find the Mongo Query Response success or not Created: 16/Sep/21  Updated: 27/Oct/23  Resolved: 01/Oct/21

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Unknown
Reporter: Somasundara Pandian Assignee: Robert Stam
Resolution: Gone away Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

i have C# mongo db driver 2.10.0 used to create a multiple record using Insert Many Record command.

Its working fine in our local environment .But we are facing the issues in server. Our query Executed in mongo .but we unable  to check the query failed status .

 

Guys Please let me know how to we check the query response status like SQL Profiler.

 



 Comments   
Comment by PM Bot [ 01/Oct/21 ]

There hasn't been any recent activity on this ticket, so we're resolving it. Thanks for reaching out! Please feel free to comment on this if you're able to provide more information.

Comment by Robert Stam [ 16/Sep/21 ]

I'm not sure I fully understand your question, but the general idea is:

  1. If the call to `InsertMany` returns without throwing an exception then the insert completed without errors
  2. If `InsertMany` fails it will throw a `MongoBulkWriteOperationException` containing information about what failed
Generated at Wed Feb 07 21:46:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.