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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
CloudMonkey
Post Prodigy
Post Prodigy

Connecting to OneDrive excel file

Hello,

 

I'm trying to connect to a onedrive excel file via the "web" data source. I followed these instructions:

https://www.youtube.com/watch?v=t4TzHu8THoA

 

but am getting this error when trying to connect:

CloudMonkey_0-1619527631843.png

The file definately exists, please could you point me in the right direction? 🙂

 

Thank you for your help,

 

CM

14 REPLIES 14
v-lionel-msft
Community Support
Community Support

Hi @CloudMonkey ,

 

Has your problem been solved?

 

Best regards,
Lionel Chen

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

Thanks for your help, we eventually found the solution 🙂

 

I have 2 onedrives mapped to my computer local drive, and can see all the files on them. They are the 'personal' onedrive of me and a 'power bi admin' account.

 

The file I was trying to access was on the 'power bi admin' account. Even though I could access the file on my computer, in order for power bi to be able to access it via a web link I had to share the relevant folder with myself. And now it works 🙂

 

Thank you for the help 🙂

v-lionel-msft
Community Support
Community Support

Hi @CloudMonkey ,

 

v-lionel-msft_0-1619677684034.png

Did you try to delete ‘/$Value’ in the advanced editor?

This is my connection query and I import the excel file from OneDrive for Business successfully.

let
    Source = Excel.Workbook(Web.Contents("https://qiuyunus-my.sharepoint.com/personal/xxxx/Documents/FileName.xlsx"), null, true),
    Sales_Sheet = Source{[Item="Sales",Kind="Sheet"]}[Data],
    #"Promoted Headers" = Table.PromoteHeaders(Sales_Sheet, [PromoteAllScalars=true]),
    #"Changed Type" = Table.TransformColumnTypes(#"Promoted Headers",{{"Product", type text}, {"Sales", Int64.Type}, {"Region", type text}})
in
    #"Changed Type"

 

Best regards,
Lionel Chen

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

 

CloudMonkey
Post Prodigy
Post Prodigy

Hi @Pragati11 

 

I've followed these instructions (https://www.youtube.com/watch?v=uxMlV9KKf6E) to edit some existing mcode which gives the following error message, in case that helps?

 

CloudMonkey_0-1619530667799.png

 

(after scrolling down:)

CloudMonkey_1-1619531041606.png

 

 

 

Hi @CloudMonkey ,

 

The video from RADACAD is very straight forward.

 

You are getting Not Found error, that means Power BI cannot find this file to your one-drive location.

 

Is your One Drive and Power BI credentials point to same account?

Login to your one drive, navigate to the path that you are trying to access in PBI and check whether your file exists there or not?

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hi @Pragati11 yes onedrive and power bi use the same account.

 

Yes if I go to onedrive I can see the file. If I enter the file url into the browser the excel file opens.

Hi @CloudMonkey ,

 

Create a new Web source in Power BI using the steps defined in the following blog:

https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-use-onedrive-business-links

 

Check if you are able to connect or not. I am able to connect using the steps as mentioned in the above link.

 

Make sure to add a new data source and test it.

 

Thanks,

Pragati

 

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

This was very helpful for me - solved the problem. Thanks!

Thanks @Pragati11  but I'm still getting the same error when I click on OK on the step below (with my url of course). It's not prompting me for credentials.

 

CloudMonkey_0-1619539643027.png

 

Hi @CloudMonkey ,

 

Have you removed te highlighted part from the copied URL?

Can you please open a new fresh Power BI Desktop file and try because as I don't have access to your power bi file, I am not sure where things are going wrong as this is a straight forward way to connect to one drive.

Clear Power Bi cache before doing this.

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hi @Pragati11 , yes the highlighted part was removed from the copied URL. I've tried from a new power bi file after clearing the cache but it still fails with the same error message unfortunately.

HI @CloudMonkey ,

 

This is very weird in that case.

What version of Power BI are you using? Latest April 2021?

 

Also are you using root folder as highlighted below to acess your one drive file? (I can't see your folder complete location)

Pragati11_0-1619542448818.png

 

I am not able to reproduce this issue at my end as I can successfully connect to One drive from power BI at my end.

 

I will suggest raising a support ticket here: https://powerbi.microsoft.com/en-us/support/

 

Thanks,

Pragati

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Pragati11
Super User
Super User

Hi @CloudMonkey ,

 

What is this $value in the file path?

 

Pragati11_0-1619528199092.png

 

Thanks,

Pragati

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Hi @Pragati11 

 

I don't know, this is what I entered (i.e. ending in .xlsx). I don't think I've entered $value anywhere.

(Also I don't think I can check what is in the mcode because it's before that stage in the wizard)

 

1408.JPG

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.