cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper II
Helper II

Etag Mismatch With Patch & SubmitForm

I have came across below problem.

A form with both numeric (problem) and text fields(good)

When modify the numeric field say delete all and subimit form the change will not be reflected.

So I try to use Patch & IsBlank to update blank numeric fields to 0 and then SubmitForm.

But a second problem come with Etag Mismatch.

I can not just along use the patch function 1. due to large number of fields in the form 2. need to capture the content entered for text fields.

Is there any other method to update blank datacard value other than Patch?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

Re: Etag Mismatch With Patch & SubmitForm

Hi @Titiwai 

 

Can you try to enable the below setting in your application:
 
App Settings -> Advanced Settings -> Formula Level Error Management -> Turn this on.
 
This will let you patch blank values to the data source.
 
MicrosoftTeams-image (21).png
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

4 REPLIES 4
Highlighted
Dual Super User III
Dual Super User III

Re: Etag Mismatch With Patch & SubmitForm

Hi @Titiwai 

 

Can you try to enable the below setting in your application:
 
App Settings -> Advanced Settings -> Formula Level Error Management -> Turn this on.
 
This will let you patch blank values to the data source.
 
MicrosoftTeams-image (21).png
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

Highlighted
Community Support
Community Support

Re: Etag Mismatch With Patch & SubmitForm

Hi @Titiwai ,

I've made a similar test and met the same problem like your description.

The reason why you met this problem is that : " "  is a text type, while the field is a number type.

So I suggest you use If statement.

If the textinput is empty, then update value with 0.

I suggest you set every field that you want to update with empty value's Update:

If(!IsBlank(DataCardValue7.Text),Value(DataCardValue7.Text),0)

Please replace DataCardValue7 with its control's name.

Then, if you clear the data in the textinput, this field will update with "0".

 

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Helper II
Helper II

Re: Etag Mismatch With Patch & SubmitForm

Thank you. What is the odds this experimental feature would be kept?  I mean a bit worry about the risk of having to seek for alternatives six months down the track.

Highlighted
Dual Super User III
Dual Super User III

Re: Etag Mismatch With Patch & SubmitForm

Hey @Titiwai 

 

No need to worry about this. Due to consistency by default this setting is disabled. This will soon be out from the experimental feature. You can rely on it and move forward.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,523)