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

Notifications

Announcements

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 Super User 2025 Season 2 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 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard