Action center works in attended mode but not in unattended mode

Hello All,

I’m testing an automation which works perfectly fine in attended mode. As I started testing in unattended mode, it throws an error when kicked to action center.

Here are the logs.

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)

would anyone know why this would happen?

Please help.

thank you!

Try to upgrade the Persistence activity package as it apparently was fixed in v1.4.0 https://docs.uipath.com/activities/docs/release-notes-uipath-persistence-activities#v140 and also set your project to Supports Persistence.

Hello Marian,

Thank you for your reply. I’m on persistence activity package 1.4.3, does that mean I have to downgrade instead?

Hey Marian,

I downgraded persistence activities, but unfortunately there’s no change. I’m still getting the same error mentioned above.

Check the https://docs.uipath.com/activities/docs/release-notes-uipath-persistence-activities#v143 as there are some prerequisites for v1.4.3

Also https://docs.uipath.com/activities/docs/persistence-project-compatibility

1 Like

Hello Marian,

My orchestrator version is 23.1.11-release-4 and persistence is 1.4.3, I do not find any release note related.

Unfortunately this error still persists, any help would be kindly appreciated.

Some action items taken to find root cause,

  • Compare, validate and replicate folder permissions for unattended mode to reflect attended mode configurations.
  • Validate assets in DU and check access of each config assets required for action center.
  • Downgrade persistence activities (package activity in DU that needs to connect to action center) and checking versioning compatibility.
  • Set all action center config assets as string values (UiPath community recommendation) and retest.

If you are an enterprise customer, feel free to raise a case with technical support.

1 Like

I did, thank you so much :slight_smile:

1 Like