I recently tried turning on the New analysis engine setting on my application and it then started showing errors in a formula that had previously been working fine.
It seems to object to my setting of a local variable to a form's LastSubmit value in the form's OnSuccess property:
UpdateContext({ locLastRecord: frmClient.LastSubmit });
If(locFormMode = FormMode.New,
UpdateContext({ locClientTitle: "C" & Right("000000" & locLastRecord.ID, 6) });
Patch('Client data', locLastRecord, { Reference: locClientTitle } );
Notify("New client record " & locClientTitle & " created", NotificationType.Success, 1000);
,
UpdateContext({ locClientTitle: locClientData.Reference });
Notify("Client record " & locClientTitle & " updated", NotificationType.Success, 1000);
);
... more processing
All references in the code to the locLastRecord variable return an error like: Name isn't valid. 'ID' isn't recognized:

Before the New analysis engine setting was turned on, no errors were generated. Is setting a variable to a form's LastSubmit not a valid action any more, or am I missing something here?