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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Dennis_C20
Advocate I
Advocate I

Power BI Dataset Refresh Error - Authorization Code is Intended for Use Against Another Tenant

I am receiving an error in the Power BI Service. The error text is "Failed to update data source credentials: AADSTS700005: Provided Authorization Code is intended to use against another tenant, thus rejected." The two data sources are an Azure SQL Database and Azure Databricks. I am not receiving this error in Power BI Desktop, the dataset refreshes successfully.

 InkedPower BI Error_LI.jpg

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @Dennis_C20 


Can you confirm that all the resources are within the same tenant?

 

If they are in different tenants as far as I am aware this will not work

 

You might have to configure the gateway and connect via a gateway to get this working





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

2 REPLIES 2
v-yanjiang-msft
Community Support
Community Support

Hi @Dennis_C20 ,

By the errer code, you should check the tenant of the data source, as OAuth2 Authorization Code must be redeemed against same tenant it was acquired for.

vkalyjmsft_0-1642154512774.png

Reference: Azure AD authentication & authorization error codes | Microsoft Docs

 

Best Regards,
Community Support Team _ kalyj

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

GilbertQ
Super User
Super User

Hi @Dennis_C20 


Can you confirm that all the resources are within the same tenant?

 

If they are in different tenants as far as I am aware this will not work

 

You might have to configure the gateway and connect via a gateway to get this working





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors