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
Anonymous
Not applicable

Returning file names only from a big Sharepoint document library

Hi,

 

I need to be able to parse a SharePoint document library and return the file names only and their path.  The fields from the list that I need to return are the Title and FieldValuesAsText.FileRef.  I only need to see files in this list.

 

I am using the Sharepoint Online List connector.

 

When I tested it on a smaller list (10K items), It worked fine (by filtering on the field FileSystemOjbectType =0).

 

The problem I have now is that I need to parse a list that has around 500,000 items.  I ran it (on desktop) for over an hour and it never completed.

 

Does anyone have any clues on a quick and generally less stressful way of doing this?  I am open to using other tools, such as Power Automate to create this dataset and store it elsewhere.

 

Thanks

 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

"I am using the Sharepoint Online List connector."

 

That's not the right connector for accessing a Sharepoint document library.  Can you check again?  Maybe post some sanitized Power Query code.

View solution in original post

2 REPLIES 2
lbendlin
Super User
Super User

"I am using the Sharepoint Online List connector."

 

That's not the right connector for accessing a Sharepoint document library.  Can you check again?  Maybe post some sanitized Power Query code.

Anonymous
Not applicable

And that is the secret Sauce.

 

And changed over to use the SharePoint Folder connector and removed the unneeded fields (I.E., I don't need the binary content and I don't need the file attributes).

 

Once fixed, the process ran (relatively) quickly.

 

Thanks

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