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
slhangen
Helper II
Helper II

Getting Access is forbidden error when connecting OneDrive excel file

How do I get to the Authenticate screen to input credentials? Saw the screen once and cannot get back to it.

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

With the SharePoint Folder connector you only use the site URL and then navigate to the file with the FileName and FolderPath columns.  Delete the url text after the site level.

Regards,

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


View solution in original post

10 REPLIES 10
mahoneypat
Microsoft Employee
Microsoft Employee

With the SharePoint Folder connector you only use the site URL and then navigate to the file with the FileName and FolderPath columns.  Delete the url text after the site level.

Regards,

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


Got it, thank you so much for your time and hlep Mr. Pat!

mahoneypat
Microsoft Employee
Microsoft Employee

Are you using the url from when you open the file in the desktop app?  The one that ends in ?web=1 (that you delete).

In any case, it looks like you are connecting to a OneDrive file, and I would use the SharePoint folder connector instead, replacing @ and . in your email address to _ 

 

Regards,

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


Thx so much for your help, Pat.  USed SharePoint Folder connector.

Pasted in url, deleting the ?web=1 and got the authentication box.  Filled out box with credentials and got this error:

 

 

slhangen_0-1607553853879.png

 

ugh!

mahoneypat
Microsoft Employee
Microsoft Employee

Yes.  That happens sometimes with some sources.  To get there in this case, go to the query editor and start a new blank query.  In the Formula Bar (check the box in View tab if you don't see it) and write the first line of your query like = Web.Contents("<your url>") 

You should then get the error but also a button you can click to Edit Crendentials for that source.

Regards,

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


Can you elaborate please? Pasted info into query editor but still not able to get authenitcation box.  Got it the very first time I tried but nothing in subsequent attempts.

 

Thx for your time.

Can I get a little more details?

Pasted code but did not get the box to enter credentials. Got the following:

 

slhangen_0-1607462255586.png

 

mahoneypat
Microsoft Employee
Microsoft Employee

Go to File/Options and Settings/Data Source Settings (or choose Data Source Settings in the query editor).

Regards,

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


slhangen_3-1607382355104.png

 

 

slhangen_0-1607382263223.png

When I paste link into web form I get this error.

 

Need to get to this:

slhangen_4-1607382431154.png

But I can't figure out how to access this box

 

My data is not in there.  I cannot load data, keep getting access forbidden error.  Need to authenticate data before it loads into model, right?

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!

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.