cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
leeleeisfree
Frequent Visitor

Action Condition Failed - Send Work Anniversary Email

I posted the other day about sending out birthday email (https://powerusers.microsoft.com/t5/Building-Flows/Sending-Birthday-and-Work-Anniversary-Emails-to-e..._) - I copied that (now) working flow to do the exact same thing for work anniversaries. The data is in the same SharePoint list with their birthday and anniversary in different columns. Once I updated the column specific information I am not sure where the flow is failing. 

 

The error message is as follows: Unable to process template language expressions for action 'Condition' at line '1' and column '14425': 'The template language function 'formatDateTime' expects its first parameter to be of type string. The provided value is of type 'Null'. Please see https://aka.ms/logicexpressions#formatdatetime for usage details.'.

 

 

Flow Run Fail - Compose and ConditionFlow Run Fail - Compose and Condition Flow - Compose and ConditionFlow - Compose and Condition

 

 The condition is as follows: 

Left: 

formatDateTime(items('Apply_to_each')?['ANNIVERSARY'], 'MM-dd')
 
Right: 
formatDateTime(utcNow(), 'MM-dd')
 
For further info - this is the beginning of my flow:
Flow-Beginning-Setdate.PNG

 

1 REPLY 1
ChristianAbata
Super User II
Super User II

hi @leeleeisfree  that error is because maeby you have some value empty in your sharepoint list



Did I answer your question? Please consider to Mark
my post as a solution! to guide others :winking_face:

Proud to be a Flownaut!


If you want you can follow me at www.christianabata.com Quieres contenido en español? Síguenos en Power Automate LA

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (64,935)