Hi @lbegatr ,
Thanks for posting the question. The target id can be captured in source after the load by using lookup transformation in dataflow. However, Mapping data flow in ADF currently do not have in-built mechanism to capture error messages dynamically for every row that is copied from source to sink.Custom activity can be used for the same in pipeline if requirement does not need major transformations when copying the data. I checked with Product team and they are working on bringing this feature in mapping data flow, please upvote the idea.
All of the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.
Hope this helps. Do let us know if you any further queries.