Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

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.  
  • v-bacao-msft Profile Picture
    on at
    Re: Expression error

     

    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,

  • Community Power Platform Member Profile Picture
    on at
    Re: Expression error

    @v-bacao-msft 

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

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

  • Verified answer
    v-bacao-msft Profile Picture
    on at
    Re: Expression error

     

    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
    Re: Expression error

    @ScottShearer 

     

     

    It isn't letting me attach the screen shots

  • ScottShearer Profile Picture
    25,208 Most Valuable Professional on at
    Re: Expression error

    @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
    Re: Expression error

    @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,208 Most Valuable Professional on at
    Re: Expression error

    @Anonymous 

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

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,618 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,962 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow