cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gtrajesh
Frequent Visitor

Oauth2 option for authentication not available

Hi guys, I have my data source as an excel file that is on our organisations one drive location. Using Power BI desktop I am able to connect to the location and load the data. But after I publish the report into a work space and when I am trying to refresh the dataset online it is throwing an error. I went through the dataset setting to change the dataset credentials but it doesn't show me the option Oauth2 and when I try using the windows and basic options to authenticate its throwing an error "credentials are invalid". Is there anyone who is facing similar issue? Please help if anyone knows the solution to this problem
1 ACCEPTED SOLUTION
jeffshieldsdev
Super User
Super User

Are you reformatting your Excel web URL? Like this: "You have to strip out the :x/r/ from the middle of the URL and the question mark and everything after from the end and then it'll work."

View solution in original post

4 REPLIES 4
gtrajesh
Frequent Visitor

Hi jeffshieldsdev,

Thank you so much for reverting back quickly. I did as you told and it is working now,

Cheers

jeffshieldsdev
Super User
Super User

Are you reformatting your Excel web URL? Like this: "You have to strip out the :x/r/ from the middle of the URL and the question mark and everything after from the end and then it'll work."

Anonymous
Not applicable

Hi,

 

I've got the same issue execpt when I follow you advice I don't have the :x/r/ or the ? in my URL

 

In my query edittor I have the following as my source:

= Excel.Workbook(Web.Contents("https://(then my link url).xlsx"), null, true)

 

Any ideas that can help me?

Thanks for this solution, it has been making me anxious from last many days.. Strange kind of error..

Helpful resources

Announcements
May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through June10th!

Power BI Dev Camp Session 22 without aka link and time 768x460.jpg

Check it Out!

Watch Session 22 Ted's Dev Camp along with past sessions!

Power BI Release May 2022 768x460.png

Check it out!

Click here to read more about the May 2022 updates!

Top Solution Authors
Top Kudoed Authors