web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : jNcjID/VVtG5I3X88Gy79v
Power Automate - Using Flows
Answered

MS Flow expression is not valid

Like (0) ShareShare
ReportReport
Posted on 4 Apr 2023 15:09:56 by 379

I have a SharePoint Get Items action in my flow that uses a Filter Query to select specific rows and it is returning the following error.

 

"status": 400, "message": "The expression \"Pads Expiration date ge '2023-05-04' and Pads Expiration date lt ' 2023-06-03'\" is not valid. Creating query failed.\r\nclientRequestId: f0ab3c48-e5fd-4b17-a253-f42e221091c7\r\nserviceRequestId: f0ab3c48

 

This is the expression: 

concat(concat('Pads Expiration date',' ge ''''',outputs('Today_+_x_days')),'''',' and ', concat('Pads Expiration date',' lt ','''', outputs('x_Days_+_30'),''''))
 
I appreciate any suggestions, I'm still learning on how to use flows 
I have the same question (0)
  • lcdelgado Profile Picture
    379 on 04 Apr 2023 at 16:10:34
    Re: MS Flow expression is not valid

    Its only date format

  • Verified answer
    Sundeep_Malik Profile Picture
    6,482 on 04 Apr 2023 at 16:06:37
    Re: MS Flow expression is not valid

    Hey @lcdelgado 

     

    Instead of the above expression in filter query, try something like this:

     

    PadsExpirationDate ge 'outputs('Today_+_x_days')' and PadsExpirationDate le 'outputs('x_Days_+_30')'

     

    Sundeep_Malik_0-1680624331537.png

     

    In the above expression the pad expiration date might not match, keep it exactly how you have kept in sharepoint.

    One more thing to notice here is, I hope you are only dealing with date here and not time.

     

     

    I hope this helps 🙂

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Featured topics

Restore a deleted flow