Skip to main content

Notifications

Power Automate - Building Flows
Suggested answer

Action 'Get_items' failed: The expression "StartDate eq 2024-12-20" is not valid.

(0) ShareShare
ReportReport
Posted on by 10
I see there are many queries about this issue - I have been trying for days but always get same or similar result.
 
I have a list with the following fields:
StartDate (defined as date with date only and standard format selected - internal name is the same - 
StartPerson (defined as person or group - people only - internal name is the same 
 
My Get items fails when flow runs
Filter query 
However if I replace the expression with a date in the format 'yyyy-MM-dd', it does work. 
 
However I want this to run when the StartDate is eq to todays date.
 
Please can you provide a valid expression.
 
Let me know if you need any other information.
 
Thanks
Basil
  • Suggested answer
    BasilH Profile Picture
    BasilH 10 on at
    Action 'Get_items' failed: The expression "StartDate eq 2024-12-20" is not valid.
    Issue solved thanks - needs double single quotes.
     
    thanks
  • BasilH Profile Picture
    BasilH 10 on at
    Action 'Get_items' failed: The expression "StartDate eq 2024-12-20" is not valid.
    Hi Chriddle thanks for the response but it still fails:
    This is what have have changed based on your reply - is thsi correct?
    StartDate le '@{formatDateTime(utcNow(), 'yyyy-MM-dd'}'
    error when I save the flow
    The input parameter(s) of operation 'Get_items' contains invalid expression(s). Fix invalid expression(s) for the input parameter(s) of operation 'Get_items'.
    Thanks
  • Chriddle Profile Picture
    Chriddle 7,159 on at
    Action 'Get_items' failed: The expression "StartDate eq 2024-12-20" is not valid.
    You have to use quotes, even if you use an expression:
    Startdate eq '@{utcNow('yyyy')}'
     

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #9 Get Recognized…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,867

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 64,161

Leaderboard