Input variable I can't get rid of

I have this recurring problem when calling this workflow.

It has 10 arguments. They are all defined as 10 input variables inside the workflow.

Then outside the workflow, in its “Invoke” activity, it turns orange and it complains about this “missing” argument, and the button turns orange. I open the dialog and the offending one is “BreakTriggerScopeInArgument”.

What the heck is this? I cannot get rid of it. If I delete it, nothing happens; everything will run fine, but the button will stay in orange. If I push the button, it doesn’t complain anymore, but it bothers me having unused variables.

Its not really “unused”, that usually comes if you have any loop in your workflow that has a “break” activity in it to exit the loop

I have such a loop in the workflow, but why is it compulsorily declared? And why is it an INPUT variable, instead of an OUTPUT one?

I have the same experience that’s why I know but I have no further info why is it. Maybe its a “feature” :sweat_smile:

I’ve spent some time trying to understand this issue and I was only able to reproduce this while invoking a sub-workflow that is marked as a trigger workflow (because it has a trigger activity as the first activity):

If so, then the answer would be that invoking trigger workflows is not supported and will adjust our documentation accordingly to reflect that.

However, I would appreciate a sample workflow or some screenshots in case this happens for non-trigger workflows as well (in which case we will have to have a second, closer look).