Assign: Expression Activity type 'VisualBasicValue`1' Error Message

Hello All,

Im getting an error like this in the assign activity and i am sure that the regex code works properly. Any ideas how I can fix it?

Thank you !

give a try by deleting the " and retyping the "

you talking about like this ?

System.Text.RegularExpressions.Regex.Match(mail_subject, ID_\d+).Value

HI @korhansuren

Just re enter the expression

System.Text.RegularExpressions.Regex.Match(mail_subject,"ID_\d+").Value
1 Like

no retype the "
with a result of:

System.Text.RegularExpressions.Regex.Match(mail_subject, "ID_\d+").Value
1 Like

HI @korhansuren

In windows legacy, it seems double quote is normalized and any double quote character is accepted.

However, at this time, in windows (.net6) ,in fact, only " (0x22) is accepted to express string literal.

To make matter worse, it seems to occur only compiling. (Expression validator don’t raise an alert.)

Regards
Gokul

1 Like
1 Like

thank you so much!

it’s working now via using this
System.Text.RegularExpressions.Regex.Match(mail_subject, “ID_\d+”).Value

To me it looks the same.

I’m wondering why it’s so hard to share @Yoichi 's solution (and give credit as @ppr did) instead of a copy & paste :face_with_diagonal_mouth:

1 Like

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