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 / Collection creation er...
Power Apps
Unanswered

Collection creation error - name isn't valid

(0) ShareShare
ReportReport
Posted on by

This just started late last week.  This app already has two other collections in it that were created without issue earlier but now when I go to create a new one (via Collect or ClearCollect) I get this 'name not valid' error.

 

collectionnamenotvalid.png

 

Any ideas or suggestions to fix this?  The only other similar thing I could find out there the user basically said it magically fixed itself after some amount of time.

 

Thanks, Ed

Categories:
I have the same question (0)
  • KrishnaV Profile Picture
    5,023 on at

    Hi @Anonymous ,

     

    try this:

    ClearCollect(text123,{abc:""})

    ClearCollect expects the column names and values (at least one) see the below article for more details and syntax:
    https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-clear-collect-clearcollect

     

  • Community Power Platform Member Profile Picture
    on at

    @KrishnaV thanks, I was aware of the syntax requirements but didn't recall it throwing an error so early previously so that was throwing me off a bit.  Plus I was trying to use the LookUp function to grab an item from a SP list (not shown in my screenshot) and finally realized in that scenario you leave out the { } brackets - did that and all the errors went away.  Sometimes it's the simple stuff that get you, haha! 😣

  • KrishnaV Profile Picture
    5,023 on at

    Hi @Anonymous ,

     

    Not necessarily that, clearcollect always expect either the columns and its values or the dataset directly as below:
    clearcollect(colABC,Filter(SPList,ID>10))

    In the above statement, I have not {} but this works smoothly because I am passing a dataset directly.

  • aryanmerc Profile Picture
    9 on at

    aryanmerc_1-1677166579310.png

    I'm Also using a filter but here name is invalid

    What shall i do?

  • aryanmerc Profile Picture
    9 on at

    The solution is that i was missing a bracket,

    but can anyone tell me how to delete a reply here

     

  • pramodh18 Profile Picture
    3 on at

    pramodh18_0-1677515156479.png

    I dont know why it is showing error. It says Name isn't valid. TasksCreate isn't recognized. pls help

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard