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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Si_7777
Advocate I
Advocate I

Sharepoint data source in both Gateway and Cloud connections

Testing a report linking to sharepoint data source.  I have created the cloud connection and also have a connection to on site SQL server connecting via on prem GW.

 

However the SP file appears twice in Clound and under GW? Why it should only be under cloud and nothing to do with the GW ??

 

Si_7777_0-1745916957200.png

 

1 ACCEPTED SOLUTION

Hi @Si_7777,
Thank you for reaching out to the Microsoft Fabric Forum Community. 

Thank you @BhavinVyas3003,  for your helpful insights.

The content In a manner such that it is ambiguous whether the content is cloud based. As a consequence the SharePoint source will show up under both Gateway and Cloud connections, even though SharePoint Online should only be accessed under a cloud connection using OAuth2. Can you just revise your Power Query M code to utilize the out-of-box SharePoint connector:

Instead of the Web. Contents(...), use SharePoint. Files ("https://yourtenant.sharepoint.com/sites/YourSite", [ApiVersion = 15]).

This helps Power BI clearly recognize the source as a cloud connection, avoiding any unnecessary gateway mapping. After updating the code, re-publish your report to the Power BI Service and update the credentials under "Data source credentials" using OAuth2. If the SharePoint source still appears under the gateway section, leave it unmapped Power BI will use the cloud connection as long as it's correctly defined.  

Regarding the Manage Gateways screen, you're correct that you may not see a data source to delete if it wasn’t manually added Power BI may just be inferring it based on the structure of the query. So, the key fix here is in the M code, not the gateway configuration. Hope this helps, and feel free to share your query if you'd like assistance reviewing it.

 

If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

 

Thank you. 

View solution in original post

8 REPLIES 8
v-saisrao-msft
Community Support
Community Support

Hi @Si_7777,

 

We haven’t heard back from you regarding your issue. If it has been resolved, please mark the helpful response as the solution and give a ‘Kudos’ to assist others. If you still need support, let us know.

 

Thank you.

BhavinVyas3003
Super User
Super User

Go to Power BI Service > Manage Gateways.

Select the gateway

Under Data Sources, find the SharePoint (Web) entry.

Click the three dots next to it and choose Remove or Delete.


Thanks,
Bhavin
Problem solved? Hit “Accept as Solution” and high-five me with a Kudos! Others will thank you later!

Thanks for your help but dont see an option for data source under manage gateways

Hi @Si_7777 ,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.

Hi @Si_7777,

May I ask if you have resolved this issue? If so, please mark the helpful reply and accept it as the solution. This will be helpful for other community members who have similar problems to solve it faster.

Thank you.

Hi @Si_7777,
Thank you for reaching out to the Microsoft Fabric Forum Community. 

Thank you @BhavinVyas3003,  for your helpful insights.

The content In a manner such that it is ambiguous whether the content is cloud based. As a consequence the SharePoint source will show up under both Gateway and Cloud connections, even though SharePoint Online should only be accessed under a cloud connection using OAuth2. Can you just revise your Power Query M code to utilize the out-of-box SharePoint connector:

Instead of the Web. Contents(...), use SharePoint. Files ("https://yourtenant.sharepoint.com/sites/YourSite", [ApiVersion = 15]).

This helps Power BI clearly recognize the source as a cloud connection, avoiding any unnecessary gateway mapping. After updating the code, re-publish your report to the Power BI Service and update the credentials under "Data source credentials" using OAuth2. If the SharePoint source still appears under the gateway section, leave it unmapped Power BI will use the cloud connection as long as it's correctly defined.  

Regarding the Manage Gateways screen, you're correct that you may not see a data source to delete if it wasn’t manually added Power BI may just be inferring it based on the structure of the query. So, the key fix here is in the M code, not the gateway configuration. Hope this helps, and feel free to share your query if you'd like assistance reviewing it.

 

If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.

 

Thank you. 

BhavinVyas3003
Super User
Super User

The SharePoint data source appears under both Cloud and Gateway because Power BI may misclassify it if the M code like Web.Contents, isn't structured clearly for cloud. SharePoint Online should only use a cloud connection. remove any mapping to the gateway and ensure credentials are set using OAuth2 under Data Source Settings.


Thanks,
Bhavin
Problem solved? Hit “Accept as Solution” and high-five me with a Kudos! Others will thank you later!

How can I remove the Web sharepoint from under gataway. I dont want to add to gateway as I have a cloud connection setup

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 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 Kudoed Authors