web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Power Apps (New Analys...
Power Apps
Suggested Answer

Power Apps (New Analysis Engine) not processing complex OnStart logic correctly

(0) ShareShare
ReportReport
Posted on by 26

 

After enabling the New Analysis Engine in a Canvas App, a complex logic stopped behaving consistently between Editor (Studio) mode and Published mode.

Originally, all logic was implemented in OnStart. For better control and testing, I moved this logic to a button on the first screen.

Important: the variables and collections originally initialized in OnStart are used throughout the entire app (across multiple screens and components), being a core part of the application’s behavior. Additionally, this is a highly complex app with a large number of rules and data dependencies.

 

⚙️ Current behavior

In the Published app:

  • Clicking the button executes all logic correctly
  • Collections are populated as expected

  •  

In Power Apps Editor (Studio):

  • Clicking the same button causes the app to enter an infinite loading state

  • It becomes impossible to interact with the interface (no options can be clicked)

  • A browser refresh is required to use the app again


🔍 Expected behavior

  • Consistent execution in both Editor and Published app

  • All collections properly populated


📎 Additional notes

  • The issue started after enabling the New Analysis Engine

  • The same logic worked correctly before

  • The behavior suggests a possible inconsistency in the engine execution


❓ Question

Is there any additional setting that must be enabled along with the New Analysis Engine to ensure the Editor correctly processes complex logic?

I have the same question (0)
  • Suggested answer
    rborghmans Profile Picture
    17 on at
    Based on what I read this seems to be a "known issue".  There is no additional setting that you need to set.  
    If you keep it in your onstart it will keep working.  By moving the steps to a button is the reason why your app "freezes", because these variables keep on recalculating and that is causing the app to freeze.
  • CU18032004-0 Profile Picture
    26 on at
    @rborghmans 

    Thanks for the insight!

    Just to clarify: the code was originally in OnStart. To be able to edit the app using the New Analysis Engine, I opened it with the flag canvasDesignerFlags=SkipSendingDataRequests in the URL, so it wouldn’t trigger data source calls.

    Because of that, I temporarily moved the OnStart logic to a button to prevent it from running automatically.

    As mentioned, when pressing the button, the same infinite loading behavior that happens in OnStart is replicated. In the published version, the app continues to work normally — the infinite loading only occurs while editing the app.

    This is a fairly complex app, and we’re already taking steps to simplify and optimize it. The issue started after Microsoft enforced the use of the New Analysis Engine this year for apps using modern controls, which led us to this workaround.

    Appreciate your help!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 424

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
11manish Profile Picture

11manish 290

Last 30 days Overall leaderboard