Reply
神游中的Eddy
New Member

Help: import google sheet by Power query to Excel

hi,

I'm attemping to import the google sheet data into Excel by Power Query, I copy the URL of the google sheet and change edit?usp=sharing to export?format=xlsx.  

However, I got below warning, "we couldn't authenticate with the credentials provided". I tried to change the different level and credential, but still fail. 

Eddy_2-1736471904047.png

Eddy_4-1736472574944.png

 

Eddy_3-1736472546148.png

 

 

I'm the owner of the google sheet and the general access is "Only people with access can open the link". I also tried to change it from "Restriced“ to organization. But still get above warning.

Eddy_0-1736471556259.png

 not sure which step causes the error🤔

 

 

1 ACCEPTED SOLUTION
Kaesebro
Regular Visitor

I have been having the same issue since last Friday with Excel files that I've been using for over two years. The issue also arose in Power BI for queries using the same anonymous authentication method. I tried refreshing on my desktop and my laptop - restarted the computers, cleared caches, checked for updates, etc. Nothing worked.

 

From what I can tell, this function is simply no longer available. When I switched the authentication method in Power BI to "organizational account" and used my Google credentials to authenticate, it worked, even though the Google Sheet was still set to public for anyone with the link.

 

I read that Google has been rolling out mandatory multi-factor authentication across its platform, and it's my suspicion that this is affecting the anonymous access function, even for files public for anyone with the link. I don't know if this is true, but I have tasks to finish, so I'm switching all of my work over to Power BI right now.

View solution in original post

11 REPLIES 11
Kaesebro
Regular Visitor

I have been having the same issue since last Friday with Excel files that I've been using for over two years. The issue also arose in Power BI for queries using the same anonymous authentication method. I tried refreshing on my desktop and my laptop - restarted the computers, cleared caches, checked for updates, etc. Nothing worked.

 

From what I can tell, this function is simply no longer available. When I switched the authentication method in Power BI to "organizational account" and used my Google credentials to authenticate, it worked, even though the Google Sheet was still set to public for anyone with the link.

 

I read that Google has been rolling out mandatory multi-factor authentication across its platform, and it's my suspicion that this is affecting the anonymous access function, even for files public for anyone with the link. I don't know if this is true, but I have tasks to finish, so I'm switching all of my work over to Power BI right now.

Thank you very much, Kaesebro, you're right, I decide to use Power BI connector instead of Excel. It is the only solution at this moment.

 

 

v-mdharahman
Community Support
Community Support

Hi @神游中的Eddy,
Thanks for reaching out to the Microsoft fabric community forum.

 

It looks like you were facing issues related to importing data from Google sheet to Excel using Power Query. If the solutions provided by @PwerQueryKees@adudani works for you then please accept them as solution.

 

If I misunderstand your needs or you still have problems on it, please feel free to let us know.
Best Regards,
Hammad.
Community Support Team

If this post helps then please mark it as a solution, so that other members find it more quickly.
Thank you.

hi v-mdharahman,

I still had issue to import google sheet to Excel. I already login my company google account on web, but I still got the below window 

 

Eddy_0-1737383431445.png

 

Hi @神游中的Eddy,

 

Before using the URL in excel to Get Data make sure you have made the required changes in General Access and given the access to anyone with the link.

 

vmdharahman_3-1738175409376.png

You can get this access setting on the right top corner of the google sheet. Click on Share option and change the access settings accordingly.

vmdharahman_2-1738175409374.png

 

After the setting is changed to "Anyone with the link" you can use the URL in Get Data -> From other sources -> From Web, without any credential requirement error.

 

If I misunderstand your needs or you still have problems on it, please feel free to let us know.  

Best Regards,
Hammad.
Community Support Team

 

If this post helps then please mark it as a solution, so that other members find it more quickly.

Thank you.

Thanks v-mdharahman, yeah, I tried the method you mentioned. but I still can't get the google sheet data.  I decide to use Power BI connector instead as Kaesebro mentioned.

PwerQueryKees
Super User
Super User

What you are doing seems to be fine.

 

You might want to try to clear your authentication cache and try again:

 

In the PowerQuery editor

PwerQueryKees_1-1736500700854.png

PwerQueryKees_2-1736500795323.png

 

hi PwerQueryKees,

 

Thanks for the respond, clear authentication cache and sign with "Anonymous" only work for my personal google account. However, when I change back to company account, it can't work and excel shows I wasn't signed in my google account. I login my personal google account and company account by website. 

not sure which step I miss

Eddy_Brother_0-1736730582748.png

 

 

And you probably need "Anonymous", that worked for me...., but I was already signed in to Google with the correct account.

adudani
Super User
Super User

hi @神游中的Eddy ,

 

try this:

1. get data -> more -> google sheets connector

adudani_1-1736473798061.png

 

2. sign in with your google account.

adudani_0-1736473762433.png

 

let me know if this resolves the issue.

 

to me, it seems like you are trying to use the web/url connector

Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a Kudos 🙂
Kind Regards,
Avinash

hi Avinash,

 

yes, I use get data--from other sources---from web, I couldn't find google sheets connector in Excel, is the snapshot you provided from Power BI?

 

Eddy_0-1736479352895.png

BR.

Eddy

 

avatar user

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!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)