Facing "Expression activity type 'VisualBasicValue1' requires compilation in order to run"

Hi Everyone.
When i am trying to run a library inside a workflow (Test Framework), I’m faced with the below error and the library flow stopped in-between. I tried every possible solution, like re-publishing the library to next version and installed the latest version in my workflow. Still its not working. But if i use this library in a newly created project, it is working. If anyone have a solution for this please help me.

Error Message:
Expression activity type ‘VisualBasicValue1’ requires compilation in order to run. Please ensure that the workflow has been compiled

Source: System.activities

Note:

  1. I haven’t used any VB Expressions in the library
  2. Tried deleting .local folder and also .cache folder

Error

Hi @Kamal_Haris

Please retype the Double quotes "". That should solve the issue.

Hope it helps!!

1 Like

@Kamal_Haris,

Check this if your expression have characters other than “” and remove or replace with “”.

UiPath Studio don’t give any error while designing but while compiling or running it give this error you are getting.

I haven’t used any expressions in the library. But don’t know why i’m facing this.

When i try to run the library source file, it is running without any error. But when i’m using this in other workflow (After installing the library package), im facing with this error

Ok @Kamal_Haris , In that case, I think it’s your project having this exception. check if similar expression there in any xaml file.

Double checked in my workflow, not used any expression with " " in it. :pensive_face:

Hi @Kamal_Haris

Welcome to UiPath,

Try to analyze/remove unused things from the project

If you found helpful, feel free to tick as a solution.
Happy Automation

Hey @Kamal_Haris can you analyze your process so it will give you the details of exception any try to remove any unused variable ,arguments,workflow and also check for validation file .

cheers

Hi, I analyzed the file and here are the results. But I’m not sure these warnings are causing this ‘VisualBasicValue1’ issue.
image

image

Hi, I have analyzed the file and i have no unused workflows, variables, arguments, dependencies and imports. Please help me in this.

Hi @Kamal_Haris,

Make sure your project or library dependencies have the same version as UiPath Studio. For example, if the Studio version starts with 2024.x.y then keep your project dependencies in the same 24.x.y if available or any 24.a.b version.

Also, make sure your library package dependencies versions and your project dependencies versions are the same.

Hope it helps.

Cheers!

Hi @Prashanth_D , Tried it bro, i have the latest version of every dependencies and updated it for the library project too. Still facing the issue.

Team, I have found the solution for the issue.

The issue is because of an element in the ‘Object Repository’. After i deleted the specific element which is duplicated in both my project repo and Ui Library repo this issue is resolved.

Here the element in the Ui library repo is different from the project repo. This caused the issue here.

Thank you guys for your wonderful support.
@ashokkarale @Prashanth_D @Parvathy @prashant1603765 @singh_sumit

1 Like

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