web
You’re offline. This is a read only version of the page.
close
Skip to main content
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

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:
I have the same question (0)
  • v-litu-msft Profile Picture
    on at
    Re: Type 'Integer'. The result must be a valid array

    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
    on at
    Re: Type 'Integer'. The result must be a valid array

    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
    on at
    Re: Type 'Integer'. The result must be a valid array

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard