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
Super User

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,198)