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.
Hi I have a simple csv that is stored in one drive that I want to use dataflow (power query) to add to a table I have in the CDS. When i get to the last step i get an error:
section Section1;
shared Query = let
Source = Csv.Document(Web.Contents("https://company-my.sharepoint.com/personal//Documents/Documents/User Skills/document.csv"), [Delimiter = ",", Columns = 10, Encoding = 65001, QuoteStyle = QuoteStyle.None]),
#"Promoted headers" = Table.PromoteHeaders(Source, [PromoteAllScalars = true])
in
#"Promoted headers";
Any help will be appreciated.
Solved! Go to Solution.
Because a CSV stored on your hard drive would have this source line:
Source = Csv.Document(File.Contents("C:\Users\path\Book2.csv"),[Delimiter=",", Columns=3, Encoding=65001, QuoteStyle=QuoteStyle.None])
You have Web.Contents, so it looks like you are opening the file from a onedrive path in a web page, and web pages require a gateway.
If it is onedrive for Business, use the SharePoint connector. Go to OneDrive in your browser in your Office 365 (business) tenant and grab the URL. It will look like this:
https://TenentName-my.sharepoint.com/personal/user_name_tenentname_com/
Put that in a SharePoint Folder connector and get your file.
That will not work with OneDrive personal, only business accounts.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingBecause a CSV stored on your hard drive would have this source line:
Source = Csv.Document(File.Contents("C:\Users\path\Book2.csv"),[Delimiter=",", Columns=3, Encoding=65001, QuoteStyle=QuoteStyle.None])
You have Web.Contents, so it looks like you are opening the file from a onedrive path in a web page, and web pages require a gateway.
If it is onedrive for Business, use the SharePoint connector. Go to OneDrive in your browser in your Office 365 (business) tenant and grab the URL. It will look like this:
https://TenentName-my.sharepoint.com/personal/user_name_tenentname_com/
Put that in a SharePoint Folder connector and get your file.
That will not work with OneDrive personal, only business accounts.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingDo you have a gateway setup? You cannot access web connections via a normal cloud connection. Has to go through an on-prem gateway so admins can control what data goes in the reports.
DAX is for Analysis. Power Query is for Data Modeling
Proud to be a Super User!
MCSA: BI ReportingHi I do not have a gateay, the csv file is stored in one drive so why would I need a gateway?
Does it work as a query in Power BI Desktop?
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.