Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Network error when using Patch function: Conflicts exist with changes on the server, please reload

(0) ShareShare
ReportReport
Posted on by 909 Super User 2024 Season 1

Hi,

 

I am getting the error on my patch - 

 

Patch('data source',
{ID: gblRecordID},
{'Date Change Made': Today() }
);

 

How can I fix this?

  • Ami K Profile Picture
    15,665 Super User 2024 Season 1 on at
    Re: Network error when using Patch function: Conflicts exist with changes on the server, please reload

    @wonka1234 - avoid "chaining" the Patch and Submit Form functions together.

     

    The Patch statement should be moved on the OnSuccess property of the Form. You can also update the global variable at the same time with:

     

    Set(gblRecordID,
    Patch('data source',
    {ID: gblRecordID},
    {'Date Change Made': Today() }
    ));
  • wonka1234 Profile Picture
    909 Super User 2024 Season 1 on at
    Re: Network error when using Patch function: Conflicts exist with changes on the server, please reload

    @Amik 

     

    So onselect of a button i do this - 

     

    Patch('data source',
    {ID: gblRecordID},
    {'Date Change Made': Today() }
    );

    SubmitForm(EditForm1_1),

     

    But submit form also does submit this field Date Change Made.

     

    So should i just comment out the Update on this datacard and let the patch do the work?

     

  • Ami K Profile Picture
    15,665 Super User 2024 Season 1 on at
    Re: Network error when using Patch function: Conflicts exist with changes on the server, please reload

    @wonka1234 - typically this is caused when a change is being made to the same record from two different operations. For example running a Flow prior to the Patch, or submitting different Forms which are corrected to the same list etc.

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!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,695 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard