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 / Flow Failed - InvalidT...
Power Automate
Answered

Flow Failed - InvalidTemplate

(0) ShareShare
ReportReport
Posted on by 2

Hi

 

I'm getting a failed flow message and when I test it get the message below. Below that is the formula I'm using to email custodians 14 days prior to equipment on a SharePoint calibration register needs inspected. I'm using the exact same formula for another for another SharePoint list (a facilities register) and it's working perfect, any ideas?

 

InvalidTemplate. Unable to process template language expressions for action 'Condition' at line '1' and column '2812': 'The template language function 'formatDateTime' expects its first parameter to be of type string. The provided value is of type 'Null'. 

 

equals(formatDateTime(item()?['Calibration_x0020_Due_x0020_Date'], 'MM/dd/yyyy'), formatDateTime(addDays(utcNow(), 14), 'MM/dd/yyyy'))
 
cheers
 
Darren
Categories:
  • Verified answer
    vikulkar Profile Picture
    Microsoft Employee on at

     

     

     

    Hello @92859673 

    Your expression looks fine but the error is probably because the value of

    item()?['Calibration_x0020_Due_x0020_Date'] is being returned as null.

    Please check the value in the column to ensure that it is not null 

     

  • 92859673 Profile Picture
    2 on at

    Yeah I checked the calibration register and one piece of equipment doesn't have a calibration due date, so this must be causing flow to fail

     

    I'm new at this, so thanks very much

     

    cheers

     

    Darren

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard