Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi
a) I have csv file hosted on SharePoint site (all within organization)
b) I can connect and consume in the data model using the power bi desktop (on my laptop)
FYI, I can browse csv file using browser
c) I published the data model to Power BI service (premium space)
and I supplied my credentials to CSV file
I can sign in successfully. But, When I try to refresh I get an error, where as my other colleague tries, it refreshes with out an error!
Error:
<pii>The credentials provided for the SharePoint source are invalid. (Source at https://mycompany.sharepoint.com/sites/myprojectdev.)</pii>. The exception was raised by the IDbCommand interface. Table: ...
Any idea what is going on?
Regards
S
Solved! Go to Solution.
Hi, @sevenhills
According to your follow-up, I make some additional test, first I change the colleague account to a member of the site, then I use his account to refresh the dataset again, I still succeeded:
This result indicates that both member and admin of the site can refresh the dataset.
Then I wonder if it’s because you don’t have access to the root website. I changed to another account outside the organization, which can not access the root website. Then I added it to my site, it showed as a guest in the list:
Then I use this account to take over and refresh the dataset, I tried manual refresh and scheduled refresh, you guess what? They both succeeded!
Therefore, I think that your member access to the SharePoint site is enough for you to refresh the dataset. I suggest you to create a new workspace and publish the report again to the new workspace and try to refresh the dataset.
What’s more, my share point site is a private group, what’s your group type?
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @sevenhills
In my opinion, the refreshing dataset has nothing to do with the workspace if you are the workspace admin. It’s only related to the credential problems, Here are the things you should check again:
If you still can not solve this problem, I suggest you to mark this reply as a solution and go to create a Power BI support ticket for better help
How to create a support ticket in Power BI
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @sevenhills
In my opinion, the refreshing dataset has nothing to do with the workspace if you are the workspace admin. It’s only related to the credential problems, Here are the things you should check again:
If you still can not solve this problem, I suggest you to mark this reply as a solution and go to create a Power BI support ticket for better help
How to create a support ticket in Power BI
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @sevenhills
According to your follow-up, I make some additional test, first I change the colleague account to a member of the site, then I use his account to refresh the dataset again, I still succeeded:
This result indicates that both member and admin of the site can refresh the dataset.
Then I wonder if it’s because you don’t have access to the root website. I changed to another account outside the organization, which can not access the root website. Then I added it to my site, it showed as a guest in the list:
Then I use this account to take over and refresh the dataset, I tried manual refresh and scheduled refresh, you guess what? They both succeeded!
Therefore, I think that your member access to the SharePoint site is enough for you to refresh the dataset. I suggest you to create a new workspace and publish the report again to the new workspace and try to refresh the dataset.
What’s more, my share point site is a private group, what’s your group type?
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Appreciate your detailed try out. Wow! your commitment is impeccable.
Sorry, my bad, as I have other datasets from other external SharePoint sites and they are working fine. These external sites, where I am admin/owner of the SharePoint site and has root site access, which mislead to different thoughts. Appreciated your help.
This is getting interesting...
Regards
S
Hi, @sevenhills
According to your description, I also make some tests to reproduce your situation, I created a report based on a dataset connected to SharePoint, and I can get the dataset refreshed successfully without gateway, like this:
Then I shared the workspace to my collegue’s username account(his account don’t have access to my sharepoint site level), then I used his account to take over and refresh the dataset, I got the same error:
Then I go to my sharepoint site to add him as as admin of my site:
Then I update the credential using OAuth method and refresh again, I succeeded:
Therefore, I think the admin of the sharepoint site is enough to get the credential to refresh the dataset, you should check these things:
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for testing and confirming the issue I am facing.
Yes, I am in the same situation and do not have admin access to the site "myprojectdev" but have member access. And do not have root sharepoint online access. Now that explains why I was not able to process the data. Glad you provided the answer in details. I will request for Admin access meanwhile for the site "myprojectdev".
Follow-up,
- I can browse the files using browser. I am just wondering why it asks for / need admin permission?
- I am doubtful they will give admin access to me. In such case, Is there any alternative?
Regards
S
Hi, @sevenhills
According to your description, you said that the other colleague can refresh the dataset successfully but you failed. Do you use the same credential as they used? You should also check if you have used the correct link to connect to the share point:
To connect to Excel that is located under Documents of SharePoint online site, please use the URL below.
https://xxxxx.sharepoint.com/sites/<sitename>/Shared%20Documents/<Yourexcename>.xlsx
To connect to Excel that is located under a folder in SharePoint online Documents, please use the URL below.
https://xxxxx.sharepoint.com/sites/<sitename>/Shared%20Documents/<Foldername>/<Yourexcename>.xlsx
Then in the upper-right corner of the Power BI service, go to the gear icon ->Manage gateways., tick on the option "Allow user's cloud data sources to refresh through this gateway cluster" like below, click "Apply".
You can learn more: https://docs.microsoft.com/en-us/power-bi/service-gateway-mashup-on-premises-cloud.
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I am sorry, unfortunately your reply to the post does not matches what I am looking.
My colleague credentials works and mine does not work. we both have same privileges at Sharepoint site level "https://mycompany.sharepoint.com/sites/myprojectdev"
Only difference is I don't have access to https://mycompany.sharepoint.com/
and my colleague has access to https://mycompany.sharepoint.com/
Thanks
Unfortunately, I cannot get root site access.
Has to see if anyone else has solution 🙂
Thanks for your replies
it shouldnt matter, but for some reason sometimes when configuring to a specific site the credentials configurations fails on refresh on power bi desktop or service, and solved normally by giving access to root.
Proud to be a Super User!
I tried the way you asked me to change the datasource as "https://mycompany.sharepoint.com"
and I get the error as "The key did not match any rows"
I don't have access to the root SharePoint site of the company. I only have to site myprojectdev. Does it matter?
change the source adress on the power bi desktop specific site setting sometime generate problemas
change https://mycompany.sharepoint.com/sites/myprojectdev.)</pii to https://mycompany.sharepoint.com
so the credential get to the source sharepoint instead of a site this solve this kind of problems normally
Proud to be a Super User!
you should check on your gateway configuration amke sure you have no gateway configure for the sharepoint source, instead go to the main gateway configuration and check the it to use conection from web:
Proud to be a Super User!
FYI, We dont need gateway. CSV file source - sharepoint is online version only. (Power BI service is also online version only)
Thanks
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.