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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anonymous
Not applicable

Cant refresh your data, Error 400, Invalid Credentials sharepoint

I am using personal data gateway. Not able to refresh data, showing invaild credetials and error 400. when i publish report online with python program and sharepoint data. it removes OAuth connection and not connecting with annonymous.  Please suggest some solution.

 

Refresh.PNG

3 REPLIES 3
v-xicai
Community Support
Community Support

Hi  @Anonymous ,

 

Does that make sense? If so, kindly mark my answer as a solution to help others having the similar issue and close the case. If not, let me know and I'll try to help you further.

 

Best regards

Amy

Anonymous
Not applicable

Still I am having the same issue. I discussed with the microsoft partners and as per them this is the custom connector issue and I have ot create custom connector. Our sharepoint, powerBI  datasource Sign in is microsoft - OAuth2. Whenever I am trying to connect with windows login or anonymous login in the datasource settings. I am not able to sign in that is another reason of this issue. I think to connect with the gateway I have to switch to the window login, which I can't because of the some  authentication setting of the company . Do you if I can try something else please let me know. Thanks

v-xicai
Community Support
Community Support

Hi @Anonymous ,

 

There are several points you may considerate:

 

1.The Personal Gateway could be installed on the machine where the file is located, and where Python is installed. (Install the same bit version of the personal gateway and your computer operating system, for example both are 64-bit version. )

 

2.Please check if the Personal Gateway is online.

 

3.When connecting to on-premises SharePoint instead of SharePoint online for data refresh, Power BI supports only Anonymous, Basic, and Windows (NTLM/Kerberos) authentication mechanisms. 

 

4.Please try to upgrade the personal gateway to latest version.

 

5.If you get a credentials message, it could mean:

  • The usernames and passwords that you used to sign in to data sources aren't up to date. In Power BI, go to refresh settings for the dataset. In Manage Data Sources, select Edit credentials to update the credentials for the data source.
  • Mashups between a cloud source and an on-premises source, in a single query, fail to refresh in the gateway (personal mode) if one of the sources is using OAuth for authentication. An example of this issue is a mashup between CRM Online and a local SQL Server instance. The mashup fails because CRM Online requires OAuth.
    This error is a known issue, and it's being looked at. To work around the problem, have a separate query for the cloud source and the on-premises source. Then, use a merge or append query to combine them.

 

27.png

 

 

 

You may resolve the issue via the troubleshooting links: https://docs.microsoft.com/en-us/power-bi/service-admin-troubleshooting-power-bi-personal-gateway.

 

Best Regards,

Amy

 

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

 

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!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.