Loop through all orders of a ticket

You don’t need to loop to update order tags. Update Order Tag action automatically loops all orders. If you can give more details about your case I can give better advice.