<?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: Dataflow Gen2 Copy data csv to snowflake in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Dataflow-Gen2-Copy-data-csv-to-snowflake/m-p/4281085#M5149</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/844994"&gt;@shivaazure&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message says that bad data was found when parsing line 82 of the CSV file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some suggestions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Open the CSV file and check the data format of line 82 to make sure that line 82 contains all expected columns and there are no extra delimiters or special characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Set the BadDataFound option in the Advance editor of Dataflow Gen2. The code is as follows:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
Source = Csv.Document(File.Contents("path/to/your/file.csv"), [Delimiter=",", Columns=140, Encoding=65001, QuoteStyle=QuoteStyle.Csv, BadDataFound = null]),
PromotedHeaders = Table.PromoteHeaders(Source, [PromoteAllScalars=true])
in
PromotedHeaders&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2024 06:26:48 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-13T06:26:48Z</dc:date>
    <item>
      <title>Dataflow Gen2 Copy data csv to snowflake</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Dataflow-Gen2-Copy-data-csv-to-snowflake/m-p/4280646#M5143</link>
      <description>&lt;P&gt;I have a dataframe loading data into CSV ( few columns contain JSON structure data),&lt;/P&gt;&lt;P&gt;Now trying to load the CSV to Snowflake tables using Copy data activity in Fabric dataflow activity.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting error while loading data into SNowflake for the columns which contain nested JSON data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;ErrorCode=DelimitedTextBadDataDetected,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Bad data is found at line 82 in source R1.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=CsvHelper.BadDataException,Message=You can ignore bad data by setting BadDataFound to null.&lt;BR /&gt;IReader state:&lt;BR /&gt;ColumnCount: 140&lt;BR /&gt;CurrentIndex: 8&lt;BR /&gt;HeaderRecord:&lt;BR /&gt;["Id","Request Id","Start Time","End Time","Refresh Type","Service Exception Json","Status","Extended Status","Refresh Attempts","Semantic Id","Semantic M Name"]&lt;BR /&gt;IParser state:&lt;BR /&gt;ByteCount: 0&lt;BR /&gt;CharCount: 41610&lt;BR /&gt;Row: 82&lt;BR /&gt;RawRow: 82&lt;BR /&gt;Count: 140&lt;BR /&gt;RawRecord:&lt;BR /&gt;Hidden because ExceptionMessagesContainRawData is false.&lt;BR /&gt;,Source=CsvHelper,'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Doubt is why does the copy activity considering a string data into JSON format and parsing it. can it be copy as string in snowflake table.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 22:42:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Dataflow-Gen2-Copy-data-csv-to-snowflake/m-p/4280646#M5143</guid>
      <dc:creator>shivaazure</dc:creator>
      <dc:date>2024-11-12T22:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow Gen2 Copy data csv to snowflake</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Dataflow-Gen2-Copy-data-csv-to-snowflake/m-p/4281085#M5149</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/844994"&gt;@shivaazure&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message says that bad data was found when parsing line 82 of the CSV file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have some suggestions:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Open the CSV file and check the data format of line 82 to make sure that line 82 contains all expected columns and there are no extra delimiters or special characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Set the BadDataFound option in the Advance editor of Dataflow Gen2. The code is as follows:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;let
Source = Csv.Document(File.Contents("path/to/your/file.csv"), [Delimiter=",", Columns=140, Encoding=65001, QuoteStyle=QuoteStyle.Csv, BadDataFound = null]),
PromotedHeaders = Table.PromoteHeaders(Source, [PromoteAllScalars=true])
in
PromotedHeaders&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any other questions please feel free to contact me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 06:26:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Dataflow-Gen2-Copy-data-csv-to-snowflake/m-p/4281085#M5149</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-13T06:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow Gen2 Copy data csv to snowflake</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Dataflow-Gen2-Copy-data-csv-to-snowflake/m-p/4290302#M5247</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/844994"&gt;@shivaazure&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is my follow-up just to ask if the problem has been solved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, can you accept the correct answer as a solution or share your solution to help other members find it faster?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your cooperation!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 06:14:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Dataflow-Gen2-Copy-data-csv-to-snowflake/m-p/4290302#M5247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-19T06:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dataflow Gen2 Copy data csv to snowflake</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/Dataflow-Gen2-Copy-data-csv-to-snowflake/m-p/4305831#M5398</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/844994"&gt;@shivaazure&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is my follow-up just to ask if the problem has been solved?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If so, can you accept the correct answer as a solution or share your solution to help other members find it faster?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your cooperation!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yang&lt;BR /&gt;Community Support Team&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If there is any post&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;helps&lt;/EM&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;to help the other members find it more quickly.&lt;BR /&gt;If I misunderstand your needs or you still have problems on it, please feel free to let us know.&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Thanks a lot!&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2024 09:02:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/Dataflow-Gen2-Copy-data-csv-to-snowflake/m-p/4305831#M5398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-28T09:02:26Z</dc:date>
    </item>
  </channel>
</rss>

