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

Announcements

News and Announcements icon
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 Microsoft Employee

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
    Microsoft Employee 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 387

#2
timl Profile Picture

timl 340 Super User 2026 Season 1

#3
Vish WR Profile Picture

Vish WR 301

Last 30 days Overall leaderboard