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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DebbieE
Community Champion
Community Champion

Dataflow Accessing a Sharepoint Folder with an xlsx

I am creating a dataflow and I have a sharepoint folder with an xlsx in it (We made a Teams area)

 

I have copied the Sharepoint Link

 

https://testsite.sharepoint.com/sites/ExampleTeamsFoldername/Shared%20Documents/General

 

And I have attempted to use it in the data flow.

 

SharepointFolderNoGateway.png

I have asked our admin about this and "it reads as though data sources in SharePoint Online locations don’t need to be added to the enterprise gateway…?" So we initially thought it didnt need a Gateway.

 

Attempting to go with this gets the following error

ErrorNoGateway.JPG

Sharepoint Request Failed. The remote Server returned an error (400) Bad request

 

So then I tried to use the Gateway

 

ErrorWithGateway.png

I dont think this is a data source on the Gateway. So before continuing, should this be a data source on the Gateway or and I doing this incorrectly?

 

Thanks in advance

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @DebbieE,

I'd like to suggest you use an excel connector with an excel URL to get data on dataflow.

https://testsite.sharepoint.com/sites/ExampleTeamsFoldername/Shared%20Documents/General/test.xlsx

Reference link:

Use OneDrive for Business links in Power BI Desktop 
Regards,

Xiaoxin Sheng

View solution in original post

I also got around it by doing it in Desktop.

 

Then in Service creating a blank query and pasting the M Code into this query. Then it worked

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

You shouldn't need to use a gateway if you're using SharePoint online... If your company is using SharePoint server on-prem, then it will need to go through the gateway. 
I have several dataflows connecting to sharepoint lists and folders, and have received the error a couple of times, I usually just need to edit the credentials and make sure that I'm signed in.

 

Hope that helps!

Kim

 my credentials are fine. 

 

When I log in Via Desktop with the Sharepoint Folder I get no issues.

 

When I do the same thing in Service I get the error

 

badRequest.JPG

Anonymous
Not applicable

Hi @DebbieE,

I'd like to suggest you use an excel connector with an excel URL to get data on dataflow.

https://testsite.sharepoint.com/sites/ExampleTeamsFoldername/Shared%20Documents/General/test.xlsx

Reference link:

Use OneDrive for Business links in Power BI Desktop 
Regards,

Xiaoxin Sheng

I also got around it by doing it in Desktop.

 

Then in Service creating a blank query and pasting the M Code into this query. Then it worked

Hello Debbie E, 

I think i'm having the same issue of remote server returning an error. 
I was already pasting the advanced editor in my dataflow advanced editor and over there it works i can see and transform the data in the Query of the dataFlow, then when i close de dataflow and set the refresh, the refresh last something like 40min and fail for this message: remote server returning error 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.