Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Torin78
New Member

Importing CSV File

Hi, i am trying to import a csv file such:

345,Fernandez,"{id:4r34,add:calle,ape:feraa}"

 

I´ve imported the file with SQL Server Management Studio and it Worked perfect, putting this {id:4r34,add:calle,ape:feraa} in a field.

The quotation Charecter is " and field Separatos is ,

Furthermore in ADF does not work fine, it split in this {id:4r34 in a field, this in another field add:calle and so on...

Do you know how can i import properly this file with ADF?

Thank you

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Yes i think that i am doing properly.

Torin78D_1-1720435673268.png

Importing with Management Studio it works fine.

Torin78D_2-1720435708990.png

 

 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Torin78 ,

i think you can use a Derived Column transformation to create a new column that parses the JSON string.You can use the parse function to convert the JSON string into a structured format.

 

If your JSON strings are nested, use the Flatten transformation to break down the JSON into individual columns.

 

Add a Sink transformation to write the transformed data to your desired destination. You can also use this JSON code and have a look at this topic: azure data factory - ADF Copy activity to handle csv files with json fields - Stack Overflow

{
  "type": "DerivedColumn",
  "name": "ParseJSON",
  "derivedColumns": [
    {
      "name": "ParsedJSON",
      "expression": "parse({YourJSONColumn})"
    }
  ]
}

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Yilingo Zhou i dont want to parse the json i want to store the whole json in a filed, but the pipeline break the field when it find a ",".

Anonymous
Not applicable

Hi @Torin78 ,

Here are some steps you can follow:

1. Define the Source Dataset:
In ADF, create a dataset for your CSV file.
Ensure that the Column Delimiter is set to , and the Quote Character is set to ".
2. Use Data Flow:
Create a Data Flow in ADF.
Add a Source transformation and connect it to your CSV dataset.
In the Source settings, ensure that the Quote Character is set to ".

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Yes i think that i am doing properly.

Torin78D_1-1720435673268.png

Importing with Management Studio it works fine.

Torin78D_2-1720435708990.png

 

 

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Fabric Update Carousel

Fabric Monthly Update - September 2025

Check out the September 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.