I’m trying to run a DU automation which worked well in attended mode, but in unattended mode, it throws an error before the document kicks into action center, Error is as follows.
Failed to process document. Exception: mscorlib : Attempted to access an element as a type incompatible with the array.
Process was aborted due to: System.ArrayTypeMismatchException: Attempted to access an element as a type incompatible with the array. at System.Collections.Generic.List`1.Add(T item) at UiPath.DocumentUnderstanding.Persistence.UiPathWebApi.Initialize() at UiPath.DocumentUnderstanding.Persistence.ActivityContextExtensions.GenerateClientFromContext(ActivityContext context, Int32 timeoutMs, String folderPath, CancellationToken cancellationToken) at UiPath.DocumentUnderstanding.Persistence.OrchestratorService.GetOrchestratorClient(ActivityContext context, Int32 timeoutMs, String folderPath, CancellationToken cancellationToken) at UiPath.IntelligentOCR.Activities.BaseOrchestratorClientAsyncActivity.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state) at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
Could you let us know maybe by Debugging which exact activity the Error happens ?
Also, If using the DU framework certain assets need to be configured. Is that already done ? We do see these errors happen when certain Orchestrator related configuration (Setting up of Assets) is not done completely.
Thank you for your reply. For my attended automation I have already added create and wait for data validation (both) That’s how I knew the automation always kicks into the action center in the same orchestrator connected. Here are my variables.