Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
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
  • 92859673 Profile Picture
    2 on at
    Re: Flow Failed - InvalidTemplate

    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

  • Verified answer
    vikulkar Profile Picture
    on at
    Re: Flow Failed - InvalidTemplate

     

     

     

    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 

     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow