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 / Cannot write null to S...
Power Automate
Answered

Cannot write null to SharePoint Date field

(0) ShareShare
ReportReport
Posted on by 97

Hi all

 

I have data that comes through including dates, to date if a date eq 1900-01-01T00:00:00Z I have been replacing it with null with the following formula:

if(equals(item()?['ni_crq_f__c'],'1900-01-01T00:00:00Z'),null,item()?['ni_crq_f__c'])
 
This has stopped working and errors:
OpenApiOperationParameterTypeConversionFailed
The 'inputs.parameters' of workflow operation 'Update_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/field_9' is required to be of type 'String/date'. The runtime value '""' to be converted doesn't have the expected format 'String/date'.
 
I have tried replacing null with 'null' as follows: 
if(equals(item()?['ni_crq_f__c'],'1900-01-01T00:00:00Z'),'null',item()?['ni_crq_f__c'])
 
but get this error:
OpenApiOperationParameterTypeConversionFailed. The 'inputs.parameters' of workflow operation 'Update_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/field_9' is required to be of type 'String/date'. The runtime value '""' to be converted doesn't have the expected format 'String/date'.
 
also tried replacing null with '' but this then writes blank data to all cells regardless of the date
 
Is there a bug with MS on this atm?
 
 
Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @JemmaKSS ,

     

    Please try this expression instead:

    if(equals(item()?['ni_crq_f__c'],'1900-01-01T00:00:00Z'),' ',item()?['ni_crq_f__c'])

     

    Best Regards,

    Bof

  • JemmaKSS Profile Picture
    97 on at

    Hi!

    Thank you for responding but I still get an error:

     
    OpenApiOperationParameterTypeConversionFailed
    The 'inputs.parameters' of workflow operation 'Update_item' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'item/field_9' is required to be of type 'String/date'. The runtime value '""' to be converted doesn't have the expected format 'String/date'.
     
    confirming formula used (there are 6 date fields hence the name difference but they are all having the same issue):
     
    if(equals(items('For_each')?['site_integrated_f__c'],'1900-01-01T00:00:00Z'),' ',items('For_each')?['site_integrated_f__c'])
  • Verified answer
    JemmaKSS Profile Picture
    97 on at

    resolved, some data was coming through with null values and therefore I had to write in two IF statements. 

     

    if(equals(items('For_each')?['ni_crq_f__c'],'1900-01-01T00:00:00Z'),null,if(equals(items('For_each')?['ni_crq_f__c'],''),null,items('For_each')?['ni_crq_f__c']))

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 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard