Hi prasad ambulkar,
Thank you for posting query in Microsoft Q&A Platform.
Yes you are right. At this moment the best possible way is writing
if
conditions and identifying it only.
User defined functions are with in dataflow to keep logic of transformations at one place. That will help here. Please check below link for more details of UDF in dataflows.
User defined Functions in Mapping data flows in Azure Data Factory
But, defined if some in build future can tell us which activity failed that's great feature to have. Great call out actually. Thank you for this feedback. I forwarded this feedback to internal team. I would encourage you to have a feedback item created for this at below link. Internal team monitors feedback there and consider for furture releases.
Hope this helps. Please let me know if any further queries.
Please consider hitting Accept Answer
button. Accepted answers help community as well. Thank you.