Verify if the CntrctCode
column is case-sensitive in the comparison. Azure Data Factory joins are case-sensitive by default, so "abc" and "ABC" will not match. Ensure the case matches in both Source1 and Source2. You can use a Derived Column
transformation to standardize the case (e.g., converting both columns to lowercase or uppercase).
Ensure there are no leading or trailing spaces in the CntrctCode
values. Use a Derived Column
transformation to trim
the values.
Verify also if the CntrctCode
columns in both Source1 and Source2 have the same data type. If one is a string and the other is an integer, or if one has a different character encoding, the join might fail. Use a Derived Column
transformation to cast the column to the same type if necessary.
Since Source1 is a view, confirm the view logic is accurate and returns the expected data. Manually query Source1 and ensure the 196 rows match the expected values for the join condition.
In Data Preview, increase the data sampling size to ensure that all rows are included during debugging. For large datasets, ADF might only process a subset of rows during the preview
What I suggest :
- Add a
Derived Column
transformation to:-
trim
andlowercase
bothCntrctCode
columns.
-
- Explicitly cast the
CntrctCode
columns to the same data type using aDerived Column
. - Test the join using a subset of the data to confirm if specific rows fail.
- Increase debug limits and run the Data Flow again.