简体   繁体   中英

How to read the Excel file through Azure data factory for limited columns data but number of rows are uncertain

Using Azure data factory, I am trying to read the excel file for the column A to F but number of rows are changing every time. Please help me to define the range dynamically.

Working case : If I give the column range as A1:F9999 it is reading the data specified range.

Not working case: If I give as A1: ( as suggested by microsoft doc) to read all the column and rows from excel, it is not working throwing a below error

"Invalid excel cell range 'A1:' with error 'Index was outside the bounds of the array.'. Index was outside the bounds of the array."

Please help me with any leads

Regards, Rajesh K

Thank You @Nandan for your suggestion- We have tested in our environment;

Give only A1 in range it scans a table beginning with the specified cell A1 , dynamically detecting all the rows below it and all the columns to the right of it.

If you want specific range of columns, you must have to mention that.

Output

在此处输入图像描述

Kindly refer below Microsoft document links for more understanding

Mapping data flow Debug Mode

Excel file format in Azure Data Factory

is your issue fixed? I am facing the same issue. After changing the range to A5, it can't find the first row as header.

ErrorCode=ExcelInvalidHeader,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Invalid excel header with empty value.,Source=Microsoft.DataTransfer.ClientLibrary,'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM