Hey,
Please refer the below blog:
https://datasharkx.wordpress.com/2021/08/19/error-logging-and-the-art-of-avoiding-redundant-activities-in-azure-data-factory/
at the end of final set variable activity, you can add a web activity at the end to trigger the logic app to send an email notification