Hi, I have a workflow and part of workflow needs to be decided to run based on the number of record return of right join from join tool,
If there are records in right join part , I need to run another dynamic query(Query 2).
Eventually, I need to union the results from Query 1 and Query 2.
I know there are Detour tool and can set control parameter based on number of right join records.
Then I try to build batch macro and use detour ,Here is the example I built .
Then I connect this batch macro back to my workflow.
I connect summarize result(the number of right join record, only have one value) to control parameter input.
Also I connect the result of filter to Macro input .
But then I receive the error below:
Please let me know if you have any thoughts
Thanks