Skip to main content

Notifications

Community site session details

Community site session details

Session Id : PlOJFKW4ffstknylLJvGqX
Power Apps - Building Power Apps
Answered

Divide By Zero

Like (0) ShareShare
ReportReport
Posted on 19 Jan 2022 06:11:07 by 203

Hi everyone,

 

I had some divide by zero errors in my app, which I fixed using the IfError function.  When I check for errors in the App Checker, I don't have any left.  However, when I run or start or launch the Application, I'm still getting the error at start up.  Any ideas how I can find where the supposed error is??

Also, for information, when I was fixing the errors, I had an issue with one of the labels that stored the function - it kept telling me that there was a divide by zero error, even when I deleted the function in the text field.  The only way to get rid of it was to delete the label itself and re-add it and then it worked fine!

Steph

  • StephCORKING Profile Picture
    203 on 19 Jan 2022 at 08:45:26
    Re: Divide By Zero

    Hi @gabibalaban 

    So, I went through the OnStart property and tried running the content in blocks to see where the error happens.  I think it's due to some ClearCollect items that were running concurrently but not related to the error that was returned!

  • StephCORKING Profile Picture
    203 on 19 Jan 2022 at 06:25:00
    Re: Divide By Zero

    Hi @gabibalaban 

    I don't have anything in the OnStart property that would cause this - I only have some collections from Sharepoint and the setup of the user. I also verified the Launch page to make sure that the items there have the IfError function.

  • Verified answer
    CU-18081211-6 Profile Picture
    9,266 Super User 2025 Season 1 on 19 Jan 2022 at 06:21:22
    Re: Divide By Zero

    @StephCORKING ,

    Is there any possibility to have some code in OnStart property of the app ?

    The error is a runtime error, not a syntax one and it will be visible, I’m afraid, as long as the current session exists or you navigate in play mode from another screen to the one with the problem (after you repair the error).

    Hope it helps !

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 83 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 49

#3
mmbr1606 Profile Picture

mmbr1606 41 Super User 2025 Season 1

Overall leaderboard
Loading started