Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled

I’m reading configuration details from a config file.
While trying to assign a value from the config dictionary using an Assign activity, for example:

str_FilePath = dict_Config(“File_Path”)

I’m encountering the following error:

"Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.”

Check and ensure, that the doublequotes are of type: " and not the inverted ones: “

Should I verify this in the Config file?

About the others checks:

  • check the dictionary datatype and if the value part is of datatype: Object, then append toString like: dict_Config("YourKeyName").ToString()
  • we would also question the key as it looks like a file path, which is untypical

Also it is recommended to debug and inspect the variables e.g. with the immediate panel:
Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

Maybe you can elaborate more on your use case

Yes @arivazhagan_mathivan

str_FilePath = dict_Config(“C:\Users\ABCD\Desktop\Expirations”)

Pls Check in config excel file: better to copy the path from file explorer and past there.

Happy Automation!

While debugging the issue, I can see the correct value in the Immediate panel.
For example, when I enter dict_Config("File_Path") in the Immediate window, it returns: C:\Users\ABCD\Desktop\Expirations

However, I’m still encountering an exception when using the same expression in the Assign activity.

As mentioned:

Had you tried?

str_FilePath = dict_Config("File_Path").ToString()

Also:

feel free also to share some screenshots from your modelling

it worked after i changed to the proper double (“ABCD”) quotes Thanks.

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