I am using CosmosDB>BulkExecutor nuget in a .net Standard 2.0 project using this nuget (latest pre-release version 2.4.1 preview) reference link for bulk executor which says that it has support for .net standard 2.0 however errors out when performing linq operation on the collection
“One or more errors occurred. (, Request URI: /, RequestStats: , SDK: Windows/10.0.18363 documentdb-netcore-sdk/2.4.0)”
Following is the code snippet :
var dburi = UriFactory.CreateDatabaseUri(databaseId); var collection = client.CreateDocumentCollectionQuery(dburi); var container = collection.Where(c => c.Id.Equals(containerId)).AsEnumerable().FirstOrDefault(); return container;
The error is thrown while performing linq operation where and First in line #3 above.
Following is a partial stack trace of the library:
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at Microsoft.Azure.Documents.Linq.DocumentQuery`1.<GetEnumerator>d__31.MoveNext()
at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found)
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
This nuget documentation link is also confusing for Graph as it says if you are using “Bulk Executor” use the V3 version and looks like this V3 version does not have support for Graph API. So not sure how to use GraphBulkImport in cosmosdb.