I have created a Pipeline in azure and Importing data from csv to sql table .
While transforming data getting exception when there is null/empty value in csv . I tried to put validation in Null value textbox in Connection , but it is not working . Can anyone help on this
To handle null
values in Azure data factory Create derived column and use iifNull({ColumnName}, 'Unknown')
expression
Detailed steps are given below
Step1: Create dataflow as shown below
Step2: Insert CSV file in Source1 with null values
Step3: Now Create derived column and use iifNull({ColumnName}, 'Unknown')
expression.
Here, I have replaced null
with ‘Unknown’
as a placeholder
Derived column output
Step4: Now use SQL database as sink dataset
Output: