cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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?

4 REPLIES 4
Highlighted
Super User II
Super User II

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.

Cheers
Manuel

Highlighted
Resident Rockstar
Resident Rockstar
Highlighted

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.

Highlighted

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

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Kudoed Authors
Users online (9,755)