Error: Attempted to access an element as a type incompatible with the array while using Get Queue Items activity

Hi Friends,

Good Day!

In one of my automation, I am using the “Get Queue Items” UiPath Activity.

From that, I want to extract the number of new status items in the queue.

Problem:

  • In DEV & UAT - It is running fine and returning the number of the queue items successfully. (Get Queue Item Activity’s Output.Count)

  • However, in the Production Environment - We are facing an error “Attempted to access an element as a type incompatible with the array”

What we tried:
We upgraded & downgraded the UiPath.System.Activity version. but still facing issues.

Could you please help me to resolve this issue - If we need to downgrade then what will be the compatible version of that package? or any other better option available (except Orchestrator API call)?

@malak.dudhia

  1. What version of system activities you are on?
  2. What other versions you tried?
  3. On the production machine either rename the .nuget folder and try to rerun the bot
  4. You can also copy the system activities package from dev machine to the prod .nuget folder and check if that resolves

C:\Users\<Username>\.nuget

Cheers

First of all, thank you very much for your response. @Anil_G

I am using latest one 23.10.2 version and downgraded I used 23.4.3.

I can copy activity from DEV and paste into PROD. However, we are using control version tool Bitbucket. So, activity package will be same for all environment.

Monday I will verify with renaming .nuget folder name.

@malak.dudhia

The activity package might be same…but when you run in prod the packages get downloded locally and aometimes if any of the packages are not downloded completely then you might see these differences so copying and renaming both are for same reason to let it download again or copy already downloaded once

Do let us know the outcome

Happy Automation

Cheers

Thank you for your help…The issue has been resolved now.

What we did to resolve the issue:

  1. We downgraded the UiPath.System.Activity Package - Version 22.4.1 (Please Verify all activity will be available or not after downgrading the package - Mainly Get Asset & Credential activity)

  2. Delete the All UiPath.System.Activity Package (inside C drive → User (robot account) → .nuget package) in PROD VM.

  3. Restarted the PROD VM.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.