cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
pcakhilnadh
Helper IV
Helper IV

Strange Collection Behaviour in PowerApp !!

I'm getting strange error with PowerApp collection.

 

Issue

  • In some screen I am collecting a sharepoint (WorkTime) data into a collection called myCol.

 

 

ClearCollect(
    myCol,
    ShowColumns(
        Filter(
            WorkTime,
            UserID.Value = Text(sessionUser.ID)
        ),
        "ID",
        "work_time",
        "UserID"
    )
);

 

 

  • Im getting error invalid type sometimes. Sometime this itself doesnt load. But on edit if I change the collection name from "myCol" to "myCol2" it is working fine. but if I again save and refresh it is not working.

Questions

  1. What is the reason for this strange behaviour?
  2. How to resolve this issue? 
  3. How many collections can be defined onstart / Onvisible of the screen?
2 REPLIES 2
eka24
Super User
Super User

Do you have multiple collections named "myCol" ?

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Please Subscribe to my Youtube Channel

 

@eka24 Yes.

But everywhere I have the same formula. I'm collecting the same SP List and same ShowColumns. 

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (1,905)