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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How can I get data from a sharepoint csv file?

I have a csv file on sharepoint that I am trying to retrieve. Currently, what i did was get data > csv and navigated to the csv file on my onedrive. This works, however, when I later upload this to power bi service to a workspace owned by someone else, they are unable to schedule refresh as they can't find the csv file (since I specified a local path to the csv on my onedrive). I thought a solution would be to give a sharepoint link using get data > webbut it gives the error "object reference not set to instant". How can i fix this or is there a better way to achieve this?

5 REPLIES 5
v-zhangti
Community Support
Community Support

Hi, @Anonymous 

 

Please refer to the following link, hope it can help you.

https://docs.microsoft.com/power-bi/connect-data/service-comma-separated-value-files 

https://docs.microsoft.com/power-bi/connect-data/refresh-csv-file-onedrive 

https://community.powerbi.com/t5/Service/CSV-file-from-SharePoint-refresh-credentials-issue/m-p/1576772 

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

AlexanderPrime
Solution Supplier
Solution Supplier

You need to go via the "Sharepoint Folder" connector and navigate to the file in Transform Data. 

https://powerbi.tips/2016/09/loading-excel-files-from-sharepoint/

While this guide mentions excel files. CSV applies to this as well. 


Please note - I am not affiliated with Microsoft, I'm just an end user like yourself.
Just a regular guy doin' Data Science.

If my post has helped you, please don't forget to thumbs up or click "Accept as solution" if it solved your problem!

Hello, sorry i tried but we cannot see the CVS file only xls,, any other help 

sorry yes it work I had to load more data 

 

Anonymous
Not applicable

@AlexanderPrime 

Tried it but doesn't seem to work. I used = SharePoint.Files("https://companyone-my.sharepoint.com/personal/User_company_com/", [ApiVersion = ... in get data but it automatically navigates to the folder https://companyone-my.sharepoint.com/personal/User_company_com/Documents/Documents/Reblend/ 

 

I have another folder called Reblend_v2 inside Documents but this is not displayed for some reason. Any idea why?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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