cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
swebb111
Helper I
Helper I

Error message when trying to convert string to array

Hello everyone, 

 

Here is the error I am getting:
The variable 'ListItems' has size of more than '104929364' bytes. This exceeded the maximum size '104857600' allowed.

I'm trying to pass data I gather from a SharePoint Document Library in to a String Variable then pass that in to an Array. The ending result should be an email with all the items in the array sent to a representative within my org. 


If anyone has any experience with this, your assistance would be greatly appreciated. Let me know what additional information you need to help me resolve this. Thanks!

4 REPLIES 4
ScottShearer
Super User
Super User

@swebb111 

Can you post a screen shot of your Flow?

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

Scott

@ScottShearer Hope this helps. If you need additional information, please let me know. 

Flow Error 1.pngFlow Error 2.png

ScottShearer
Super User
Super User

@swebb111 

While I can't find it in the documentation, there does appear to be a maximum size limit for array variable and you hit it.

Can you explain what you are doing with your Flow (hard to tell since the actions are not expanded)?  Maybe there is another way to approach your requirement.

 

 

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

Scott

Yeah, so basically I'm trying to send an email to notify stake holders in my environment of documents that need review on SharePoint. The flow is supposed to crawl the doc library, find the docs that need review, list those docs, and send the email. The original issue was the formatting was wonky, and everything was just in one big long line, no separation of names etc. I tried using the Create HTML Table, but the variable needed to be converted from string to array. I'll walk through the current flow:

Recurrence - Schedule for when to run the flow

Init ListItems - initialize string variable ListItems

Get Files - crawl the doc library to find all items that need review

Apply to each - Assign value to each item found and append to string variable

Compose 2 - Split variable listitems w/ a comma

Set Variable - I believe this is where it turns it in to an array from Compose 2 output

Send an email - sends the email

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (4,188)