Skip to main content
Community site session details

Community site session details

Session Id : vdEUgp8VVXY1+UJ5rDyWEl
Power Apps - Building Power Apps
Unanswered

The Function 'Collect' has some invalid arguments

Like (0) ShareShare
ReportReport
Posted on 18 Mar 2021 21:40:28 by 32

Hey maybe someone will have some insight on here.

 

We are currently getting this error in our PowerApps design portal. 

"The Function 'Collect' has some invalid arguments"  I have attached an image...any thoughts?

 

 

 

  • RandolphNorth Profile Picture
    32 on 05 Apr 2021 at 22:49:00
    Re: The Function 'Collect' has some invalid arguments

    Sorry for the delayed response, but i am no longer getting that first error...this is what i am getting now.

     

    Sorry for the delayed response. But i am no longer getting that error....now this is what i am getting in the image attachedSorry for the delayed response. But i am no longer getting that error....now this is what i am getting in the image attached

  • Michael_Scott Profile Picture
    106 on 18 Mar 2021 at 22:39:58
    Re: The Function 'Collect' has some invalid arguments

    Try using:

    Collect(Collection1, {currForm: SharePointForm1.Current})

     

    This will add to the list where as if you only ever want to have a single entry you could use ClearCollect instead. Making it an object like that might fix what @mdevaney was talking about.

  • mdevaney Profile Picture
    29,987 Moderator on 18 Mar 2021 at 22:34:51
    Re: The Function 'Collect' has some invalid arguments

    @RandolphNorth 
    SharePointForm1.Current is not a table.  ClearCollect only accepts a Table as an argument in the 2nd position.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete