cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Purbasha
Microsoft
Microsoft

App OnStart not executing ClearCollect

I am using multiple ClearCollect statements in App OnStart event. I am using monitor to verify if the statements are getting executed.

The code goes like this:

ClearCollect(col1, Table());

ClearCollect(col2,....)

ClerCollectCol(col3,...);

 

Through monitor window I see that ClearCollect gets executed for col2 & col3 but not col1. There are no traces of statement#1 in the monitor logs. How can we check what is going wrong? Any error logs?

1 ACCEPTED SOLUTION

Accepted Solutions
Purbasha
Microsoft
Microsoft

This issue has been resolved now.

The problem was, we had added a new option to an existing option set and the value was not continuous (n+1), hence the ClearCollect function was breaking while loading all the values from the option set.

 

Access to runtime errors would have been really helpful.

 

 

View solution in original post

3 REPLIES 3
eka24
Super User III
Super User III

Replace Table() with the actual name of your Table or CollectioName
 ClearCollect(col1, Datasource)

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

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.

Purbasha
Microsoft
Microsoft

We are not using any datasource . We are using table function because we are creating a table there. 

Purbasha
Microsoft
Microsoft

This issue has been resolved now.

The problem was, we had added a new option to an existing option set and the value was not continuous (n+1), hence the ClearCollect function was breaking while loading all the values from the option set.

 

Access to runtime errors would have been really helpful.

 

 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

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 the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (88,779)