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

Hello, I am trying to compile this code, but I get the following error: “Write Cell: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.” This error only occurs when I copy and paste the code below the “For Each Row in Data Table (REIM)” after the “Write Cell”. If I remove the code after the “Write Cell”, the error is resolved, but I want two processes to be executed. Is there a way to fix this? I have already tried moving the “For Each Row in Data Table (REIM)” outside of the “Do (use excel file)” but the same error appears.

Hi @rosina.flores

Visual Basic 1 error basically appears when your double quotes aren’t written correctly like "". Please chfck the entire workflow whether the double quotrs are given properly.

Make sure when you move any loops or activities outside the Use Excel File make sure to change the scope of the variable which you have used within the activities.

Regards

1 Like