Stop Process after Exception

Hi,
i use try/catch activity to manage NullReferenceException.
How to stop the workflow if there is an Exception?

1 Like

Use Terminate Workflow activity inside the Exception block of Try/Catch you already using. Or Use Rethrow activity inside the exception block and capture the exception outside your main sequence by defining your entire sequences into an Try/Catch Block.

Try{ //Your entire sequences
try{ //Seqence throws null exception
}
catch Null exception{
Rethrow or Terminate workflow activity
}
}
catch exception{
}

2 Likes