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 Automate
Answered

SP Null Date Column

(0) ShareShare
ReportReport
Posted on by 353

Hello,

 

I am trying too perform an "update item", sometimes my date columns have empty values but i am getting an error: 

 

 The 'inputs.parameters' of workflow operation 'Update_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/Date_Column' is required to be of type 'String/date'. The runtime value '""' to be converted doesn't have the expected format 'String/date'. 

 

The Date columns are already empty, I just want to do 1 update item, so i pass the variables thru it regardless if empty or not. How can i make this work ? 

 

Thanks

Categories:
  • fchopo Profile Picture
    8,003 Moderator on at

    Hello @mmattar 

    Instead of passing the "" value to the date column, try to use the null expression:

    null.png

     

    Hope it helps!

    Ferran

  • mmattar Profile Picture
    353 on at

    Oh yes sorry I forgot to mention that I do update my variables to null if needed and I still get that same error

  • fchopo Profile Picture
    8,003 Moderator on at

    Hello @mmattar 

    Could you share your flow and show some of the output values? Really weird...

    Regards,
    Ferran

  • mmattar Profile Picture
    353 on at

    When i set my variable you can see i set it to null, in this case 2 date columns got values but 2 did not and you can see the error it throws me because it. 

     

    tm2.PNGtm1.PNGtm.PNG

  • Verified answer
    abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @mmattar 

     

    You can't declare a string and initialise with null and update the list item in SharePoint.  The reason for this is null is not a string. Use the IF expression under the dynamic mapping like below.

     

    if(not(empty(variables('varDate'))),variables('varDate'),null)
     
    Above I am using variable string called varDate. Don't initialise with anything.

     

    Please follow the below

     

    image.png

     

    Thanks

  • mmattar Profile Picture
    353 on at

    Thank you, this worked. 

     

    Now since i have a trigger that "When an item or file is modified", it looks like when my flow does an update item it runs again and again cause the record is being modified, how can i stop this loop  ?

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @mmattar 

     

    Good question. So you could use created on and modified on date to compare. When you create the record most likely these values are almost same. Probably some minor difference in seconds. 

     

    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
11manish Profile Picture

11manish 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard