web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

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:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at
    Re: SP Null Date Column

    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
    Re: SP Null Date Column

    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
    Re: SP Null Date Column

    Hello @mmattar 

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

    Regards,
    Ferran

  • mmattar Profile Picture
    353 on at
    Re: SP Null Date Column

    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
    32,858 Most Valuable Professional on at
    Re: SP Null Date Column

    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
    Re: SP Null Date Column

    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
    32,858 Most Valuable Professional on at
    Re: SP Null Date Column

    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard