Terminate Workflow Activity Job Status

I have used Terminate Workflow activity. It will operate correctly but the orchestrator status shows ‘Faulted’. What is the reason? If i want to change it then how should i do?

@Omkar_Shete_CTR,

Terminate workflow works similar to Throw Exception. So to avoid job mark as Faulted, you can add try catch to Invoke that workflow which is using Terminate workflow.

This will gracefully terminate the workflow and your job will not marked as Faulted.

Thanks,
Ashok :slight_smile:

Hi Ashok,
I am already using Try-Catch and in catch i have used that Terminate Workflow…

@Omkar_Shete_CTR,

This try catch should be in the workflow (Parent) from where you are invoking the workflow(Child) which have terminate workflow activity.

Child Workflow

Parent Workflow:

Thanks,
Ashok :slight_smile:

Use “Return” activity instead.

image

Cheers

That’s what terminate is supposed to do. If you want your job to end successfully, you need to use proper flow control to just get to an end point where there is nothing else to do.

1 Like