Google Sheets UniqueId Apps Script

Great solution, but now if I have in the sheet the auto ID generation and in appsheet (data panel view) I have set the field as KEY VALUE, Appsheet ask me in the form to enter a new record, the mandatory ID value to insert…

So how to exclude it?