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 Automate
Unanswered

Expression error

(0) ShareShare
ReportReport
Posted on by

I keep receiving this error when I try to run a flow:

The expression "5/13/2020" is not valid. Creating query failed.

I am using the expression 

addDays(utcNow(),14,'M/d/yyyy')
to help send an email reminder at 14 days prior to the due date of a SharePoint list but can not get it to work with the expression.  Can anyone assist me with this.  
Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Anonymous 

    For SharePoint you need to use the following date format:  'yyyy-MM-dd'

     

  • Community Power Platform Member Profile Picture
    on at

    @ScottShearer 

    It is still not working and bringing up a date that doesn't exist.  It is now saying 2020/34/13

  • ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @Anonymous 

    Can you post a screen shot of your Flow as well as a screen shot of your last run - the more detail the better.

     

  • Community Power Platform Member Profile Picture
    on at

    @ScottShearer 

     

     

    It isn't letting me attach the screen shots

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @Anonymous ,

     

    When you configuring Filter Query, you should fill leas two parameters in Filter Query to filter items.

    It seems that you are filling only one parameter in Filter Query.

     

    • First, you could run Get items action without configuring Filter Query and check the body of Get items action.

    84.PNG

     

    • Get the actual name of date column and fill it in Filter Query.

    85.PNG

    Hope this helps.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at

    @v-bacao-msft 

    Here is the workflow that was created.  I have that expression.

    Annotation 2020-04-29.jpgAnnotation 2020-04-29 2.jpg

  • v-bacao-msft Profile Picture
    on at

     

    Hi @Anonymous ,

     

    As I mentioned in my previous reply, you are configuring a single parameter in Filter Query.

    The output of Compose only is a date, you could add a date column to compare with this output and filter items.

    Please check this link and get more details about Filter Query:

    https://sharepains.com/2018/11/12/sharepoint-get-items-odata-filter-query/

     

    Best Regards,

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 Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard