Library problem

Hi,
I created a library that I tested and worked well but when I try to use it I receive this error:
Exception is: System.NotSupportedException: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.

Have you any idea, please? I new in making libraries…

Can you share the versions of Studio you are working in and running code in?

Hi @anamariavioleta.dinca,
This can happen when a string with quotes is copied from a RTF formatted app, such as Microsoft Word. The " quotation character is not the code version. Notice the slanted quotes vs. the straight quotes in the two examples below:
image

Hope it helps you!

1 Like

the version is 2023.4.4

when I insert the arguments I insert them as variables… :frowning:

It’s not necessarily in your arguments, it could be anywhere in your code that the quotes are wrong.

1 Like

Hi @anamariavioleta.dinca,
Try to identify the activity that is causing the error. Posibly you are using an assign activity and inside of this you have an expression using double quotes. Replace the double quotes.

Cheers!

1 Like

Even if the library works independently?

I don’t have any erro in code during compilation… only when I run the activity in the new project

You were all right, apparently I was using those quotes in arguments, but I didn’t get any error messages in the library. Thank you very much!

My bad then, there is a similar issue when using 23.10 and 23.4, I must have misremembered the error message. Good the other guys got you on track.

1 Like

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