web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / ClearCollect not accep...
Power Apps
Unanswered

ClearCollect not accepting new collection

(0) ShareShare
ReportReport
Posted on by 13

Hi all, 

 

I'm new to Power Apps. I'm following a tutorial on YouTube > here <. Every time I get to the point where I need to add ClearCollect function to the OnStart property it won't accept the label that the tutorial is using. I'm not sure what I'm doing wrong. Any help would be greatly appreciated.

 

The following is the code from the tutorial:

OnStart fx= ClearCollect(colTabs,{ID:1,Name:"All Tickets",Logo:Icon.Tag})

 

These are the errors that come up:

  • Unexpected characters. The formula contains 'Error' where 'ParenClose' is expected.
  • Unexpected characters. Characters are used in the formula in an unexpected way.
  • Name isn't valid. 'colTabs' isn't recognized.
  • Invalid number of arguments: received 1, expected 2 or more.

 

Alternatively, is there another way to achieve the thing? 

Categories:
I have the same question (0)
  • Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @ChrisHardy 

     

    I have copied your code straight into an app and ran it with a button. All worked fine. I would suggest leaving the code as is, saving the app and refreshing the browser.

    AmDev_0-1690460991862.png

     

    Hope this helps

  • Verified answer
    ChrisHardy Profile Picture
    13 on at

    So I actually figured this out. It was a regional syntax issue. I swapped out the commas for semicolons and it worked perfectly! 

    Thank you for trying to assist!

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard