cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Collection and Sharepoint List show different data in datatable after clearcollect

 

I have a Powerapp with a data table but noticed that some data was missing. The data table uses a collection as the source (Item 1 in the image). However when I refreshed the collection using the "ClearCollect" function (ClearCollect(intakeCollection,'Intake to Savings'), some data in the collection disappears (Item 2 in the image - Notice how ID 5093 is missing). The data in the collection is refreshed using the data from a SharePoint list. Any help would be greatly appreciated.

 

SPL_vs_Collect.jpg

 

2 REPLIES 2
Highlighted
Super User III
Super User III

Re: Collection and Sharepoint List show different data in datatable after clearcollect

@abcrandy 

You might need to REFRESH the datasource immediately before the ClearCollect.

Refresh('Intake to Savings');
ClearCollect(intakeCollection,'Intake to Savings')

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Frequent Visitor

Re: Collection and Sharepoint List show different data in datatable after clearcollect

@mdevaney  I tried the refresh before the clearcollect with no success. I have a feeling that the SharePoint list data is cached and when the Collection gets refreshed its getting refreshed with the outdated/cached SharePoint list.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (7,909)