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 / Collect() and ClearCol...
Power Apps
Answered

Collect() and ClearCollect(): name isn't valid

(0) ShareShare
ReportReport
Posted on by 39

I am currently facing issues with the use of Collect() and ClearCollect(). I always get the error message that the name of the collection isn't valid.

 

This happens in different apps and for different users (me and my colleague). Syntax errors are not the cause for this (it even happens on empty screens).

 

I do not have a problem if i use Collect() or ClearCollect() for collections that have been used earlier (in previous versions of the apps). It looks like it is a technical bug to register new collections, while existing collections can be used.

 

This topic describes the exactly same problem, without a solution:

https://powerusers.microsoft.com/t5/Building-Power-Apps/Collection-creation-error-name-isn-t-valid/td-p/667463

 

PowerApps Release: 3.23033.15

 

Is there currently a known bug regarding registering new collections?

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    Hi @FraJuDee ,

    You will always get that as an error if the collection has not been done before until you finish the code with valid syntax.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard