Hey Nagesh,
In case of any conditional or iterative operator , you need to capture the message within the operator separately.
In your case it would be activities within IF (True and false) scenarios.
How to concatenate errormsgs of all activities in 1 common msg:
https://datasharkx.wordpress.com/2021/08/19/error-logging-and-the-art-of-avoiding-redundant-activities-in-azure-data-factory/
The other way would be to have the logic in another pipeline and call that pipeline.
If the parent pipeline fails, the child pipeline would capture all the msgs.