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 / Error in Power Apps Fo...
Power Apps
Answered

Error in Power Apps Formula: "The right side of the 'Equal' operator must be a constant value"

(0) ShareShare
ReportReport
Posted on by

Hello. I am having trouble with one of the formulas that is connected to a button in my app. The first part gathers into a collection a list of tasks that need to be created for a specific shift and day. Once in a collection, I check to see if there are records for that task already in our ShiftTaskResults table, and if there aren't any records for the current day, then they are created. However, when I run the app, I'm getting an error message that says: "The right side of the 'Equal' operator must be a constant value." This error is happening in the LookUp. The error that I am getting says "The right side of the 'Equal' operator must be a constant value." I've tried to replace DateValue(Today()) with a variable that holds the value of DateValue(Today()), but that also did not work. Any help or guidance would be greatly appreciated.

 

Thanks

taskToCreate.JPG
CreateShiftTaskResults.JPG
Categories:
I have the same question (0)
  • Griffin_C Profile Picture
    125 on at

    Are each of the gc_[weekday] meant to be variables? If so, you want to use Set instead of =

    So you'd use Set(gc_Sunday,true)

  • lorumIpsum2024 Profile Picture
    on at

    These are columns in my table and not variables. It is checking the values in those columns. I fixed the naming and the red error underlines went away. But the error still persists with the Lookup.

     

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Hi @lorumIpsum2024 

     

    Can you post a screenshot of what's inside collection TasksToCreate?

  • lorumIpsum2024 Profile Picture
    on at

    TaskToCreateCollection.JPG

     

     

     

    I am expecting 2 rows back for the query that I have, but I am not sure where there are question marks in the columns. The values in those columns should be yes or no.

  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Yes or No?
    Or True or False?

    They are very different.

     

    In either case, I now need the code you used to create that collection, because something is not right.

  • Verified answer
    Griffin_C Profile Picture
    125 on at

    That makes much more sense now. I've found that when two different data sources are nested within functions like that, Power Apps doesn't know which one you're talking about when naming a column or especially when using ThisRecord. Try using the "As" operator in your ForAll function so your data references are more explicit.

    For example: 

    ForAll(TasksToCreate As TASKS,

    Then any time you need to reference a column in TasksToCreate within that ForAll function, you can use TASKS.ColumnName.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard