Azure, how to process only the first row of Excel file?
Chuck Roberts
130
Reputation points
- I use MS Azure Data Factory online in the portal. I have some type of premium license.
- All blob storage is the newer Gen2.
- One of the fields in row 1 is named "TrackNum" via a Derived Column step, and in row 1 has the contents "Shipment Tracking Num". But I can't depend on that value being the same case for each spreadsheet we get so I need to select just row number 1 (the first row).
I have an Excel spreadsheet that I would like to check the headers in but only process row 1. So I added a Filter action and in the box "Filter on" I entered rowNumber() == 1
and get an error. The error is "Unknown function name".
So how do I use only row 1?
My big picture is my program will have many data flows, this data flow only checks the column header names in row 1. If any data flow gets an error the whole thing stops. All data flows will be controlled by a pipeline.
p.s. So glad these posts use Markdown!
EDIT.
- rowNumber() is not available in a FILTER transformation or DERIVED COLUMN transformation.
- rowNumber() is only available in a WINDOW transformation.
Sign in to answer