I need to run a Terminate Workflow activity but sometimes the workflow may have already been terminated or finished. When it runs on an item that is not actively running this workflow, then it errors because there is no active instance.
Is it possible to query the active instances so that I can set up criterea for running the terminate workflows activity? Or a setting I missed in this activity that will prevent the error?