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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

blank date field

(0) ShareShare
ReportReport
Posted on by

Hi all, having an issue on update sharepoint where this error occurs  : OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Update_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/DateRetired' is required to be of type 'String/date'. The runtime value '""' to be converted doesn't have the expected format 'String/date'.

 

now ive done the usual formula but it isnt working - 

if(empty(item()?['Installed Date']),null, item()?['Installed Date'])
 
i have two columns throwing the error - installed date and retired date , currently changed them to text fields in sharepoint to get it working but not ideal
and tried other variations including a compose action and looked on here , but null doesnt seem to work regardless 
 
hstep_0-1707814386766.png

i basically copied a flow by reza : https://www.youtube.com/watch?v=uEZI_b1Gs-k

UPDATE: ok it seems to have fixed itself by me doing the following - switch to new designer, change the sharepoint column from date to single line of text , then change it back to date and then this formula has worked ( it didnt previously ) : 

if(equals(item()?['Date Retired'],''),null,item()?['Date Retired'])
Categories:
I have the same question (0)
  • ivan_apps Profile Picture
    2,187 Moderator on at

    What data source are you connecting against? SharePoint? Excel?

    For troubleshooting try to put a utcNow() instead of null and see if it works.  My guess is that your empty() isn't correct and it's going to the Installed Date value, which is "" - an empty string.

     

    You can try to replace your if condition with:

    equals(item()?['Installed Date'], '')

    and see if that will then go to the null value.

  • SanmeshG Profile Picture
    1,947 Moderator on at

    HI @hstep  ,

     

    I think you have two date columns in your list. The error message says DateRetired is required to be of type string , so it seems that the problem is not with column Installed Date but its with DateRetired.

     

    So you can consider checking the formula that you have used for DateRetired. Also I think you should ensure that the Date column is not a required column in the list (This will throw a Patch Item is missing a required property error).

     

    If this helps , please give this a thumbs up and mark this as a solution.

     

    Thanks,

    Sanmesh

  • hstep Profile Picture
    on at

    no it doesnt sadly , i did try that, its sending to sharepoint from an excel . 

  • hstep Profile Picture
    on at

    hi yes sorry i should of mentioned im having it on two columns , both throwing the same issue

  • SanmeshG Profile Picture
    1,947 Moderator on at

    Hi @hstep ,

     

    Is it possible for you to share the screenshots of your flow?

     

    I am a bit confused as there is no conversion formula written in the expression as per the issue/question posted.

     

  • hstep Profile Picture
    on at

    updated post - what converstion would you need ? a date/time? 

  • CFernandes Profile Picture
    8,402 Most Valuable Professional on at

    @hstep - Are you using New Designer - Please switch to the Classic Designer, it should provide you with more details about the error 

     

    I had the same problem last week and switching to classic designer helped me identify and fix the problem...My problem being a syntax error with the SharePoint list

     

    CFernandes_0-1707814500907.png

     

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • hstep Profile Picture
    on at

    i wasnt but ive switched to new in the hope of fixing the issue - i mean its pretty clear what the issue is , but i dont know what will work to fix it. everything says null should be accepted. 

  • SanmeshG Profile Picture
    1,947 Moderator on at

     

    Have you enabled the ISO 8601 format in the list rows from excel action?

     

    ISOExcel.png

     

    Its possible that you are reading it as a serial number and that's what is causing an issue.

    Hi @hstep  ,

  • Verified answer
    hstep Profile Picture
    on at

    yes, it seems to have fixed if i changed the columsn to text then back to date in sharepoint , so must of been a bug or something

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard