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 III
Super User III

@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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (30,594)