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 / One or more fields pro...
Power Automate
Answered

One or more fields provided is type 'null"

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

4.PNGI 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 neededflow error 2.PNGflow error.PNG

Categories:
  • Manish Solanki Profile Picture
    15,169 Moderator on at

    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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    The expression I used for the div() function is this:

     

    div(sub(ticks(formatDateTime(utcNow(),'yyyy-MM-dd')),ticks(item()?['ContractExecutedDate'])),864000000000)
  • Verified answer
    Manish Solanki Profile Picture
    15,169 Moderator on at

    Hi @Anonymous 

     

    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.

     

    Thanks

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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.

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
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard