Hi @OneWinPlease ,
I created a SharePoint List to duplicate what you have. My List just has a Title, EmployeeName (People Picker), and ManagerName (People Picker). I created the basic Power App with the BrowseScreen, DetailScreen, and EditScreen. I split the "EditScreen" into two screens with "BasicInfoForm" and "MoreInfoForm".
What is the Item Property set to for the "MoreInfoForm"? Is it set to "VarFormData"?
For the Screen with "MoreInfoForm", I set the "Save/Submit" button/icon to:
If(
//Check if Forms are Valid
BasicInfoForm.Valid && MoreInfoForm.Valid,
If(
IsError(
Patch(
'New Service Request List',
VarFormData,
BasicInfoForm.Updates,
MoreInfoForm.Updates
);
),
// On failure
Notify(
"Error: the item could not be created",
NotificationType.Error
),
// On success
Notify(
"Success",
NotificationType.Success
);
Navigate(SuccessScreen);
ResetForm(BasicInfoForm);
ResetForm(MoreInfoForm);
),
Notify(
"Error with form",
NotificationType.Error
);
);
Maybe one of the other fields is required in the list and is blocking the Patch. Or an Error is occurring.
Matthew Devaney has an article on error handling:
https://www.matthewdevaney.com/power-apps-coding-standards-for-canvas-apps/power-apps-error-handling-guidelines/#Patch-Function-Error-Handling
Based on Matthew's article, you may want to try to add this to the OnError of the App:
// unexpected error notification message
Notify(
Concatenate(
"Error: ",
FirstError.Message,
"Kind: ",
FirstError.Kind,
", Observed: ",
FirstError.Observed,
", Source: ",
FirstError.Source
),
NotificationType.Information
);
Just comment that out when you go to Production.
I hope this helps find the source of the issue.
-Mark
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up.