Source: For each Message: Unable to cast object of type . Exception Type: InvalidCastException System.InvalidCastException: Unable to cast object of type 'System.Char' to type 'System.Text.RegularExpressions.Match'. at UiPath

im getting erroe while convertion from ‘System.Char’ to typer to ‘System.Text.RegularExpressions.Match’

thanks & regards
suhel

@Suhel_Khan Is it possible to attach your workflow

sorry im a newuser i cant attech my workflow but here is a snap of my work flow @indra


Maybe the type of the item that you seted was wrong.
Click and check it.

I believe this issue is long time solved as it was posted a long time ago :slight_smile:

However, if anyone would have similar trouble - it was probably because either the variable mail_body had different type than the expression returned or the expression was wrong itself.