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:
I think you have an earlier report of something similar, but I thought I would post it here to ensure it is known as ongoing problem.
Stay up to date on forum activity by subscribing.
WarrenBelz
770
Most Valuable Professional
stampcoin
494
MS.Ragavendar
399