web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patch Function : Unex...
Power Apps
Answered

Patch Function : Unexpected characters. The formula contains 'Eof' where 'ParenClose' is expected.

(0) ShareShare
ReportReport
Posted on by 100
I'm getting this strange error after adding lookup function next Patch . wondering what could I be missing here....Appreciate your support to this Thank you 
 
 
If(
    dd1.SelectedText.Value <> "test" And dd1.SelectedText.Value <> "-",
    Patch(
        'FFMC-Off Boarding Users',
        LookUp
            ('FFMC-Off Boarding Users',ThisRecord.ID =  Gal_ActiveUsers.Selected.ID,
                {
                    ID: Gal_ActiveUsers.Selected.ID,
                    'Checklist Locked To': Blank(),
                    Status_: "Completed"
                }
            )
    );
 
          Navigate(MainS);
 
)
I have the same question (0)
  • Verified answer
    Gabriel G. Profile Picture
    831 Moderator on at
    Yeah, you need to separate the record selection from values to change:
     
    If(
        dd1.SelectedText.Value <> "test" And dd1.SelectedText.Value <> "-",
        Patch(
            'FFMC-Off Boarding Users';
            LookUp
            ('FFMC-Off Boarding Users',ThisRecord.ID =  Gal_ActiveUsers.Selected.ID);
            {
                ID: Gal_ActiveUsers.Selected.ID;
                'Checklist Locked To': Blank();
                Status_: "Completed"
            }
        ); 
        Navigate(MainS) 
    )


     
    I hope it helps you with your issue!
  • Suggested answer
    jrletner Profile Picture
    720 Moderator on at
    Try this and see if it helps.
     
    This changes "ThisRecord.ID" to ID and removes ID from the patch, because you should already have the current ID through the lookup.
     
    If(
        dd1.Selected.Value <> "test" And dd1.Selected.Value <> "-",
        Patch(
            'FFMC-Off Boarding Users',
            LookUp('FFMC-Off Boarding Users', ID = Gal_ActiveUsers.Selected.ID),
            {
                'Checklist Locked To': Blank(),
                Status: "Completed"
            }
        );
        Navigate(MainS)
    )
     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 475

#2
WarrenBelz Profile Picture

WarrenBelz 387 Most Valuable Professional

#3
11manish Profile Picture

11manish 289

Last 30 days Overall leaderboard