Hi @Anonymous ,
Based on the error message that you mentioned, it seems to tell that you have faced a Conflict error within PowerApps. The Conflict error occurs when multiple users are editing same record within a data source.
Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned. Please consider modify your formula as below:
Refresh('Exec Update_3');
If(
tog_OpenClosed.Value=true,
Patch(
'Exec Update_3',
LookUp('Exec Update_3', ID = gal_ExecUpdate.Selected.ID),
{
EU_Status: {
ID: gal_ExecUpdate.Selected.ID,
Value: "Open"
}
}
),
Patch(
'Exec Update_3',
LookUp('Exec Update_3', ID = gal_ExecUpdate.Selected.ID),
{
EU_Status:{
ID: gal_ExecUpdate.Selected.ID,
Value: "Closed"
}
}
)
)
In addition, you could also consider use UpdateIf function to update your Choice field instead of Patch function, please modify above formula as below:
Refresh('Exec Update_3');
If(
tog_OpenClosed.Value = true,
UpdateIf(
'Exec Update_3',
ID = gal_ExecUpdate.Selected.ID,
{
EU_Status: {
ID: gal_ExecUpdate.Selected.ID,
Value: "Open"
}
}
),
UpdateIf(
'Exec Update_3',
ID = gal_ExecUpdate.Selected.ID,
{
EU_Status:{
ID: gal_ExecUpdate.Selected.ID,
Value: "Closed"
}
}
)
)
If the issue still exists, please consider turn off the "Improved app rendering (final validation)" option and turn on the "Formula-level error management" option within Advanced settings of App settings of your app, then re-publish your app and try above formula again, check if the issue is fixed.
Best regards,