I took 2 lookups to read 2 excel files and connected to 2 for each activities and inside i have taken 2 set variable and given @item.id
Now i have to eliminate the matching records and only unmatched records has to store in a new variable
I have tried if condition and given the expression if(equals(setvariable1,setvariable2),null,setvariable1)
But its not working
1st table
Name id
Ganesh 1
Vivek 2
Lah 3
2nd table
Name id
Ganesh 1
Vivek 2
Man 3
Required output
Man 3
Lah 3
2
Answers
not(hasError('assert1'))
andnot(hasError('assert2'))
respectively in both the branchesFrom second branch, remove all columns except ‘source2@Name’ and ‘source2@Id’
}
To Fetch the Missing records in azure data factory you need to use filter activity .
Follow the below steps:
Take 2 LookUps each of a on excel file as below:
After Each lookup Take Filter activity to get Missing record from that file.
with below expressions:
This will filter out the missing records.
@union(activity('Filter_for_table1').output.value,activity('Filter_for_table2').output.value)
This will result you expected output as below:
Output: