Hi Bhajanthri Bala Sujay,
Thanks for reaching out to Microsoft Q&A.
Try using mapping data flow in ADF. As your XML data doesn't follow a well-organized schema, try with the following steps:
- Source Transformation:
- Point the dataset to your XML file and preview the data.
- Note that each cell value is coming as an item of an array.
- Flatten Transformation:
- Convert the items of the array into individual rows.
- This helps to organize the data for further processing.
- Pivot Transformation:
- Convert column values into column names.
- Group by the "row number" column.
- Use the "id" as the pivot key.
- In the pivoted columns, use "max(value)" as the expression.
- Sink Transformation:
- Point the dataset to a CSV file.
- Run the dataflow activity in ADF.
Note that this approach leverages mapping dataflows rather than the traditional copy activity in ADF.
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.