Announcements
I am creating a flow to track when an item is created to when it is approved (time frame). The flow runs until it gets to the last steps. How can I fix this?
I can provide more screenshot and details if needed
Hi @Anonymous
The flow breaks when it encounters null value in the expression. Pls share the screenshot of "Update item 2" action and the full expression used with div() function.
Thanks
The expression I used for the div() function is this:
Pls try below expression which will check for empty or null value in the 'ContractExecutedDate' column. This expression will return empty string when null value is encountered, you may change it as per the target column data type or your need:
if(equals(item()?['ContractExecutedDate'],null),'',div(sub(ticks(formatDateTime(utcNow(),'yyyy-MM-dd')),ticks(item()?['ContractExecutedDate'])),864000000000))
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
That worked, thanks!!
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Mohsin Ali 289
11manish 282 Super User 2026 Season 2
Henil 119