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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jwhitf4770
Helper I
Helper I

web.page not refreshing through gateway

I am connecting to the On-Premise SharePoint list and folder.  I can refresh the data from the desktop. 

 

The source is:

= Web.Page(Web.Contents("http://......../AIM/EQ%20File%20Transfer/_Archived%20AIM%20Requests", [Timeout=#duration(0, 0, 60, 0)]))

 

The gateway connects: 

gateway.png

I am using a service user

However, on refreshes, I get the following error:

 

{"error":{"code":"DM_GWPipeline_Gateway_InvalidConnectionCredentials","pbi.error":{"code":"DM_GWPipeline_Gateway_InvalidConnectionCredentials","parameters":{},"details":[{"code":"DM_ErrorDetailNameCode_UnderlyingErrorCode","detail":{"type":1,"value":"-2147467259"}},{"code":"DM_ErrorDetailNameCode_UnderlyingErrorMessage","detail":{"type":1,"value":"The credentials provided cannot be used for the Web source. (Source at http://laurelnet/sites/maintenance/AIM/EQ%20File%20Transfer/Forms/AllItems.aspx.)"}},{"code":"DM_ErrorDetailNameCode_UnderlyingHResult","detail":{"type":1,"value":"-2147467259"}},{"code":"Microsoft.Data.Mashup.CredentialError.DataSourceKind","detail":{"type":1,"value":"Web"}},{"code":"Microsoft.Data.Mashup.CredentialError.DataSourcePath","detail":{"type":1,"value":"....../AIM/EQ%20File%20Transfer/Forms/AllItems.aspx"}},{"code":"Microsoft.Data.Mashup.CredentialError.Reason","detail":{"type":1,"value":"CredentialInvalid"}},{"code":"Microsoft.Data.Mashup.MashupSecurityException.DataSources","detail":{"type":1,"value":"[{\"kind\":\"Web\",\"path\":\"....../AIM/EQ%20File%20Transfer/Forms/AllItems.aspx\"}]"}},{"code":"Microsoft.Data.Mashup.MashupSecurityException.Reason","detail":{"type":1,"value":"CredentialInvalid"}}],"exceptionCulprit":1}}} Table: AIM File Transfer.

 

Also when I look at Data Source Credentials,  it just spins:

datasource.png

5 REPLIES 5
v-yingjl
Community Support
Community Support

Hi @jwhitf4770 ,

It seems like the credentials of data source are invalid. Please try to update the latest version of gateway and check the credentials when using SharePoint connector to connect.

Perhaps the following simliar case could help you:

https://community.powerbi.com/t5/Service/The-credentials-provided-for-the-SharePoint-source-are-inva...

 

Best Regards,
Yingjie Li

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

Greg_Deckler
Super User
Super User

Well, you should not be using the Web connector for SharePoint, use a SharePoint connector for SharePoint.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

I have tried that.  This an ON Premises sharepoint.   We we use the On Premise sharepoint we get JSON errors and researching this it said to use the web.page connector.

 

Any suggestions?

Must be old SharePoint. Are you using Windows credentials?

@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

I am using Windows Credentials.   It is not my credentials but a user that has access to the lists and folders.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors