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.
When using the DU framework in Unattended Mode, we have the Create Document Data Validation Action activity.
When using the DU framework in Attended mode, we have the Present Validation Station Activity.
If observed, we do not have the Storage Bucket and Action Catalog properties for the attended case scenario. Hence, these configurations are required in an Unattended case (Catalog maybe optional).
If the errors are happening at this activity then we would suggest to re-check if all the Config and Orchestrator values are set for this to work properly.
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.
The resolution for this error code was to upgrade robot and orchestrator versioning to be compatible with the persistence.activities package (I had the latest package upgraded.)