Need help resolving error


The error returned from this assign activity states:

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

Anyone know why this is the case?

Hi @HENG_JUN_YING_AARON

Once remove double quotes and reassign it

Hi @HENG_JUN_YING_AARON

Reassign the whole syntax by removing the double quotes and keeping it again.

CDate(Month.Trim).ToString("MMMM").Substring(0,3)+"'"+Month.ToString.Substring(Month.length-2)

Regards,

correct the inverted double quotte to "


Kindly note: MMMM output and substring can maybe optimized

Hi @HENG_JUN_YING_AARON

The error was mentioning that there is a problem in giving the double quotes.

Remove the double quotes after MMMM and reinitialize the double quotes.

Hope it helps!!

@HENG_JUN_YING_AARON

The error: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run
pops up because the double quotes (") is different in your machine, so remove those double quotes and add it back and run it

It will work smoothly

Hope it helps you out!

Hi @HENG_JUN_YING_AARON

CDate(Month.Trim).ToString(“MMM’yy”)

Month.Substring(0, 3) + “'” + Month.Substring(Month.Length - 2)

YourResultVariable = CDate(Month.Trim).ToString(“MMM’yy”) + Month.Substring(0, 3) + “'” + Month.Substring(Month.Length - 2)

Hope it helps!!

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