Skip to main content
Community site session details

Community site session details

Session Id : ZhWnGEfmOHShqV5WSaFTVy
Power Apps - Building Power Apps
Unanswered

Errors on Collect

Like (0) ShareShare
ReportReport
Posted on 5 Jun 2020 15:41:40 by 14

I am very new to Power Apps, and I am having an issue with creating a collection.  My code is below, but I cannot figure out why I keep receiving errors on it.  For FlowResponses, I am receiving the error 'Name isn't valid.  This identifier isn't recognized.'  For the MECHANIC.run command, I am receiving the error 'Invocation of unknown or unsupported function.'  MECHANIC is the name of a flow I created.  

 

 

Clear(FlowResponses);
UpdateContext({resultMessage: "", submitWasClicked: true});
ForAll(
 Filter(
 PhotoLog,
 jobId = JobList.Selected.jobId
 ),
 Collect(
 FlowResponses,
 {
 response: MECHANIC.Run(
 Image,
 FolderPath & type,
 name & "_" & Text(Now(), "[$-en-US]HHmmss") & ".png")
 )
 }
 )
);

 

 

I have no idea what I am doing wrong , and I hope that I have given enough information.  Thank you in advance for any help that can be given.

  • WarrenBelz Profile Picture
    148,825 Most Valuable Professional on 26 Jun 2020 at 04:04:53
    Re: Errors on Collect

    Hi @Skeeve ,

    I am following up this post to see if it can be closed if you obtained the result you were looking for.

    Please click Accept as solution if my post helped you solve your issue as this will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    148,825 Most Valuable Professional on 13 Jun 2020 at 10:45:29
    Re: Errors on Collect

    Hi @Skeeve ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    148,825 Most Valuable Professional on 11 Jun 2020 at 04:56:28
    Re: Errors on Collect

    Thanks @Skeeve ,

    Getting back to basics, put this on a button and see if the Flow runs - we will need to "build out" from there until the error is found

    MECHANIC.Run(
     Image,
     FolderPath & type,
     name & "_" & Text(Now(), "[$-en-US]HHmmss") & ".png")
    )
  • Skeeve Profile Picture
    14 on 10 Jun 2020 at 12:20:00
    Re: Errors on Collect

    The function Clear has some invalid arguments.

    FlowResponses name isn't recognized.

    The function ForAll has some invalid arguments.

    The function Collect has some invalid arguments.

    Mechanic.run is getting invocation of unknown or unsupported function.

     

     

    Capture.PNG

     

    Thank you for your help.

  • WarrenBelz Profile Picture
    148,825 Most Valuable Professional on 09 Jun 2020 at 21:57:54
    Re: Errors on Collect

    @Skeeve ,

    I need to see your entire code that has errors, not guess what you might have changed.

    Can you please post this with what is showing as an error and what the error is.

  • Skeeve Profile Picture
    14 on 09 Jun 2020 at 14:48:56
    Re: Errors on Collect

    The ForAll is in my original post.

     

    Thank you.

  • WarrenBelz Profile Picture
    148,825 Most Valuable Professional on 08 Jun 2020 at 20:58:08
    Re: Errors on Collect

    @Skeeve ,

    There is no ForAll in what I posted.

  • Skeeve Profile Picture
    14 on 08 Jun 2020 at 12:33:50
    Re: Errors on Collect

    Thank you.  After testing your solution, I am now getting the error, 'The function ForAll has some invalid arguments.'

  • WarrenBelz Profile Picture
    148,825 Most Valuable Professional on 05 Jun 2020 at 22:51:12
    Re: Errors on Collect

    Hi @Skeeve ,

    You cannot run commands inside the {} of a Collect or Patch (and a number of others) statement. 

    I can see what you are trying to do (collect responses from a Flow). You would normally do this one at a time with the Set command and capture the response as a Variable.
    I cannot test this, but as an experiment, try

    Collect(
     FlowResponses,
     MECHANIC.Run(
     Image,
     FolderPath & type,
     name & "_" & Text(Now(), "[$-en-US]HHmmss") & ".png")
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 1