Good day
I need assistance with the patch funtion. I am getting a a runtime error saying that there is a network error when using the Patch function: The requested operation is invalid. and when I double click on Patch it says that the formula has side effects that cannot be evaluated.
This is the formula:
Collect(
Coltripdetails,
{
SiteResponsible: dd_SiteResponsible.SelectedText,
TripType: dd_TripType.SelectedText,
DepartureFrom: dd_DepartureFrom.SelectedText,
ArrivalAt: dd_ArrivalAt.SelectedText
}
);
Patch(
'Driver''s Sheet - Ayabonga Ntlahla_1',
Defaults('Driver''s Sheet - Ayabonga Ntlahla_1'),
{
'Driver''s Name': txt_DriverName.Text,
'Fleet Number': txt_FleetNumber.Text,
Date: DatePicker.SelectedDate,
'Site Responsible for Cost': LookUp(Coltripdetails,true).SiteResponsible.Value,
'Trip Type': LookUp(Coltripdetails,true).TripType.Value,
'Departure From': LookUp(Coltripdetails,true).DepartureFrom.Value,
'KM before Departure': txt_KmDeparture.Text,
'Departure Time':txt_TimePicker.Text,
'Items transported': AllItemsTransportedString,
'Arrival At':LookUp(Coltripdetails,true).ArrivalAt.Value,
'KM on Arrival':txt_KmArrival.Text,
'Arrival Time':txt_ArrivalTime,
Comments:txt_Comments.Text,
'Senders Signature': JSON(
Signature_Sender.Image,
JSONFormat.IncludeBinaryData
),
'Receivers Signature': JSON(
Signature_Receiver.Image,
JSONFormat.IncludeBinaryData
)
}
)
Coltripdetails = A collection I am using to get drop down values as the dropdowns cascading and coming from different data sources.
Can you please help me figure out what the problem is with this formula. I am really struggling.
Thank you