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 / Help with formula syntax
Power Apps
Answered

Help with formula syntax

(0) ShareShare
ReportReport
Posted on by 550

Hello - I have an error that I am having trouble figuring out what I'm doing wrong. I suspect it is something missing in the syntax so thought I'd post for any help.

According to flow checker, the errors are that it expects a colon in one place, and a tab instead of a curly brace in another and finally that the column "_" doesn't exist (this one is the most confusing to me). Anyway, if anyone can assist, I'd be so grateful. 

 

I should note that my SubmitForm(formSupportDocs) is an attachment field which I wanted to update to my SP list, but the attachments weren't going through so I added a Patch function with form.Updates function. But now the errors.

Here is the code which is the OnSelect of my Submit button:

 

UpdateContext({showLoading: true});
Set(
 varAwardName,
 lblAwardName_1.Text
 );
Set(
 varAwardID2,
 Value(ThisItem.Award_ID)
);
SubmitForm(formSupportDocs);
Patch(CollaboratorInvite, LookUp(CollaboratorInvite, Email=varPSUEmail && Nominator_UserID=varNominatorUserID && Nominee_UserID=Concatenate(varNomineeUserID,"@psu.edu")),
 {
 UploadComplete:"Yes",
 },
 formSupportDocs.Updates
);
UpdateContext({showLoading: false});
If(
 IsEmpty(Errors(CollaboratorInvite)),
 Notify(
 "You have Successfully Submitted this Supporting Document. It will be added to the Nomination Packet.",
 NotificationType.Success
 );
 Navigate(Home),
 Notify(
 First(Errors(CollaboratorInvite)).Message,
 NotificationType.Error
 )
);
Concurrent(
 Refresh(CollaboratorInvite),
 Refresh(SubmittedNominations),
 ResetForm(formSupportDocs),
 Set(varPopUpConfirmation, false)
);

 

The interface:

kky1_0-1681249369973.png

The datasource for my form is a SP list and the items property is a formula to lookup a record in the list that matches on three fields:

kky1_1-1681249484078.png

Datasource:

kky1_3-1681249642692.png

Does anyone see any obvious syntax errors that I am too tired at the moment to notice?

 

Thank you for your help in advance!

@kky1 

 

 

Categories:
I have the same question (0)
  • Verified answer
    timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    Hi @kky1 

    With the section of formula beneath, there's an extra comma after "Yes" which shouldn't be there. If you remove it, that should hopefully take you further.

     

    Patch(CollaboratorInvite, LookUp(CollaboratorInvite, Email=varPSUEmail && Nominator_UserID=varNominatorUserID && Nominee_UserID=Concatenate(varNomineeUserID,"@psu.edu")),
     {
     UploadComplete:"Yes"
     },
     formSupportDocs.Updates
    );

     

  • kky1 Profile Picture
    550 on at

    Thank you @timl ! It was the comma! Honestly, I don't know how I didn't notice it - the app wasn't highlighting it in the formula as an error so I was skipping right over it. Thank you so much!!

  • timl Profile Picture
    37,283 Super User 2026 Season 2 on at

    You're welcome @kky1! Glad you solved the problem.

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 377 Most Valuable Professional

#2
11manish Profile Picture

11manish 165 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 110 Super User 2026 Season 2

Last 30 days Overall leaderboard