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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
lg1551
Resolver II
Resolver II

Dataflow Can't Connect to SharePoint Excel File

I have a PBI desktop report that I want to put into a dataflow. One of my sources is an excel file hosted on SharePoint. It runs in the desktop just fine but when I try to connect in the dataflow I get invalid credentials error or "unexpected error". I've tried Basic, Anonymous, and Organizational accounts, Excel, Web, Web API, and SharePoint as sources in the data flow and I get the same error.

 

The credentials used in the desktop are the same account credentials used in the service as well as the SharePoint site, so what gives?

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @lg1551 ,

 

This issue has been submitted internally. Internal ICM ID: 341717747 . Please be patient to wait for fixing. If there is any news, I will update it here.

 

Best Regards,

Neeko Tang

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

View solution in original post

10 REPLIES 10
Anonymous
Not applicable

When I use the SharePoint link, I get the permission error mentioned above.
On SharePoint itself, I can see and edit the file.
If I use "Copy Details/Direct Link" instead of "Copy Link" on the file, it works.
Copy direct link.png

aj1973
Community Champion
Community Champion

Hi @Anonymous 

I believe that's not a SharePoint List, it is an excel file in SharePoint Folder,. Make sure your are using the right connector 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

Anonymous
Not applicable

Hi @lg1551 ,

 

This issue has been submitted internally. Internal ICM ID: 341717747 . Please be patient to wait for fixing. If there is any news, I will update it here.

 

Best Regards,

Neeko Tang

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

Anonymous
Not applicable

I have the same problem even though in the same data flow I'm able to connect to another excel file in the same sharepoint folder!

I even tried to rename the file to "test.xlsx" but I'm still told that I'm using invalid credentials even though I use the same as for the file that I am able to load.

I also tested opening the file test.xlsx in sharepoint and I have no problems.

aj1973
Community Champion
Community Champion

Hi @lg1551 

Dataflow is basicaly like Online Power Query using a connector to connect to Sharepoint. Do you have the Role/Permission granted to do so? If so you need to verify with Power Admin if you have the permissions to connect your Desktop to the Dataflow you build in the service.

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

I do have those permissions. I have created several data flows for the organization but for whatever reason I can't link to the excel file in SharePoint without a credentials error. Yet I can log into sharepoint and access the file and even access it in Power BI desktop but the dataflow will not allow it for whatever reason. Not had this with other dataflows I've set up.

aj1973
Community Champion
Community Champion

Can you create a new Dataflow pointing to the same file in Sharepoint?

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

I'm unable to do that as well.

 

We have an existing PBIX desktop file which points to the SharePoint excel file. I'm wanting to convert all of the SharePoint sources to a dataflow with autorefresh to save some time when refreshing the PBIX. But when I point the DataFlow to the SharePoint excel file I get the credentials error. It makes no sense to me. The same credentials are used in the service, as are in the desktop PBIX as are used in the SharePoint. It's my same organizational account. I will check with the admin and see if there is some permissions setting that needs adjusting in the service.

aj1973
Community Champion
Community Champion

I don't think going through Dataflows is the best approach, Sharepoint is already an online service and has good connection to Power BI service. Maybe you have anthore reason to build on top of Dataflows. Anyways, I think the way you connected or trying to connect to Sharepoint is defaulting in here. Can you give more details on how did you build your report on top of sharepoint? 

Regards
Amine Jerbi

If I answered your question, please mark this thread as accepted
and you can follow me on
My Website, LinkedIn and Facebook

The reason for the dataflow is because they use a ton of SharePoint sources, excel files, lists, etc that take a long time to refresh in desktop. If they are fed to the dataflows which auto refresh nightly then the desktop can grab the transformed data and load the visuals. I just finished a separate report and it went from a 10-12 minute refresh to a 2-3 minute refresh by moving the SharePoint sources into dataflows.

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.