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 Platform Community / Forums / Power Automate / Power Automate - one o...
Power Automate
Unanswered

Power Automate - one of my flows throws an error of condition

(0) ShareShare
ReportReport
Posted on by 4
Hi,
 Can anyone please help as one of my flows in Power automate throws an error "Unable to process template language expressions for action 'Condition' at line '0' and column '0': 'The template language function 'int' was invoked with a parameter that is not valid. The value cannot be converted to the target type.'" . I have a Microsoft list wherein it contains the employees birth date and month number, and I have created a flow if today's date and month equals employee birthday date and month then he/she will receive an email with the picture embedded in an email body.
 
Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    11,681 Super User 2025 Season 2 on at
    Hi 

    Please show the how the condition has been configured AND please also show us the actual data that is being checked.
     
    You can add a compose action before the condition action, containing the exact data in the exact format that is being compared in the condition: today's date and birthday.
     

    Ellis Karim Ellis Karim
    Blog | LinkedIn | Bluesky

  • SM-21031110-0 Profile Picture
    4 on at
    I am attaching the Screenshot of the condition used in the above flow and also the screenshot 4 for the Microsoft list of employee's birthdays. 1st,2nd and 3rd screenshots are from the flow.
     
  • Suggested answer
    Jalpa Mahesh Dhola Profile Picture
    35 on at
    Hi,
    You can use the below condition with formatting date
     
    formatDateTime(utcNow(), 'MM-dd') is equal to formatDateTime(items('Apply_to_each')?['BirthDate'], 'MM-dd')
  • SM-21031110-0 Profile Picture
    4 on at
    I am still getting an error after modifying the condition to formatdatetime.
     

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