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 / Unable to process temp...
Power Automate
Unanswered

Unable to process template language expressions.

(1) ShareShare
ReportReport
Posted on by 2
Hi Everyone,
 
The flow does what it needs to do, send email notification if the days remaining is between 30 and 0. On the image below we see that Days Remaining = 0. But the flow still fails for 87 items in the Apply to each loop. 
 
Days Remaining = 
div(sub(ticks(formatDateTime(utcNow(),'yyyy-MM-dd')),ticks(items('Apply_to_each')?['New_x0020_Review_x0020_Date'])),864000000000)
 
^
|
 
Which it calculates days remains between two dates, utcNow() and New Review Date.
 
 
Error message: Unable to process template language expressions in action 'Set_variable:_Days_Remaining'
inputs at line '0' and column '0': 'The template language function 'ticks' expects its parameter to be a string that represents a timestamp.
The provided value is of type 'Null'. 
 
As mentioned, the flow does the job, but I am not sure why is failing.
 
 
Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
    Looks like the ones that are failing have a Null date. Try this expression.
     
    if(
        empty(items('Apply_to_each')?['New_x0020_Review_x0020_Date']),
        null,
        div(
            sub(
                ticks(formatDateTime(utcNow(),'yyyy-MM-dd')),
                ticks(items('Apply_to_each')?['New_x0020_Review_x0020_Date'])
            ),
            864000000000
        )
    )

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