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 / Convert time zone null...
Power Automate
Unanswered

Convert time zone null when field is empty

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I noticed that when a field I have date and time in is empty "convert time zone" returns error "null" and that makes sense. Someone know how I can go around this?

 

I've tried some things put cant get it to work, i've searched the forum too.

 

My flow looks like this:

converttimezonenull.PNGconverttimezonenull2.PNGconverttimezonenull3.PNG

Categories:
I have the same question (0)
  • Jcook Profile Picture
    7,783 Most Valuable Professional on at

    Hello @Anonymous 

     

    So if I understand correctly, you might have a situation where that date field is empty. But when this happens, the flow fails and throws an error?

     

    So instead of throwing an error, you want the flow to continue?

     

    If that is the case. I would enable run after on the action after the one that fails on empty date.

    You can do this by:

    Clicking the 3 dots on the action, clicking configure run after, than checkbox Succeed, and Failed.

    This is saying the action will run if the action above fails or succeeds.

     

    —Josh
    If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others

  • DeepakS Profile Picture
    2,301 Most Valuable Professional on at

    Hi @Anonymous ,

     

    You can try the option what @Jcook  suggested.

    Or you can try a condition to check id date is null, option (no the best ;):

    CheckNULL1.png

     

    -----------------------------------------------------------------------------------------------

    If you like my post please hit the "Thumbs Up" -- If my post solved your issue please "Mark as a Solution" to help others

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    Thata exacly what I mean. I tried exacly what you said but with no luck. It says same error message "null" =(
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at
    I will try this sooner, i'll be back
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Anonymous 

    You need to enter null in the expression window rather than as just text.  If you do so, your condition will look similar to the screen shot below:

    NullDate.jpg

  • DeepakS Profile Picture
    2,301 Most Valuable Professional on at

    Hi @ScottShearer 

     

    I noticed this while ago too but recently flow started to understand 'null' text. but if this is the case we need to better understand i think. i was very confused when it works for me with plain text actually.

     

  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @DeepakS 

    You are correct - it will work by entering null as plain text rather than as an expression.  This never worked before and I haven't seen anything saying it should work now but it does.....

    I also created a condition to test for true or false.  It worked when I entered true or false as plain text or in the expression window.

    I know that enhancements are being made to expressions and the expressions interface in Power Automate - I suspect that the behavior we are seeing is part of those changes.

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Now i've tried some but I cant get it to work, still getting the error.. 😞

     

    This is the flow I got right now:

    converttimezonenull still error.PNG

    converttimezonenull still error2.PNG

     

    The error message i get:

    errormessage.PNG

  • DeepakS Profile Picture
    2,301 Most Valuable Professional on at

    HI @Anonymous ,

     

    You have 4 "convert to time " action but only checking three date in condition block for null. Please make sure you  have all 4 date column in condition block.

     

    Regards,

  • efialttes Profile Picture
    14,756 on at

    Hi!

    Jut in case it helps, I tend to use coalesce() expression in order to evaluate if  a sharepoint column is empty, so I add two parameters inside:

    -the column value

    -a default text, just in case column value is null

    So if i am inside an apply to each iterating all through the items from a 'Get item', and the column is named 'myColumn', the expression would be

     

    coalesce(items('Apply_to_each')?['MyColumn'],'myDefault')

     

    Now, you can use it in a condition (not very fficient if you are inside an Apply to Each), or, in some scenarios a default value works like a charm

     

    Hope this helps

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard