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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
ahim92
New Member

Microsoft Dynamics 365 on-prem Odata OAuth2 authentication fails in Power BI services

Hello,

 

I succesfully connect to on-prem Dynamics 365 data source in Power BI desktop via Odata as OAuth2 authentication method. After publishing report in PBI services I am trying to configure data gateway for this data source using the same method in order to be able to schedule regulat refreshs. There is the following error when trying to authenticate via data gateway: The token service reported by the resource is not trusted. 

Status code: 400
Error Code: DM_GWPipeline_Client_OAuthTokenLoginFailedError


Any suggestion?

 

Best regards,

Miha

1 REPLY 1
v-deddai1-msft
Community Support
Community Support

Hi @ahim92 ,

 

Would you please  try to confirm if your gateway is configured well in the your server? You may also need to refer to the following document: https://nishantrana.me/2019/08/24/connect-to-dynamics-365-web-api-using-oauth-2-0-client-credentials....

 

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

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors