cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Titiwai
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
yashag2255
Dual Super User II
Dual Super User II

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
yashag2255
Dual Super User II
Dual Super User II

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

v-yutliu-msft
Community Support
Community Support

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.

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.

yashag2255
Dual Super User II
Dual Super User II

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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (47,585)