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

Sharepoint source Datasource error

Hello, 

 

We are trying to change our folders from local folders to a sharepoint folder. 

When I change the source of the files in Power Query, I get the following error.

 

DataSource.Error: Microsoft.Mashup.Engine1.Library.Resources.HttpResource: Request failed:

OData Version: 3 and 4, Error: The remote server returned an error: (404) Not Found. (Not Found)

OData Version: 4, Error: The remote server returned an error: (404) Not Found. (Not Found)

OData Version: 3, Error: The remote server returned an error: (404) Not Found. (Not Found)

Details:

    DataSourceKind=SharePoint

    DataSourcePath=https://example.sharepoint.com/sites/Folder/Shared/Documents/Orders/UAE

    SPRequestGuid=f138f39f-0046-3000-3825-3697055d98f3, f138f39f-104f-3000-0798-886091df15e6, f138f39f-3054-3000-0798-862ce5dab40c

 

I used this query: 

SharePoint.Files(https://example.sharepoint.com/sites/Folder/Shared/Documents/Orders/UAE, [ApiVersion = 15]) in place of the previous File.Contents one.

 

I have tried using Web.Content, but it would authenticate at all despite entering the correct credentials.

 

Any idea how to solve this? 

1 ACCEPTED SOLUTION
v-kelly-msft
Community Support
Community Support

Hi @Kareem_Amr_IT ,

 

It should be an authetication error,I tested here,and no errors:

vkellymsft_0-1632905702846.png

Go to data source settings and edit the credentials:

vkellymsft_2-1632905933340.png

 

Best Regards,
Kelly

Did I answer your question? Mark my reply as a solution!

 

View solution in original post

2 REPLIES 2
v-kelly-msft
Community Support
Community Support

Hi @Kareem_Amr_IT ,

 

It should be an authetication error,I tested here,and no errors:

vkellymsft_0-1632905702846.png

Go to data source settings and edit the credentials:

vkellymsft_2-1632905933340.png

 

Best Regards,
Kelly

Did I answer your question? Mark my reply as a solution!

 

mahoneypat
Microsoft Employee
Microsoft Employee

With the SharePoint connector, you need to use the site url, not the full url to the folder.

 

= SharePoint.Files("https://example.sharepoint.com/sites/Folder", [ApiVersion = 15])

 

From there, you can filter on the FolderPath column to get to your desired folder.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


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.