Getting error while executing Assign

Hi team

I am getting the following error while executing Assign activity:

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

varNextMonthFirstDate = New DateTime(Now.Year,Now.Addmonths(1).Month,1).ToString(“MM/dd/yyyy”)

Kindly help.
thank you.

Hi @Aishwarya_Bhargava

Just re enter the expression. It is an Double Quotation issue ""

Check out this thread


Try this expression @Aishwarya_Bhargava

varNextMonthFirstDate = New DateTime(Now.Year,Now.Addmonths(1).Month,1).ToString("MM/dd/yyyy")

It worked
thankyou so much :slight_smile:

1 Like

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