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 / 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.
 
 
Screenshot 2024-08-12 161529.png
Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,396 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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 284 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 188 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 144 Super User 2026 Season 2

Last 30 days Overall leaderboard