<?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: convert .cns file read from sharepoint to .csv in dataflow gen2 in Data Engineering</title>
    <link>https://community.fabric.microsoft.com/t5/Data-Engineering/convert-cns-file-read-from-sharepoint-to-csv-in-dataflow-gen2/m-p/4297537#M5321</link>
    <description>&lt;P&gt;Unfortunately, based on my understanding, Fabric Dataflow Gen 2 doesnt support this file extension to be read directly (so it wont be possible to convert it) via dataflow Gen 2.&lt;/P&gt;
&lt;P&gt;You would have to do some custom coding for that conversion which you can achive via Fabric notebooks&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2024 14:52:53 GMT</pubDate>
    <dc:creator>NandanHegde</dc:creator>
    <dc:date>2024-11-22T14:52:53Z</dc:date>
    <item>
      <title>convert .cns file read from sharepoint to .csv in dataflow gen2</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/convert-cns-file-read-from-sharepoint-to-csv-in-dataflow-gen2/m-p/4297486#M5320</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to MS fabric.&lt;/P&gt;&lt;P&gt;I have a requirement where I have got the data from my sharepoint folder and the files are in .cns format which is actually .csv format if you open the file. But the query is not reading the file . How should I convert the file from .cns to .csv in dataflow gen2 ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shivani Tyagi&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 14:29:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/convert-cns-file-read-from-sharepoint-to-csv-in-dataflow-gen2/m-p/4297486#M5320</guid>
      <dc:creator>ShivaniTyagi01</dc:creator>
      <dc:date>2024-11-22T14:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: convert .cns file read from sharepoint to .csv in dataflow gen2</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/convert-cns-file-read-from-sharepoint-to-csv-in-dataflow-gen2/m-p/4297537#M5321</link>
      <description>&lt;P&gt;Unfortunately, based on my understanding, Fabric Dataflow Gen 2 doesnt support this file extension to be read directly (so it wont be possible to convert it) via dataflow Gen 2.&lt;/P&gt;
&lt;P&gt;You would have to do some custom coding for that conversion which you can achive via Fabric notebooks&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2024 14:52:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/convert-cns-file-read-from-sharepoint-to-csv-in-dataflow-gen2/m-p/4297537#M5321</guid>
      <dc:creator>NandanHegde</dc:creator>
      <dc:date>2024-11-22T14:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: convert .cns file read from sharepoint to .csv in dataflow gen2</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/convert-cns-file-read-from-sharepoint-to-csv-in-dataflow-gen2/m-p/4297960#M5323</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Great question! Here how i think you can resolve the issue with .cns files in &lt;STRONG&gt;Microsoft Fabric Dataflow Gen2&lt;/STRONG&gt;. Since .cns files are essentially .csv files, we need to ensure Dataflow Gen2 can recognize and process them correctly. There are two options you can choose from based on your preference. let me know if this works and update which one you had considered &amp;amp; working and finanlly mark as resolved if you are fine with provided solution.&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;&lt;STRONG&gt;Option 1: Rename .cns Files to .csv in SharePoint&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;If renaming the files is feasible, this option will allow Dataflow Gen2 to natively recognize them as CSV files.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Automate Renaming with Power Automate&lt;/STRONG&gt;:&lt;UL&gt;&lt;LI&gt;Set up a &lt;STRONG&gt;Power Automate flow&lt;/STRONG&gt; to monitor the SharePoint folder for .cns files.&lt;/LI&gt;&lt;LI&gt;Automatically rename the files by replacing the .cns extension with .csv.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Load .csv Files in Dataflow Gen2&lt;/STRONG&gt;:&lt;UL&gt;&lt;LI&gt;Once the files are renamed, connect your &lt;STRONG&gt;Dataflow Gen2&lt;/STRONG&gt; to the SharePoint folder.&lt;/LI&gt;&lt;LI&gt;Process the renamed .csv files without any additional steps.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This option is straightforward if you have many .cns files and renaming them upfront is not an issue.&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;&lt;STRONG&gt;Option 2: Process .cns Files Directly in Dataflow Gen2&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;If renaming is not an option, you can configure Dataflow Gen2 to recognize and process .cns files as CSV files.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Connect to the SharePoint Folder&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use the &lt;STRONG&gt;SharePoint Folder Connector&lt;/STRONG&gt; in Dataflow Gen2 to load the .cns files.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Filter for .cns Files&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the Power Query editor, filter files with the .cns extension:&lt;DIV class=""&gt;&lt;DIV class=""&gt;powerquery&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Copy code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Table.SelectRows(Source, each Text.EndsWith([Name], ".cns"))&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Parse .cns Files as CSV&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a transformation step to parse the .cns file content as CSV:&lt;DIV class=""&gt;&lt;DIV class=""&gt;powerquery&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Copy code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Csv.Document(File.Contents([Folder Path] &amp;amp; [Name]), [Delimiter=","])&lt;/DIV&gt;&lt;/DIV&gt;Replace "," with the appropriate delimiter if your .cns files use a different one (e.g., tab).&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This option allows you to process .cns files directly without needing to rename them.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2024 01:43:07 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/convert-cns-file-read-from-sharepoint-to-csv-in-dataflow-gen2/m-p/4297960#M5323</guid>
      <dc:creator>prasbharat</dc:creator>
      <dc:date>2024-11-23T01:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: convert .cns file read from sharepoint to .csv in dataflow gen2</title>
      <link>https://community.fabric.microsoft.com/t5/Data-Engineering/convert-cns-file-read-from-sharepoint-to-csv-in-dataflow-gen2/m-p/4297964#M5324</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Great question! Here how i think you can resolve the issue with .cns files in &lt;STRONG&gt;Microsoft Fabric Dataflow Gen2&lt;/STRONG&gt;. Since .cns files are essentially .csv files, we need to ensure Dataflow Gen2 can recognize and process them correctly. There are two options you can choose from based on your preference. let me know if this works and update which one you had considered &amp;amp; working and finanlly mark as resolved if you are fine with provided solution.&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;&lt;STRONG&gt;Option 1: Rename .cns Files to .csv in SharePoint&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;If renaming the files is feasible, this option will allow Dataflow Gen2 to natively recognize them as CSV files.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Automate Renaming with Power Automate&lt;/STRONG&gt;:&lt;UL&gt;&lt;LI&gt;Set up a &lt;STRONG&gt;Power Automate flow&lt;/STRONG&gt; to monitor the SharePoint folder for .cns files.&lt;/LI&gt;&lt;LI&gt;Automatically rename the files by replacing the .cns extension with .csv.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Load .csv Files in Dataflow Gen2&lt;/STRONG&gt;:&lt;UL&gt;&lt;LI&gt;Once the files are renamed, connect your &lt;STRONG&gt;Dataflow Gen2&lt;/STRONG&gt; to the SharePoint folder.&lt;/LI&gt;&lt;LI&gt;Process the renamed .csv files without any additional steps.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This option is straightforward if you have many .cns files and renaming them upfront is not an issue.&lt;/P&gt;&lt;HR /&gt;&lt;H3&gt;&lt;STRONG&gt;Option 2: Process .cns Files Directly in Dataflow Gen2&lt;/STRONG&gt;&lt;/H3&gt;&lt;P&gt;If renaming is not an option, you can configure Dataflow Gen2 to recognize and process .cns files as CSV files.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Connect to the SharePoint Folder&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Use the &lt;STRONG&gt;SharePoint Folder Connector&lt;/STRONG&gt; in Dataflow Gen2 to load the .cns files.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Filter for .cns Files&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In the Power Query editor, filter files with the .cns extension:&lt;DIV class=""&gt;&lt;DIV class=""&gt;powerquery&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Copy code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Table.SelectRows(Source, each Text.EndsWith([Name], ".cns"))&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;&lt;STRONG&gt;Parse .cns Files as CSV&lt;/STRONG&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Add a transformation step to parse the .cns file content as CSV:&lt;DIV class=""&gt;&lt;DIV class=""&gt;powerquery&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;Copy code&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;Csv.Document(File.Contents([Folder Path] &amp;amp; [Name]), [Delimiter=","])&lt;/DIV&gt;&lt;/DIV&gt;Replace "," with the appropriate delimiter if your .cns files use a different one (e.g., tab).&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This option allows you to process .cns files directly without needing to rename them.&lt;/P&gt;</description>
      <pubDate>Sat, 23 Nov 2024 01:46:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Data-Engineering/convert-cns-file-read-from-sharepoint-to-csv-in-dataflow-gen2/m-p/4297964#M5324</guid>
      <dc:creator>prasbharat</dc:creator>
      <dc:date>2024-11-23T01:46:06Z</dc:date>
    </item>
  </channel>
</rss>

