ADF - flatten activity

Shraddha Choudhary 0 Reputation points
2025-01-23T10:41:18.9933333+00:00

Hi team,

I am facing the issue while reading the xml using ADF copy activity.

string value “6E12” is getting converted into 6000000000000 while reading the XML file with flatten hierarchy.

Please help in resolving the issue.

thanks,

shraddha

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

1 answer

Sort by: Most helpful
  1. Amira Bedhiafi 28,066 Reputation points
    2025-01-23T12:01:54.1933333+00:00

    You need to check the schema definition in the Copy Data activity or the Data Flow that reads the XML file and try to set the data type of that field to string to prevent it from being interpreted as a numeric value.

    Or you can add a derived column or use a transformation in your Data Flow to explicitly convert the value back to its string representation using an expression like:

    toString(<column_name>)
    
    

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.