Hi! I have an app in which people input result for different metrics. For some reason when I'm trying it out it works perfectly, saving the results. And then out of nowhere it stops working and I get this error message on the SubmitForm: "network error when using patch function the requested operation is invalid".
I;m literally not changing anything nor doing anything differently. I'm trying with the exact same metrics.
This is what I have for the OnSuccess property of the form I'm trying to submit:
With(
{ wMetricResult: If(
Metrics_Gallery.Selected.'Metric Format' = "Min", TimeValue(MetricResult_3.Text), Value(MetricResult_3.Text)),
wMetricThreshold: If(
Metrics_Gallery.Selected.'Metric Format' = "Min", TimeValue(Metrics_Gallery.Selected.Threshold), Value(Metrics_Gallery.Selected.Threshold) ) },
Patch(SMCR_1, Metrics_Gallery.Selected,
{ Status: "Updated",
Fail: If(
Metrics_Gallery.Selected.'Goal type' = "Less than" && wMetricResult <= wMetricThreshold || Metrics_Gallery.Selected.'Goal type' = "More than" && wMetricResult >= wMetricThreshold || Metrics_Gallery.Selected.'Goal type' = "Equal to" && wMetricResult = wMetricThreshold, "Pass", "Fail" ) } ) )
;
Navigate('Home page V2', ScreenTransition.None)

Report
All responses (
Answers (