Hello,
I have a simple list in SharePoint and designed new form in PowerApps; I have a field, "Codice Fiscale" that I set hidden, and I want to show only when the value in the field type is equal to "104" and also only for particular users.

For this, I set for CodiceFiscale_DataCard_1 the property "Visible" to false and then, in the advanced properties I set "Visible" with the formula
If((CurrentUser.Email = "xyz@mytenant.com" && DataCardValue1_1.Selected.Value = "104") || (CurrentUser.Email = "abc@mytenant.com" && DataCardValue1_1.Selected.Value = "104");true; false)
In the button "Salva" I set th OnSelect with
SubmitForm(SharePointFormNew)
with SharePointFormNew is my form; when I test it (and also execute inside my SP list) I have this error:

The translation is something like: "Network error during the use of Patch function: the requested operation is not valid".
I noticed that some times it works, as in the error, some times I have no error, like you can see in this image of the inspector:

I don't know if it depends on value on cache in the environment or something similar, or something related to visible property.
Another example, now for the error; I have chosen the type that is not "104", say "Ferie" and clicked on "Salva" button, no error, then choose "104" and clicked on "Salva" and I have the error, like in the inspector image:

Any help is appreciated.
Marco Mangiante