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.”
ppr
(Peter Preuss)
May 26, 2025, 7:47am
2
Check and ensure, that the doublequotes are of type: " and not the inverted ones: “
Should I verify this in the Config file?
ppr
(Peter Preuss)
May 26, 2025, 7:52am
4
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.
ppr
(Peter Preuss)
May 26, 2025, 8:08am
7
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.
system
(system)
Closed
May 29, 2025, 10:17am
9
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.