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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
niki_b
Helper I
Helper I

Invalid Credentials in Power BI Service

Hi,

I am trying to refresh my data in Power BI service but it returms me an error saying invalid credentials.

 

niki_b_0-1620855229266.png

 

I am using my organizations's apis to get data in Power BI desktop. I have generated bearer token in the Advanced Editor itself and set up the credentials to anonymous in desktop app. 

 

 

I am trying to set the credentials to anonymous in service as well. But it is not working. My ultimate goal is to set up scheduled refresh for the data in service. How can I resolve this issue?

Thanks

1 ACCEPTED SOLUTION
ranbeermakin
Resolver III
Resolver III

@niki_b This will not work since the power query will try to query the root URL. You may use a gateway and skip test connection. Read more here: https://powerbi.microsoft.com/en-us/blog/skip-test-connection-for-on-premises-and-cloud-data-sources...

View solution in original post

2 REPLIES 2
ranbeermakin
Resolver III
Resolver III

@niki_b This will not work since the power query will try to query the root URL. You may use a gateway and skip test connection. Read more here: https://powerbi.microsoft.com/en-us/blog/skip-test-connection-for-on-premises-and-cloud-data-sources...

Thanks. I kind of figured it out later.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.