Encountered loop-end without compatible head!

@Ankit_smart my first guess would be that you would have to catch the empty tables and the inactive branches before you come to the loop end. And if a brach is inactive you might have to provide an ‚alternative‘ (maybe empty) table to continue - which you seem to have done on one occasion.

Here are links to maybe relevant threads:

One option would be to upload the workflow maybe with some dummy data so the community might have a closer look.