Hello and Good day,
Hi all I need a help,
Currently, I'm facing an error at Runtime after clicking submit button to the SharePoint list. I have attached the issue below:

and the code at the ButtonSubmit is as follows:
Patch(
LeaveAppliedByUser,
Defaults(LeaveAppliedByUser),
{
LeaveType: Gallery5.Selected.LeaveType.Value,
FromDate: StartDate.SelectedDate,
ToDate: EndDate.SelectedDate,
LeaveTitile: txtLeaveTitile.Text,
LeaveDescription: txtLeaveDescription.Text,
Selectedby: Requestedby.Text,
TotalDays:daysdiff+1,
RequestedBy:
{'@odata.type' : "#Microsoft.Azure.Connectors.Sharepoint.SPListExpandedUser",
Claims: "i:0#.f|membership|" & Lower(User().Email),
Department: "",
DisplayName: User().FullName,
Email: User().Email,
JobTitle: ".",
Picture: "."},
RequestedTo:
{'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExapandedUser",
Claims: "i:0#.f|membership|" & Lower(_selectedApprover.Mail),
Department: "",
DisplayName: _selectedApprover.DisplayName,
Email: _selectedApprover.Mail,
JobTitle: ".",
Picture: "."}
}
);
Notify("Leave Applied Successfully", NotificationType.Success);
Thank you for your attention.
Regards,
Dalila