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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
M0hamedFazil
Helper I
Helper I

OneDrive Folder as source

Hi community,

I want to connect my onedrive folder and use all the files inide the folder as source. As many blogs and solutions from community recommends connecting onedrive via "Web" connector, I pasted my folder path to the URL and it shows error like

 

M0hamedFazil_0-1732013732172.png


But when I connect the files directly, I can access the file using "Web" connector. But not the folder.

As I searched further, I can see many recommending using Sharepoint folder for connecting onedrive folder. I tried connecting the folder URL and gor the following error

M0hamedFazil_1-1732013932078.png

Details: "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)"

 

The solution connecting the onedrive to local and use folder connector will not feasiable for me. 
I struck here and help is required. Thanks in Advance!

Regards
Fazil M

1 ACCEPTED SOLUTION

Hi @M0hamedFazil ,

You can copy the path of the folder in Onedrive and remove its suffix to your account:

vjunyantmsft_1-1732153949343.png

vjunyantmsft_2-1732153983629.png

Delete from:

 

https://m365x96158828-my.sharepoint.com/personal/taojunyan_m365x96158828_onmicrosoft_com/Documents/excel%20folder

 

to:

 

https://m365x96158828-my.sharepoint.com/personal/taojunyan_m365x96158828_onmicrosoft_com/

 

Use sharepoint folder connector:

vjunyantmsft_3-1732154058659.png

vjunyantmsft_4-1732154069001.png

 

 After authentication, you can access all the files in your Onedrive:

vjunyantmsft_5-1732154110984.png

Click Transform Data and then filter in Power Query, filter Folder Path with the name of the folder you need to connect to.

vjunyantmsft_6-1732154202769.png

vjunyantmsft_8-1732154223647.png

And the final output is as below:

vjunyantmsft_9-1732154246826.png


Note, however, that this is just an alternative, and there doesn't seem to be a way to connect directly to a folder in a particular Onedrive that I've tried (without using sharepoint)

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

View solution in original post

10 REPLIES 10
v-junyant-msft
Community Support
Community Support

Hi @M0hamedFazil ,

If you want to use Sharepoint Folder connector, you need to use the Web URL of the sharepoint site. Please follow the next steps:
In the sharepoint, create a site:

vjunyantmsft_0-1732068357529.png

Put the folder into this site:

vjunyantmsft_1-1732068390382.png

Click "Home" and copy the Web URL:

vjunyantmsft_2-1732068439098.png

In Power BI Desktop, use sharepoint folder connector to connect:

vjunyantmsft_3-1732068546646.png

vjunyantmsft_4-1732068566922.png

After authenticating with your account, you can get the files in the folder:

vjunyantmsft_5-1732068591983.png


Power Query SharePoint folder connector - Power Query | Microsoft Learn

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

Hi @v-junyant-msft 

Actually I am using ondrive as source and not sharepoint itself. I tried using the web URL and it throws me error like

M0hamedFazil_0-1732099753328.png


Regards
Fazil M

Hi @M0hamedFazil ,

You can copy the path of the folder in Onedrive and remove its suffix to your account:

vjunyantmsft_1-1732153949343.png

vjunyantmsft_2-1732153983629.png

Delete from:

 

https://m365x96158828-my.sharepoint.com/personal/taojunyan_m365x96158828_onmicrosoft_com/Documents/excel%20folder

 

to:

 

https://m365x96158828-my.sharepoint.com/personal/taojunyan_m365x96158828_onmicrosoft_com/

 

Use sharepoint folder connector:

vjunyantmsft_3-1732154058659.png

vjunyantmsft_4-1732154069001.png

 

 After authentication, you can access all the files in your Onedrive:

vjunyantmsft_5-1732154110984.png

Click Transform Data and then filter in Power Query, filter Folder Path with the name of the folder you need to connect to.

vjunyantmsft_6-1732154202769.png

vjunyantmsft_8-1732154223647.png

And the final output is as below:

vjunyantmsft_9-1732154246826.png


Note, however, that this is just an alternative, and there doesn't seem to be a way to connect directly to a folder in a particular Onedrive that I've tried (without using sharepoint)

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

Hi @v-junyant-msft 

Thanks for the reply and I this works perfectly. I too tried many other ways and ended up using this. I used this currently and moving on. Thank you so much for the time.

Regards
Fazil M

BeaBF
Memorable Member
Memorable Member

@M0hamedFazil Hi! Can you share the link to which are u trying to connect?

 

BBF

@M0hamedFazil Ok. maybe that's why. You have to take the general link to sharepoint. If you click on the folder and do "copy link", you obtain a link like the one pasted by you. You have to open a file in that location in sharepoint online, then go to three points, details:

 

BeaBF_0-1732015286156.png

 

 

then scroll down, at the end of the lateral page, you'll find Path with copy function:

BeaBF_1-1732015331939.png

 

Copy it, you'll see that is quiet different than the first one. Try use it.

 

BBF

 

 

@BeaBF 

Actually, I copied the path of the folder from onedrive. when I copied the link of the folder it'll be like

"https://domain-my.sharepoint.com/:f:/r/personal/fazilm_domain_com/Documents/folder1/"

I tried both and didn't workout for me

 

 

Regards

Fazil M

@M0hamedFazil have you tried with the method above? on one file in the folder, not the folder.

 

BBF

@BeaBF , Hey

As I mentioned in the post this is working for file directly but not for folder.

Regards
Fazil M

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors