I am working with Change Data Capture (CDC) feature in mapping Data Flows in ADF. The feature picks up all new, deleted, or amended rows in the source table as expected. Nevertheless, it provides no indication what exactly happened to returned row: whether it was deleted, is it a new one, or it was amended. To understand what happened to particular row, I am hoping to use the below 'if - then' logic:
- if the row returned by CDC no longer exist in the source dataset - it is a deleted row.
- if the row exists in the source dataset - it is a new or an updated row.
I am using 'look up' activity before executing the dataflow to gather all the Primary keys (PKs) in the table.
This activity returns the list of all PKs, and I am parsing them as an array to my df_parameter.
This parameter is also defined within the Data Flow as an array of integers (my PKs are integers).
Inside the Data Flow I am using "derived column" activity with following expression:
Unfortunately, this does not work and returns Data Flow activity error:
"Job failed due to reason: com.microsoft.dataflow.broker.InvalidParameterTypeException: Invalid type for parameter: df_parameter"
Any help would be very appreciated