Because you are using schema drift with dynamic schemas, you'll need to use a rule-based mapping. Deselect "auto mapping" in the sink and create a new rule-based mapping. The rule will be name != 'JoinFieldTarget' and the output columns will be just '$$' for all other fields.
data flow - Remove unwanted column
Hi,
in sink delta parquet file, I would like to remove the unwanted column i.e.JoinFieldTarget
This field is there because I added a derivedColumn transformation and called the field JoinFieldTarget, however the sink delta file does not have this field and so I get an error in sink transformation. I believe if I can remove this column then error will be fixed.
The columns are auto mapping as the data flow is dynamic and should work for any table from source.
Azure Data Factory
-
MarkKromer-MSFT 5,231 Reputation points Microsoft Employee Moderator2021-10-11T18:10:16.84+00:00
3 additional answers
Sort by: Most helpful
-
Srikanth Gandam (z) 6 Reputation points
2021-12-04T04:25:43.83+00:00 I have followed the above steps which you have mentioned ,still I am facing the same issue.
I derived a column name which matches the column 'Equity_Market_Value_5Months_Prior' ,later I need to remove the column 'Equity_Market_Value_5Months_Prior' .
Error Screenshot
Appreciate you for taking time to look into this.Thanks
Waiting for you answer -
Mark Kromer MSFT 1,146 Reputation points
2021-12-04T04:51:40.043+00:00 Does it work if you remove all of the fixed mappings and only add just that rule, the last row in your mapping above?
-
Srikanth Gandam (z) 6 Reputation points
2021-12-04T05:44:49.9+00:00 Awesome !! It is working absolutely fine .
Much Thanks Mark !!
Really Appreciate.