Workflow Error with Assign - but when statement executed in Immediate during debug it works just fine

I am getting the error : when running the workflow - “Assign: Expression Activity type ‘VisualBasicValue`1’ requires compilation in order to run. Please ensure that the workflow has been compiled.” - the assign statement is to remove a lot of unwanted characters out of a word text… so I am setting a string and use in an assign “System.Text.RegularExpressions.Regex.Replace(_text, “[\u00A0\u00AD\u200B\u200E\u200F\u2028\u2029]”, “”).Replace(”", “\”).Replace(“”“”, “"”“).Replace(vbCrLf, “\n”).Replace(vbLf, “\n”).Replace(vbTab, " “).Replace(”“”, “”“”).Replace(“””, “”“”).Replace(“‘”, “'”).Replace(“’”, “'”).Replace(“…”, “…”).Replace(“—”, “-”).Replace(“–”, “-”)"

Now when I run this in the immediate window - during a debug session it works PERFECTLY… but when I actually use it in a workflow I get that compilation error. Tried different ways - like regular string.replace, etc

@ton_roelandse

Can you show a screenshot of the value in assign

One thing is inverted comma …this is correct "…any other type is wrong “ “

Cheers