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
Chris_D-
New Member

Sharepoint Source Refresh Issue after adding 2nd Sharepoint Directory

Hello!

Was able to successfully create a report that used a single Excel file on Sharepoint.  Published it to the cloud and found it refreshed automatically without issue.  Needed to add a second Sharepoint file (located in another Sharepoint directory) that contains different info.  After doing so the refresh stopped working.  What's curious is that it stopped working in another report that still only refers to the first Sharepoint file - with daily refreshes producing the following error.

Chris_D_0-1692975981212.png

The source credentials for the first file refers to the specific Sharepoint folder.  Though, I'm getting the feeling that PowerBI may be accessing the (second) new folder and hence producing the key error (a wild guess...)?  Any ideas why this may be happening?

 

Thanks!

Chris

 

1 ACCEPTED SOLUTION

Hello Ibendlin!

 

Your initial advice to "clean up the queries" was correct.  After trying different ways to define SOURCE and create credentials, it occurred to me to check the Sharepoint directories to confirm contents.  Turned out there were 2 files in the first directory. 

 

Originally, I had uploaded the second file to the first Teams site.  Then decided to create a different Teams site with different security access so users could update the file themselves.  What I didn't know is that when I deleted the second file in the first Teams site, the delete did not carry through to Sharepoint.  That was quite a surprise - and an important thing to know for many reasons besides building reports.  After deleting the second file in first SharePoint folder, the PowerBI report worked.      

 

Thanks your help!  

Chris

View solution in original post

8 REPLIES 8
Chris_D-
New Member

Thanks for replying Ibendlin!

That's the problem, I can't properly change the source.  After adding the second query, the query is listing 2 files from 2 different folders - eventhough I specified the correct folder.  I only want the second file.  In addition, the contents from that file.  I think the missing key issue is because the report thinks that the file list are the records. 

  

Chris_D_0-1693232132463.png

 

Are you trying to combine these two files?  Do they have the same sheets and sheet structure?

No, they are 2 completely different files - in different Sharepoint folders.

Then you need to create two separate queries, one for each file.

I did that.  The query for the newer file works.  The query for the file that already existed stopped working.

- confirm that you only see one connection to the sharepoint

- post a sanitized version of both Power Queries.

Hello Ibendlin!

 

Your initial advice to "clean up the queries" was correct.  After trying different ways to define SOURCE and create credentials, it occurred to me to check the Sharepoint directories to confirm contents.  Turned out there were 2 files in the first directory. 

 

Originally, I had uploaded the second file to the first Teams site.  Then decided to create a different Teams site with different security access so users could update the file themselves.  What I didn't know is that when I deleted the second file in the first Teams site, the delete did not carry through to Sharepoint.  That was quite a surprise - and an important thing to know for many reasons besides building reports.  After deleting the second file in first SharePoint folder, the PowerBI report worked.      

 

Thanks your help!  

Chris

lbendlin
Super User
Super User

While that may play a role you will first want to correct the issue in your Power Query that caused the error message.

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 Solution Authors