<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Importing CSV File in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Importing-CSV-File/m-p/4029276#M4444</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="771689" data-lia-user-login="Torin78" class="lia-mention lia-mention-user"&gt;Torin78&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;i think you can use a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Derived Column&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;transformation to create a new column that parses the JSON string.You can use the&lt;SPAN&gt;&amp;nbsp;parse&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function to convert the JSON string into a structured format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your JSON strings are nested, use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Flatten&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;transformation to break down the JSON into individual columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Sink&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;transformation to write the transformed data to your desired destination. You can also use this JSON code and have a look at this topic:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/77628993/adf-copy-activity-to-handle-csv-files-with-json-fields" target="_blank"&gt;azure data factory - ADF Copy activity to handle csv files with json fields - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "type": "DerivedColumn",
  "name": "ParseJSON",
  "derivedColumns": [
    {
      "name": "ParsedJSON",
      "expression": "parse({YourJSONColumn})"
    }
  ]
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jul 2024 04:13:29 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-07-08T04:13:29Z</dc:date>
    <item>
      <title>Importing CSV File</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Importing-CSV-File/m-p/4028710#M4436</link>
      <description>&lt;P&gt;Hi, i am trying to import a csv file such:&lt;/P&gt;&lt;P&gt;345,Fernandez,"{id:4r34,add:calle,ape:feraa}"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;The quotation Charecter is " and field Separatos is ,&lt;/P&gt;&lt;P&gt;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...&lt;/P&gt;&lt;P&gt;Do you know how can i import properly this file with ADF?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jul 2024 13:32:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Importing-CSV-File/m-p/4028710#M4436</guid>
      <dc:creator>Torin78</dc:creator>
      <dc:date>2024-07-07T13:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV File</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Importing-CSV-File/m-p/4029276#M4444</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="771689" data-lia-user-login="Torin78" class="lia-mention lia-mention-user"&gt;Torin78&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;i think you can use a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Derived Column&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;transformation to create a new column that parses the JSON string.You can use the&lt;SPAN&gt;&amp;nbsp;parse&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function to convert the JSON string into a structured format.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your JSON strings are nested, use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Flatten&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;transformation to break down the JSON into individual columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add a&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Sink&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;transformation to write the transformed data to your desired destination. You can also use this JSON code and have a look at this topic:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/77628993/adf-copy-activity-to-handle-csv-files-with-json-fields" target="_blank"&gt;azure data factory - ADF Copy activity to handle csv files with json fields - Stack Overflow&lt;/A&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
  "type": "DerivedColumn",
  "name": "ParseJSON",
  "derivedColumns": [
    {
      "name": "ParsedJSON",
      "expression": "parse({YourJSONColumn})"
    }
  ]
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 04:13:29 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Importing-CSV-File/m-p/4029276#M4444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T04:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV File</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Importing-CSV-File/m-p/4029401#M4446</link>
      <description>&lt;P&gt;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 ",".&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 06:07:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Importing-CSV-File/m-p/4029401#M4446</guid>
      <dc:creator>Torin78</dc:creator>
      <dc:date>2024-07-08T06:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV File</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Importing-CSV-File/m-p/4029771#M4454</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="771689" data-lia-user-login="Torin78" class="lia-mention lia-mention-user"&gt;Torin78&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Here are some steps you can follow:&lt;/P&gt;
&lt;P&gt;1. Define the Source Dataset:&lt;BR /&gt;In ADF, create a dataset for your CSV file.&lt;BR /&gt;Ensure that the Column Delimiter is set to , and the Quote Character is set to ".&lt;BR /&gt;2. Use Data Flow:&lt;BR /&gt;Create a Data Flow in ADF.&lt;BR /&gt;Add a Source transformation and connect it to your CSV dataset.&lt;BR /&gt;In the Source settings, ensure that the Quote Character is set to ".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 08:52:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Importing-CSV-File/m-p/4029771#M4454</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T08:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Importing CSV File</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Importing-CSV-File/m-p/4030002#M4457</link>
      <description>&lt;P&gt;Yes i think that i am doing properly.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;Importing with Management Studio it works fine.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 10:48:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Importing-CSV-File/m-p/4030002#M4457</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-08T10:48:34Z</dc:date>
    </item>
  </channel>
</rss>

