Skip to content

Instantly share code, notes, and snippets.

@ryanmats
Created March 19, 2018 09:35
Show Gist options
  • Save ryanmats/7efc444b9214dbab149d54f7fd446381 to your computer and use it in GitHub Desktop.
Save ryanmats/7efc444b9214dbab149d54f7fd446381 to your computer and use it in GitHub Desktop.
C# Firestore - UpdateAsync with Nested Fields Dot Notation - Error Message
Unhandled Exception: System.AggregateException: One or more errors occurred. (Status(StatusCode=InvalidArgument, Detail="Entity has a nested entity property named 'Favorites' as well as a property prefixed with 'Favorites.', this results in name collision.")) ---> Grpc.Core.RpcException: Status(StatusCode=InvalidArgument, Detail="Entity has a nested entity property named 'Favorites' as well as a property prefixed with 'Favorites.', this results in name collision.")
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Google.Api.Gax.Grpc.ApiCallRetryExtensions.<>c__DisplayClass0_0`2.<<WithRetry>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Google.Cloud.Firestore.WriteBatch.<CommitAsync>d__13.MoveNext() in C:\Users\jon\Test\Projects\google-cloud-dotnet\releasebuild\apis\Google.Cloud.Firestore\Google.Cloud.Firestore\WriteBatch.cs:line 202
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Google.Cloud.Firestore.DocumentReference.<UpdateAsync>d__20.MoveNext() in C:\Users\jon\Test\Projects\google-cloud-dotnet\releasebuild\apis\Google.Cloud.Firestore\Google.Cloud.Firestore\DocumentReference.cs:line 134
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at GoogleCloudSamples.QuickStartFirestoreProgram.<UpdateNestedFields>d__10.MoveNext() in /Users/ryanmats/testing/dotnet-docs-samples/firestore/api/AddData/Program.cs:line 224
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at System.Threading.Tasks.Task.Wait()
at GoogleCloudSamples.QuickStartFirestoreProgram.Main(String[] args) in /Users/ryanmats/testing/dotnet-docs-samples/firestore/api/AddData/Program.cs:line 275
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment