Error: choiceset value numberId 0 does not exist - performer failing randomly

I have a performer job which basically updates Data service entities and is failing during initial run but then runs fine upon retry. Fails again sometimes during initial performer run and then runs fine after retrying.

Error:

Error: choiceset value numberId 0 does not exist. Env: 2a2c1b88-b509-ee11-907c-002248938789, Choiceset: 09821c6f-2f0b-ee11-907c-002248938789, TraceId: 6ca4f8bc1d98a9bb8df177fcb03ee673

UiPath.DataService.Activities.Exceptions.EntityServiceException: Error: choiceset value numberId 0 does not exist. Env: 2a2c1b88-b509-ee11-907c-002248938789, Choiceset: 09821c6f-2f0b-ee11-907c-002248938789, TraceId: 6ca4f8bc1d98a9bb8df177fcb03ee673 at UiPath.DataService.Activities.Extensions.HttpClientExtensions.ExtractResponseAsync[T](HttpResponseMessage response, Func`2 func)
at UiPath.DataService.Activities.Extensions.HttpClientExtensions.ExtractResponseAsync[TResponse](HttpResponseMessage response)
at UiPath.DataService.Activities.Extensions.HttpClientExtensions.PostAsync[TResponse](HttpClient client, Uri requestUri, Object content, CancellationToken cancellationToken)
at UiPath.DataService.Activities.Services.EntityService.UpdateEntityDataAsync[TEntity](TEntity entity, Int32 expansionDepth, CancellationToken cancellationToken)
at UiPath.DataService.Activities.UpdateEntityRecord`1.UpdateEntityDataAsync(TEntity entity, Int32 expansion, EntityTelemetryOperation operation, CancellationToken cancellationToken)
at UiPath.DataService.Activities.UpdateEntityRecord`1.SendEntityRequestAsync(AsyncCodeActivityContext context, EntityTelemetryOperation operation, CancellationToken cancellationToken)
at UiPath.DataService.Activities.BaseEntityActivity.<>c__DisplayClass19_0.<<ExecuteAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at UiPath.DataService.Shared.Telemetry.TelemetryService.TrackOperationAsync[T](TelemetryProperties telemetryProperties, Func`2 func)
at UiPath.DataService.Activities.BaseEntityActivity.ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
at UiPath.Shared.Activities.ContinuableAsyncCodeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
--- End of stack trace from previous location ---
at UiPath.Executor.BaseRunner.EndExecute(IAsyncResult result)
at UiPath.Executor.InProcessRunner.EndExecute(IAsyncResult result)
at UiPath.Core.Activities.ExecutorInvokeActivity.EndExecute(AsyncCodeActivityContext context, IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)

Choice Set and Data Entities used:

@Moshin_Ali_Khan,

It may happen due to some network latency. Move this logic to Retry Scope to avoid this error.

Thanks,
Ashok :slight_smile:

@ashokkarale
will try that.

Have noticed the error is throwing after processing some transactions successfully.
But is happening for every performer run. If this was a code logic issue, then it should not process at all.

@Moshin_Ali_Khan,

You are correct. It’s intermittent issue and can but be reproduced to rectify. Only option I see is using retry scope.

Thanks,
Ashok :slightly_smiling_face: