Get Queue Item bug? "System.ArrayTypeMismatchException"

Hi,

I just tried the Get Queue Item and I’m getting the following error message:

System.ArrayTypeMismatchException: Attempted to access an element as a type incompatible with the array.

And it doesn’t work from UiPath.System.Activities version 19.2.0 and forward. This activity works perfect when I downgrade to package version 18.4.2.

Bug, or just me not understanding some new functionality?

/d

What orchestrator version are you using?
How is get queue items configured?

Using Orchestrator 2018.3.2.

Configured it just by using an input and output:

The point is, is that I have two separate projects; one using UiPath.System.Activities v. 19.2.0 (or 19.3.0), and the other one 18.4.2, and I use the same queue as input. One fails, the other one works.

Strange…

/d

there is no difference in the activity between 18.4.2 and 19.2/19.3 so i think it may be orchestrator related. i will have to test it myself

you should output the activity into a variable of type
image

Double, triple, quadruple checked that it’s the right variable type.

i ve checked with 18.4.4 orch and its working fine with 19.2 and 19.3

its the same queue you are using as target? is there any special character or something in a queue item?

Same queue as target in both projects. No special characters unless “_” (underscore) is considered a special character, but I tried creating a queue with only alphabetic characters too. Did not work.

Can you try with Orchestrator 2018.3.2? That’s the Orch version I have.

Kind of leaning towards compatibility issues…?

/d

Hi,
i am facing exactly same issue, is it resolved?

Thanks
Varun

Hi Varun, what Studio version do you have?

Same issue here, Orchestrator 2018.3.2 with Studio 2018.4.3 Package version 19.3.2

Hi all - this appears to be the same issue as we are tracking here:

Has anyone had a chance to check if it’s been fixed in their environment with UiPath.System.Activities v19.4 yet?

It has not resolved in UiPath.System.Activities v19.4 also

Same here :frowning:

[SOLVED] Just downgrade UiPath.system.Activities and UiPath.UIAutomation.Activities to 18.3.69!

3 Likes

I created the whole workflow and the problem persisted.

You solution worked like a charm!!! :slight_smile:

2 Likes

Thanks. It worked for me. I had to downgrade from 19.4

1 Like

I’m surprised that this is still not working.

Now I get this message with the last UiPath.System.Activities (19.10.1)
2019-12-04_10h16_38

Still the only solution to make it work is to downgrade UiPath.System.Activities to 18.4.2, which is the last version where it worked. The “Set Asset” activity also does not work, receiving the same error message as in the first post…
And apparently, there are more activities that do not work because of the same problem, as mentioned in GetJobs or OrchestratorHttpRequest with Org Units

/d

Hi @dVni

What is your version of Studio and Orchestrator?

Also, could you post the full error message (Copy to Clipboard option)?

It would also help to have an example of the queue item that you have saved in Orchestrator :slight_smile:

Studio: 2018.3.2
Orchestrator: 2018.3.2

Error with UiPath.System.Activities version 19.7.0:

Summary

18.3.2+Branch.master.Sha.0ee1a557250c8000e864a91dcaeebdc1a4bbeb00

Source: Get Queue Items

Message: Attempted to access an element as a type incompatible with the array.

Exception Type: System.ArrayTypeMismatchException

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.ArrayTypeMismatchException: Attempted to access an element as a type incompatible with the array.
at System.Collections.Generic.List1.Add(T item) at UiPath.Orchestrator.Client.UiPathWebApi.Initialize() at UiPath.Orchestrator.Client.UiPathWebApi..ctor(ServiceClientCredentials credentials, DelegatingHandler[] handlers) at UiPath.Core.Activities.Utilities.OrchestratorClientFactory.GenerateClient(AsyncCodeActivityContext context, String serviceUrl, TimeSpan timeout) at UiPath.Core.Activities.ActivityContextExtensions.GenerateClientFromContext(AsyncCodeActivityContext context, InArgument1 timeoutArgument, String baseUri)
at UiPath.Core.Activities.Orchestrator.OrchestratorService.GetOrchestratorClient(AsyncCodeActivityContext context, InArgument1 timeoutMS, String url) at UiPath.Core.Activities.Orchestrator.BaseOrchestratorClientActivity1.GenerateClientFromContext(AsyncCodeActivityContext context, InArgument1 timeoutMS) at UiPath.Core.Activities.Orchestrator.BaseOrchestratorClientActivity1.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state)
at System.Activities.AsyncCodeActivity`1.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)

Error with UiPath.System.Activities version 19.10.1:

Summary

18.3.2+Branch.master.Sha.0ee1a557250c8000e864a91dcaeebdc1a4bbeb00

Source: Get Queue Items

Message: Method not found: ‘Boolean UiPath.Activities.Contracts.IWorkflowRuntime.HasFeature(System.String)’.

Exception Type: System.MissingMethodException

An ExceptionDetail, likely created by IncludeExceptionDetailInFaults=true, whose value is:
System.MissingMethodException: Method not found: ‘Boolean UiPath.Activities.Contracts.IWorkflowRuntime.HasFeature(System.String)’.
at UiPath.Activities.Shared.PrivateRuntimeContract.HasFeature(String featureName)
at UiPath.Shared.Contracts.RuntimeContractWrapper1.IsSupported() at UiPath.Shared.Contracts.RuntimeContractWrapper1.Invoke[TResult](Func2 func, Boolean throwIfNotSupported) at UiPath.Core.Activities.Utilities.OrchestratorClientFactory.GenerateClient(ActivityContext context, String serviceUrl, TimeSpan timeout, String folderPath) at UiPath.Core.Activities.ActivityContextExtensions.GenerateClientFromContext(ActivityContext context, InArgument1 timeoutArgument, String folderPath, String baseUri)
at UiPath.Core.Activities.Orchestrator.OrchestratorService.GetOrchestratorClient(ActivityContext context, InArgument1 timeoutMS, String folderPath, String url) at UiPath.Core.Activities.Orchestrator.BaseOrchestratorClientActivity1.GenerateClientFromContext(AsyncCodeActivityContext context, InArgument1 timeoutMS) at UiPath.Core.Activities.Orchestrator.BaseOrchestratorClientActivity1.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state)
at System.Activities.AsyncCodeActivity`1.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)

The queue item can be the most basic one. I just created a new queue and added an item with just one ItemInformation (string):

/d