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

Join us at FabCon Vienna from September 15-18, 2025, for the ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM. Get registered

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

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.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June FBC25 Carousel

Fabric Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.