Dear Nimish,
The issue you’re facing is likely due to inconsistent sorting in distributed processing.
Add a Sort Transformation, explicitly sort your data by the primary key before using last($$
in the Aggregate Transformation. Use Single Partitioning, in the Optimize Tab, set partitioning to Single Partition to ensure consistent results.
just in case - Azure Data Factory documentation.
Best regards,
Alex
p.s. If you found the answer helpful, please click on Upvote and Accept Answer. This will help other community members.