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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / List rows in power aut...
Power Automate
Answered

List rows in power automate

(0) ShareShare
ReportReport
Posted on by 17
Good day, 
 
Kindly assist, I'm get the error: "A binary operator with incompatible types was detected. Found operand types 'Edm.Date' and 'Edm.String' for operator kind 'Equal'." I am comparing the date, see attached screenshot.
Screenshot 2026-02-22 at 22.24.09.png
Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    69,397 Most Valuable Professional on at
    You are storing your calculated date in a String Variable.  If you want to use it in a List Rows filter you need to cast it back to an actual date using the FormateDateTime() function.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • Petrusottie Profile Picture
    17 on at
    I still getting an error
  • Petrusottie Profile Picture
    17 on at
    Code: cr473_dateclosed eq null and cr473_datecreated eq @{formatDateTime('varDate2DaysAfter')}
     
     
    Error: Unable to process template language expressions in action 'List_rows' inputs at line '0' and column '0': 'In function 'formatDateTime', the value provided for date time string 'varDate2DaysAfter' was not valid. The datetime string must match ISO 8601 format.'.
  • Pstork1 Profile Picture
    69,397 Most Valuable Professional on at
    Please post the formula you are using for setting the variable.  Something about it is setting the value to be a non-compliant date format.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • Petrusottie Profile Picture
    17 on at
    Here is my formula: cr473_dateclosed eq null and cr473_datecreated eq @{formatDateTime('varDate2DaysAfter')}
     
    Where the variable (varDate2DaysAfter) -> addDays(utcNow(),-2,'MM/dd/yyyy')
  • Suggested answer
    Pstork1 Profile Picture
    69,397 Most Valuable Professional on at
    Remove the format string "MM/dd/yyyy" from the AddDays.  That is making the output a non ISO 8601 date format, which is required for the query in List Rows.  The format string is optional and ISO 8601 format is the default.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • Petrusottie Profile Picture
    17 on at
    Hi Pstork1,
     
    I have removed the string format, but now I getting: cr473_dateclosed eq null and cr473_datecreated eq 2026-02-22T15:48:36.1868248Z,
     
    whereas on my dataverse table I've set Date Only for cr473_datecreated column. Now the filter condition evaluates to false, meaning no row is returned. How can I remove this part after the date 2026-02-22T15:48:36.1868248Z  so that I compare date only with the date.
  • Suggested answer
    Pstork1 Profile Picture
    69,397 Most Valuable Professional on at
    You don't want to remove it entirely.  You want to set it to 00:00:00.000Z.  Use the following mask in the formatDateTime
     
    'yyyy-MM-ddT00:00:00.000Z'

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard