Applies to Product - Power Apps
What’s happening?
Customers are experiencing issues with the OnStart property in PowerApps, where the app's OnStart code is not functioning as expected, leading to performance problems and unexpected behaviors.
Reason:
This are often caused by complex functionalities being implemented in the OnStart event of a canvas app, which can lead to performance degradation and unexpected behaviors. Additionally, errors in the formula can arise from incorrect syntax or formatting.
Resolution:
- For users experiencing issues with the OnStart property, it is recommended to simplify the functionalities within the OnStart event. Moving complex code to different events can help resolve performance issues.
- If an error message such as "Unexpected characters. The formula contains 'PowerFxResolvedObject' where 'Ident' is expected" appears, it indicates that there are syntax errors in the formula. In such cases, it is advisable to send the problematic code to a code inspection tool for suggestions on modifications.
- Users should refer to best practices for managing large apps in PowerApps, which can be found at the following link: Best Practices for Canvas Apps.
- Implement robust error handling using IfError functions and ensure consistent naming conventions for screens, controls, and data sources to improve maintainability and readability of the app.
- For tracking errors, users can open the monitor log to reproduce error reports and investigate further.
