Hi I'm trying to insert variables into a SQL table via a patch function. The button works fine until I try to capture the User().Email and insert it too.
Patch(
'assurance.comments',
Defaults('assurance.comments'), // If varIdea is blank, use default values; otherwise, use varIdea
{
assurance_contractid: TextInput6.Text, // Use the selected value from ComboBox1_2
assurance_comments: 'text metrics input_5'.Text, // Use the value from text input named 'text metrics input_2'
insert_DateTime: Now(), // Use the current date and time
assurance_userid: User().Email
}
);
The SQL table has all the required columns (see photo) and when I remove the assurance_userid: User().Email part it works again it works.

Can anyone offer any advice?
Thanks,