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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
SLacombe
Frequent Visitor

Maximum Text Files to Import

Hello, I'm building a query with thousands of txt files from a folder on Sharepoint. For some reason some of the files are not coming in. If I do them individually they come in. Does anyone know if there is a limit to how many data sources can be queried at once? Or why random files are not pulling in.  From my C drive I can import over 7,000 text files. Thanks, SLacombe

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @SLacombe

There is a similar post for you refer to:

I would like to know why this happens. I just had the same happen to me with CSV files. 2 showed up, but there are 7 in our library. The Sharepoint site (a group) has 4,200 or so files, so it isn't the 5,000 file limit.

 

The "fix" is to change the source line that Power Query generates. Get rid of the  [ApiVersion = 15] at the end.

 

That will allow it to pull everything in there, even if there are more than 5,000 files, but I wish I knew what that APIVersion was really doing. I thought it was just limiting it to 5,000 files, but it is obviously doing more. When it is in place, my file count that is returned is around 3,100 files, so not sure why the other 1,100 or so are being excluded.

 

 

https://community.powerbi.com/t5/Desktop/Sharepoint-folder-limit/td-p/267755

 

hope it could help you 

 

Best Regards,

Lin

Community Support Team _ Lin
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

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @SLacombe

There is a similar post for you refer to:

I would like to know why this happens. I just had the same happen to me with CSV files. 2 showed up, but there are 7 in our library. The Sharepoint site (a group) has 4,200 or so files, so it isn't the 5,000 file limit.

 

The "fix" is to change the source line that Power Query generates. Get rid of the  [ApiVersion = 15] at the end.

 

That will allow it to pull everything in there, even if there are more than 5,000 files, but I wish I knew what that APIVersion was really doing. I thought it was just limiting it to 5,000 files, but it is obviously doing more. When it is in place, my file count that is returned is around 3,100 files, so not sure why the other 1,100 or so are being excluded.

 

 

https://community.powerbi.com/t5/Desktop/Sharepoint-folder-limit/td-p/267755

 

hope it could help you 

 

Best Regards,

Lin

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

Thanks Lin, I will try this out and let you know how it works out.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.