cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
gtrajesh Frequent Visitor
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

Accepted Solutions

Re: Oauth2 option for authentication not available

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

Re: Oauth2 option for authentication not available

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

gtrajesh Frequent Visitor
Frequent Visitor

Re: Oauth2 option for authentication not available

Hi jeffshieldsdev,

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

Cheers

Highlighted
ashokpershad Frequent Visitor
Frequent Visitor

Re: Oauth2 option for authentication not available

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

foxglove666 Regular Visitor
Regular Visitor

Re: Oauth2 option for authentication not available

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?

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Top Kudoed Authors
Users Online
Currently online: 6 members 1,301 guests
Please welcome our newest community members: