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 / This formula has side ...
Power Apps
Unanswered

This formula has side effects and cannot be evaluated

(0) ShareShare
ReportReport
Posted on by 10

Dear all,

 

I'm trying to create a global variable with the simple "Set(TimerStart,true)" put in OnStart of the apps.

However, it returns the result of "This formula has side effects and cannot be evaluated".

 

Any idea what I did wrongly?

Appreciate your help.

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    Show a screen shot of your formula

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

    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.

  • DangDang Profile Picture
    10 on at

    Please refer the formula as below:

     

    Capture.PNG

  • eka24 Profile Picture
    20,925 on at

    Your code if ok. Have you tested for instance TimerStart in a label?

    I don have the message

    Onstart.JPG

     

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

    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.

  • DangDang Profile Picture
    10 on at

    Hi @eka24 ,

    Yes, I've tried with the label, it shows value as "False" ...

  • eka24 Profile Picture
    20,925 on at

    Interesting. Please restart the App and also try same code on Onselect of a button.  Remember to remove the code from OnStart before you try on Onselect

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

    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

  • DangDang Profile Picture
    10 on at

    Yeah, I forgot to mention that I've tried many of my code in the Timer and OnSelect button, they work just fine.

    Function that I've tried: Set(), Collect(), ClearCollect().

     

    All gets the "side effect" issue when I put them into OnStart, OnNew, OnView, OnEdit

    This is somehow become a very strange "bug" to me ...

  • timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    Hi @DangDang 

    To confirm that this isn't a glitch in the designer, can you try renaming TimerStart to something else, and then rename it back again to see that makes a difference?

    https://powerusers.microsoft.com/t5/Building-Power-Apps/This-formula-has-side-effects-and-cannot-be-evaluated/td-p/403583

     

  • DangDang Profile Picture
    10 on at

    Hi @timl,
    I've tried to use many names, even with the dummy names which I'm sure it cannot be the same with any of default variable. I've even erased the app and create new, but issue still remain in the new app. 

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard