Workflow automatically canceledIssue Workflow automatically canceled when going back through wait for condition stepCauseWorkflow context exceeding max activity count.The workflow version is having 100 as the activity value. But the workflow is quite big and it involves rollback and restarting. So the same activities are triggering again which increases the activity count more.So when workflow activity count is getting increased more than 100, workflow context is getting canceled. If workflow activity count in workflow context is more than define activity value in the workflow version then the workflow will be canceled.ResolutionIncrease the activity value in the workflow version. However, increasing the value too much is not recommended as it may lead to performance impact. For the future implementation, it's recommended placing the activity in sub-workflow which would be easier to manage and performance-wise also it would be good.Related LinksReference :Set the maximum number of workflow activities