web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Type 'Integer'. The re...
Power Automate
Unanswered

Type 'Integer'. The result must be a valid array

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Greetings,

 

I have developed a simple workflow reading a Form, then creating a named folder, it is returning an interger, but expecting an array.   Unable to insert an image of the error or workflow??

 

The error:

 

The execution of template action Apply_to_each failed: the result of the evaluation of 'foreach' expression @variables('varFolders') is of type 'Integer'. The result must be a valid array.

 

 

I changed the type from integer to string, still getting an error?

 

The variable 'varFolders' of type 'String' cannot be initialized or updated with value '57' of type 'Integer'. The variable 'varFolders' only supports values of types 'String'.

 

 

The aim is to use the variable of ID, to create a unique naming/number for the folders.

I would appreciate any assistance.

 

 

 

 

 

 

 

 

Categories:
  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    You could click the "Camera" button to insert image when you post.

    Screenshot 2020-11-03 092337.jpg

     

    The Apply to each input only accept an array, or it will report error.

    Schema reference for trigger and action types - Azure Logic Apps | Microsoft Docs

     

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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Think it is a bug as I often get an empty box??   

    Even if I put the path in, doesn't get inserted

     

    picture.png

     

  • v-litu-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous,

     

    Before inserting the image, you should sign in the PowerAutomate community:

    Screenshot 2020-11-03 174133.jpg

     

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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 425

#2
11manish Profile Picture

11manish 323 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 274

Last 30 days Overall leaderboard