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 stopped working
Power Apps
Answered

Collect stopped working

(1) ShareShare
ReportReport
Posted on by 122

Hello,

 

 I'm facing issue with collect. It stopped working today in version 3.18083.31, nothing has been changed in the app.

 

In my case it is collection, that should be created when you click button in gallery

Collect(ShPItem;ThisItem)

Collection is not created and error is invalid name...well it does not exist, but should be created in accordance to previous functionality and function refference.

 

Was there any change in the behavior?  

 

  

Categories:
I have the same question (0)
  • JRaasumaa Profile Picture
    1,325 on at

    @TomasZubov wrote:

    Hello,

     

     I'm facing issue with collect. It stopped working today in version 3.18083.31, nothing has been changed in the app.

     

    In my case it is collection, that should be created when you click button in gallery

    Collect(ShPItem;ThisItem)

    Collection is not created and error is invalid name...well it does not exist, but should be created in accordance to previous functionality and function refference.

     

    Was there any change in the behavior?  

     

      


     

    Keep in mind using just Collect creates/adds to the existing collection. Do you have a ClearCollect anywhere that "sets up" the collection with the right fields/columns?

     

    I've found that without a clear collect anywhere there's a chance the collection has a list of fields/columns that may differ and cause errors.

  • Verified answer
    TomasZubov Profile Picture
    122 on at

    Hi,

     

    Thank you, but my problem is not collection content (values and/or columns). Problem is that simple "collect(NonexistingCollection;Values)" does not create the collection. As far as I know, result of this function should be new collection named "NonexistingCollection" with values.

     

    To your question, there is clearcollect onvisible of the screen with the button that should create the collection.

     

     

  • Verified answer
    TomasZubov Profile Picture
    122 on at

    Issue is gone, not sure whether it was fixed or what was the problem...

  • JRaasumaa Profile Picture
    1,325 on at

    @TomasZubov wrote:

    Hi,

     

    Thank you, but my problem is not collection content (values and/or columns). Problem is that simple "collect(NonexistingCollection;Values)" does not create the collection. As far as I know, result of this function should be new collection named "NonexistingCollection" with values.

     

    To your question, there is clearcollect onvisible of the screen with the button that should create the collection.

     

     


     

    Perfect, that's the type of issue I've come across many times and our best practice is the same as yours, a ClearCollect in the OnVisible of the page if necessary.

     

    Thanks for follow-up, I'll mark as resolved.

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 342 Most Valuable Professional

#2
11manish Profile Picture

11manish 234

#3
Valantis Profile Picture

Valantis 187

Last 30 days Overall leaderboard