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

I have code like DateTime.ParseExact(Doc_Date2.toString(), “d MMMM yyyy”, Globalization.CultureInfo.InvariantCulture).ToString(“yyyy.MM.dd”)

Doc_Date2 = 2 June 2023 I need 2023.06.02 But am getting error like
Assign: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.
This formula is working in Windows legacy, but is not working in Windows.
Please Help me anyone to solve this issue.

HI @vanithavs

Can you replace your doble quotes in the expression manually and check once again?

Regards
Sudharsan

Hi @vanithavs

Check out this tutorial

Regards
Gokul