Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Experimental Features
Unanswered

Error setting variable to form LastSubmit after turning on New analysis engine

(0) ShareShare
ReportReport
Posted on by 388

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:

biterbit_0-1713956909113.png

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.

Categories:

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 770 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 494

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 399

Featured topics