cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RandolphNorth
Advocate I
Advocate I

The Function 'Collect' has some invalid arguments

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?

 

 

 

3 REPLIES 3
mdevaney
Super User
Super User

@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."

Michael_Scott
Regular Visitor

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.

RandolphNorth
Advocate I
Advocate I

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

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (913)