Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

MS Flow expression is not valid

(0) ShareShare
ReportReport
Posted on 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 
  • lcdelgado Profile Picture
    379 on at
    Re: MS Flow expression is not valid

    Its only date format

  • Verified answer
    Sundeep_Malik Profile Picture
    6,482 on at
    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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics

Restore a deleted flow