Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Append to array variable limitation

Seems like there are maximum items limitation that when using append to array variable, it can only have 500 items in total.  But my result may have 100 thousand+ items which comes from a do until loop (each loop only return 1 thousand items), thus I need set an array variable and append to the variable in each loop. The finial goal is to create a csv table to include all the items and then create a csv file in SharePoint list.

I think this is a very common case, do we have any solution or workaround?

Super User
Super User

Hi @Sear 


I have a proposal for a workaround. 


When adding to your array, check if you're reaching the max. If you're doing so, append to the CSV, all the values created as far, and reset the array. Repeat until the number of items is finished. 


There's no need to hold everything in an array before you can generate the CSV. You can keep on appending stuff.


Can you please check if and let me know if you have any questions?


If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.


Super User
Super User

Hi @manuelstgomes 


Thanks for your quick reply, to append to the CSV, I think I need have a string variable which also has the maximum size of 100MB limitation when using a append to string function, but at least it can hold more items than append to array variable.


by the way, I need one csv file which contains all the results instead of split files.

Frequent Visitor

Hi @CFernandes 


I read that post before I post my question, that workaround can't resolve my issue, as I'm using a custom connector and can't enable the built-in pagination, the maximum top count of my customer connector is 1000 and the total count may have 100 thousand.

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,780)