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 / OnSuccess intermittent...
Power Apps
Unanswered

OnSuccess intermittently not running after FormSubmit

(0) ShareShare
ReportReport
Posted on by 37

Any ideas as to why an OnSuccess would not run following a succesful FormSubmit? When running the application in the debug/montior mode, I can see that the SharePoint list is correctly udpated from the application, however the OnSuccess commands never run.

 

The OnSuccess does not get called in approximately 1 in 30 attempts.

 

For information, the OnSuccess simply sets a variable so that a message is displayed to the users, and then completes a Patch() to the SharePoint list to update an additional column.

Categories:
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @TPLEWIS

    Please post the text of your buttons OnSelect property that includes SubmitForm() 

  • TPLEWIS Profile Picture
    37 on at

    The form can be submitted in two different ways, if a dropdown in the form is changed to a specific value or on the select of a submit button

     

    First Method:

    OnChange:

    If(
         Not(DataCardValue44.Selected.Value = ThisItem.Status.Value),
         Set(
               varReset,
               true
         );
         Set(
              varStatusUpdated,
              true
         );
         Set(
              varEnableUpdate,
              true
         );
         If(
             DataCardValue44.Selected.Value = "Available" || DataCardValue44.Selected.Value = "Away Available" || DataCardValue44.Selected.Value = "Out for the Day",
            SubmitForm(Form5)
    )
    );

     

     

    Second Method:

    On button select:

    SubmitForm(Form5);
    If(
    Or(
    DataCardValue44.Selected.Value = "Lunch",
    DataCardValue44.Selected.Value = "Away Not Available",
    DataCardValue44.Selected.Value = "Out"
    ) && IsBlank(DataCardValue2.Text),
    Set(
    varReset,
    true
    ),
    Set(
    varReset,
    false
    )
    );

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 432 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 347

#3
WarrenBelz Profile Picture

WarrenBelz 254 Most Valuable Professional

Last 30 days Overall leaderboard