Range and Decimal Precision in Excel to CSV conversion in ADFv2

Priya Jha 866 Reputation points
2020-08-28T13:13:13.297+00:00

Hi All,

I was exploring Excel as a Source in ADFv2 by trying to convert an excel file into CSV by using copy activity. I faced the below challenges:

1) There is a provision to provide Range of Excel file. How can we provide dynamic range. My excel files can have range from A3:C10 or A3:C5 or A3:C15 as the number of rows can increase or decrease in an excel file. How to define Range in such scenario.

2) In a decimal column the actual data is 0.1234534678 whereas it gets displayed as 0.1234E-05. When converting this excel file into CSV i am obtaining the displayed value rather than the actual value.

I referred the discussion regarding this scenario and it was said that this scenario is resolved.
https://learn.microsoft.com/en-us/answers/questions/49637/excel-to-csv-conversion-in-adf-v2.html

But i am still facing the same issue. Am i missing some property?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,776 questions
0 comments No comments
{count} votes

Accepted answer
  1. HarithaMaddi-MSFT 10,136 Reputation points
    2020-08-31T10:58:14.31+00:00

    Hi @Priya Jha ,

    Welcome to Microsoft Q&A Platform. Thanks for posting the query.

    Please find below my observations

    1) There is a provision to provide Range of Excel file. How can we provide dynamic range. My excel files can have range from A3:C10 or A3:C5 or A3:C15 as the number of rows can increase or decrease in an excel file. How to define Range in such scenario.

    ADF excel connector dynamically reads them as per number of rows in file if range is not specified. Range is optional and not mandatory. Second GIF shows the same. And if starting range is alone specified, it dynamically detects all the rows below and all the columns to the right.

    2) In a decimal column the actual data is 0.1234534678 whereas it gets displayed as 0.1234E-05. When converting this excel file into CSV I am obtaining the displayed value rather than the actual value.

    I observed that marking the type of column as "Decimal" as below under "Mapping" tab resolved this issue. Below is snap of it. Please check and let me know if it works!

    21535-decimalvaluesadf.gif

    21518-copyactivityexceladf.gif

    Hope this helps! Please let us know for further questions and we will be glad to assist.


0 additional answers

Sort by: Most helpful