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
ShivaniTyagi01
Frequent Visitor

convert .cns file read from sharepoint folder to .csv in data flow gen2

Hi,

 

I am new to MS fabric. 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 ?

 

Thanks,

Shivani Tyagi

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ShivaniTyagi01 

 

I did a test. I tried Dataflow Gen2, and it is able to read data from a .cns file stored in a Sharepoint site. It treats the file as CSV file and uses Csv.Document function to deal with the file automatically. Below is my testing result. There is no need to convert it. 

vjingzhanmsft_0-1732516977372.png

Did you receive any error message when it failed to read the data? 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @ShivaniTyagi01 

 

I did a test. I tried Dataflow Gen2, and it is able to read data from a .cns file stored in a Sharepoint site. It treats the file as CSV file and uses Csv.Document function to deal with the file automatically. Below is my testing result. There is no need to convert it. 

vjingzhanmsft_0-1732516977372.png

Did you receive any error message when it failed to read the data? 

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Hi Jing,

Yeah I figured that out later! Thanks a lot 🙂

 

THanks,

Shivani Tyagi

Expiscornovus
Super User
Super User

Hi @ShivaniTyagi01,

 

It might be possible to use an Azure function activity with code in your data pipeline:

https://learn.microsoft.com/en-us/azure/data-factory/control-flow-azure-function-activity

 

Alternatively, you might also be able to use a Power Automate cloud flow for this.

 

Out of interest, would a rename of the file type on file explorer work? If that is the case you could use the same approach with a HTTP request:

https://pnp.github.io/blog/post/how-to-rename-files-in-sharepoint-with-power-automate/

 



Happy to help out 🙂

I share #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel

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.