How to print the first line of the exception

When the error occurs I catch it using try catch and then I have to log the error in another table.
For which I only need the sentence of the error.

in assign
errormsg=exception.tostring

Hi,

How about the following?

exception.toString.Split(vbcrlf.ToCharArray).First()

Regards,

1 Like

Hi @sunilkanth

In the assign activity
errorMsg=exception.Message

Hope it helps!!

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