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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,441)