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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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.

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.

Top Solution Authors