I followed each line and indeed one of them was causing this issue which is this line :
'Order ID': gID.Text,
I tried to make a variable for it to be like this :
Set(
orderid,
Text(
Upper (
Concatenate(
Left(
User().FullName,
2
),
"-",
Text(
varCurrentDateTime,
"hhmmss"
)
)
)
)
);
Then I replaced the old line with this new formula:
ForAll(
galCart.AllItems,
Patch(
'Abudawood''s Cafe 1',
Defaults('Abudawood''s Cafe 1'),
{
Quantity: Value(TextInput1.Text),
Drinks: ThisRecord.Item.Title,
'Office Number': dd3.Selected.Title,
'Office Zone': dd4.Selected.Title,
'User Name': usrNam.Text,
'Order ID': orderid,
'Date And Time ': Text(
Now(),
"mm/dd/yyyy hh:mm:ss"
)
}
)
);
Now the patch is working, I don't know why it wasn't work earlier but now it's okay.
Thank you.