cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
karl
Level: Powered On

Re: Server Response ETAG mismatch (Conflicts exist with changes on the server, please reload)

Fixed the problem!

 

I inserted the Refresh(DataSource) Function before the final patch.

 

On "Yes" Button:

 

UpdateContext({ showLoader: true});
Refresh(LeaveForm); I added this.
Patch(LeaveForm , LeaveDataSourceSelected,
{
LeaveTypeList: NewLeaveTypeList,
Approver: EditRequestItem.Approver,

});

 

On "Save" Button:

 

UpdateIf(LeaveRequestSelectedCollect ,LeaveTypeList <> EditLeaveTypeGallery.Selected.type, {LeaveTypeList:EditLeaveTypeGallery.Selected.type});

 

Instead of using Patch on the "Save Button" I used UpdateIf Function.

 

After changing the codes. Save and close your application and Open it again.

 

Cheers

MiraGhaly
Level: Powered On

Re: Server Response ETAG mismatch (Conflicts exist with changes on the server, please reload)

Hello,

 

I am facing the same issue and i tried refreshing the data source before patch and it is not working:

I am actually doing bulk update:

 

ForAll(

processedLineItems,

Patch(

'Supplier Invoice Data',

LookUp('Supplier Invoice Data', ID = processedLineItems[@ID]),

{Status:{'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference", Value: "Portal Upload"},DataReadyForUpload:true,Portal_x0020_Reference:Concatenate("Portal Reference _",Text(Now()),"_Submit")}

)

)

ِAlso i am doing Individual Updates on Items in a gallery:

Patch('Supplier Invoice Data',ThisItem,{To:ToDate.SelectedDate})

karl
Level: Powered On

Re: Server Response ETAG mismatch (Conflicts exist with changes on the server, please reload)

Hi,

 

Have you tried using UpdateIf Function?
On the screen property OnVisible,

Set(ProcessedLineItemsIDprocessedLineItems[@ID]))

 

ForAll(

processedLineItems,

UpdateIf(

'Supplier Invoice Data', ID = ProcessedLineItemsID,

{Status:{'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference", Value: "Portal Upload"},DataReadyForUpload:true,Portal_x0020_Reference:Concatenate("Portal Reference _",Text(Now()),"_Submit")}

)

Highlighted
luuminhvuong93
Level: Powered On

Re: Server Response ETAG mismatch (Conflicts exist with changes on the server, please reload)

Adding the Refresh Button make the app run longer for about 10 seconds Smiley Sad not ideally

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 523 members 5,189 guests
Please welcome our newest community members: