web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details
Power Apps - Building Power Apps
Answered

First Submit on Submit Form Does Not Work

Like (1) ShareShare
ReportReport
Posted on 7 Aug 2017 14:26:07 by

My app will not allow users to submit a change on the first try.

 

For example, if my users try to edit a form, then click submit, no changes will be saved. But if the same user attempts the same edit a second time, the changes will successfully go through. Any subsequent changes made after the initial attempt will work successfully actually. 

 

This error is for all entities connected to this app. As in, no matter which entity the user tries to edit first, it will not submit properly. BUT if a user attempts to edit one entity and then goes to edit a different entity, the second entity will submit properly without issue. For some reason, only the very first edit done in the application will not submit.

 

For each submit I have a button where OnPress = 

Patch(Person, PersonEdit,{

    Name:DataCardValue_PersonEdit_ContactInfo_Name.Text,
    Family_Role: DataCardValue_PersonEdit_ContactInfo_FamilyRole.Selected.Value},
    {Work_Email: DataCardValue_PersonEdit_ContactInfo_WorkEmail.Text,
    Work_Phone: DataCardValue_PersonEdit_ContactInfo_WorkPhone.Text,
    Personal_Email: DataCardValue_PersonEdit_ContactInfo_PersonalEmail.Text,
    US_Mobile_Phone: DataCardValue_PersonEdit_ContactInfo_USMobilePhone.Text,
    Skype: DataCardValue_PersonEdit_ContactInfo_Skype.Text,
    Overseas_Phone: DataCardValue_PersonEdit_ContactInfo_OverseasPhone.Text,
    Vsee: DataCardValue_PersonEdit_ContactInfo_Vsee.Text
});
Refresh(Person);
Navigate('Person - List - Edited Person', None, {PersonList: PersonEdit})

 

In the above example, PersonEdit is a context variable that is equal to a gallery item.

 

All of my forms (except for New Form) use the patch function. I haven't had issues with this until recently. I honestly don't think it's an error that I've created - I've had many issues before where Microsoft just needed to go in and manually fix it. I think this may be another case because I have other apps that do not contain this same issue. 

Any help here would be great. Thanks.

 

  • Verified answer
    Community Power Platform Member Profile Picture
    on 09 Aug 2017 at 13:40:08
    Re: First Submit on Submit Form Does Not Work

    @Meneghino,

    I'm not sure if this will help with your case, but I switched all of my data to be stored in a collection and that seemed to fix whatever issue I was having. Just did a simple OnVisible = ClearCollect(NewTableName, DataSource) and then still used the patch function to update my data. Works like a charm.

    Hopefully that will help you somewhat. Having an app out for a few weeks doesn't seem like fun. Best of luck!

Helpful resources

Quick Links

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete