Hi @fardeen9983 - my recommendation would be to update the macro to accept a record count parameter and to use that parameter to update a detour tool. This would bypass all of the tools if there is no incoming data. I've attached an example of what this might look like. The formula in the action tool is shown below and should update the DetourRight configuration.
IIF(ToNumber([#1]) = 0, "True", "False")