Conditional sink in Azure data factory

Alexandre Munday 1 Reputation point
2020-10-08T14:54:56.363+00:00

Hello,

I have a mapping data flow that is checking for invalid data, with conditional split, in my file. (example row in column one < than in column two.)

I the case I don't have any invalid data I would like to copy the file in new folder. if I have at least one error in my file I want to copy the file in an error folder.

The problem is that the validation is on the row level and I can't use a lookup.

Thank you for your help

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,755 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. HarithaMaddi-MSFT 10,136 Reputation points
    2020-10-09T12:24:30.063+00:00

    Hi @Alexandre Munday ,

    Welcome to Microsoft Q&A Platform. Thanks for posting the query.

    Possible approach I can think of is by using the additional file for invalid data and later the size can be evaluated to check if there any invalid records are not and assign the folder name accordingly. The invalid data can be retrieved by using filter activity in dataflow. Below GIF and attached JSON shows the details of the approach used. Please check and let us know if this helps.

    31263-dynamicfolderadf.gif
    31281-dynamicfolderjson.txt

    Kindly let us know if it does not align with the requirement or for further queries and we will be glad to assist.

    2 people found this answer helpful.