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 / Anyone seem to have pa...
Power Apps
Unanswered

Anyone seem to have part of code not executed because of comments

(0) ShareShare
ReportReport
Posted on by 38

Anyone seem to have situtations where part of your code is not executing because of comment lines. I'm not talking about code commented out, I'm talking about code after lines of comments. It's really frustrating and I have proven there's an issue by removing the commented lines. Does anyone at Microsoft test this stuff????

Categories:
  • seadude Profile Picture
    1,855 on at

    Paste your ENTIRE example code here so we can see what you are facing.

  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    I haven't seen this issue with the comments I have used in my formulas but I don't use it as much as I should. Can you reproduce this issue and if so, can you provide an example?

  • DevelopAlways Profile Picture
    38 on at

    In the code below, the single line with a call to a flow didn't work. The code before it did and the code after it exectued. How do I know? Because in the SQL database, the first set of code made the necessary changes, the code after mode the necessary changes, but the FLow execution history on flow.microsoft.com showed no execution. When I removed all comments, everythin worked. Go figure. Yet another frustrating half a day lost to PowerApps quirks. And no, I don't have time to have Microsoft log into my computer to verify it.

     

    If(
    First(G_ExceptionTable).Status = "Rejected",
    UpdateIf(
    '[dbo].[GASPExceptionApproval]',
    FK_Exception = gblExceptionId And Rejected,
    {Resolved: true}
    )
    );

    // Run flow for updatinf exception
    'GASPSQLProc-UpdateExceptionStatus'.Run(gblExceptionId,"In SDL",Now());

    // Create associated exception trail record
    Patch(
    '[dbo].[GASPExceptionTrail]',
    Defaults('[dbo].[GASPExceptionTrail]'),
    {
    FK_Exception: gblExceptionId,
    ChangeDate: Now(),
    Message: "Exception " & If(First(G_ExceptionTable).Status="Open","submitted", "re-submitted") & " (Status: 'In SDL') on " & Now()
    }
    );

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 271

#3
Mohsin Ali Profile Picture

Mohsin Ali 223

Last 30 days Overall leaderboard