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 / Syntax Error (Expected...
Power Apps
Unanswered

Syntax Error (Expected operator)

(0) ShareShare
ReportReport
Posted on by

Can anyone spot my syntax error?

 

Error message: Expected operator. We expect an operator such as +,*, or & at this point in the formula.

 

On a label's Default section:

 

If(varEditType="AddActivity",
LookUp('Visits For QSA',
ID=_listItemID,
'Title Date'),
EVEnterVisitForm.LastSubmit.'Title Date');

 

My intent was that if variable 'varEditType' is set to "AddActivity" then it grabs the 'Title Date' from the list 'Visits For QSA' that has the ID that matches '_listItemID'. If that statement was not true, I wanted it to grab EVEnterVisitForm.LastSubmit.'Title Date'.

I'm not sure where my error is.

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Anonymous 

    I don't see the error immediately in your formula.  To troubleshoot it, put labels on the screen and break out each  element of the formula and see if it contains a value.  Please post a screenshot of the actual error to see where in the formula PowerApps is indicating there is an error.  

  • Verified answer
    Community Power Platform Member Profile Picture
    on at

    Good call on breaking out the labels. Turns out, I think, the error was the semicolon at the end of the statement. This without the semicolon at the end removed the error:

     

    If(varEditType="AddActivity",
    LookUp('Visits For QSA',
    ID=_listItemID,
    'Title Date'),
    EVEnterVisitForm.LastSubmit.'Title Date')

  • Kamaldk25 Profile Picture
    2 on at

    Please, Can anyone spot my syntax error?

     

    Error message: Expected operator. We expect an operator such as +,*, or & at this point in the formula.

     

    On .items for a SharePoint list

     

    Filter(Choices([@Product Innovation].Country), Id in Filter(Choices([@Product Innovation].'Country:Region'), Value = DataCardValue3.Selected.Value).Id)

     

    My intent was to create a cascading drop down in the Microsoft List using JSON and PowerApps

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard