Skip to main content

Can we pass empty date values into SharePoint List  (SP 2013 AN D K2 5) ?

We have SP 203 and K2 5 ...

when empty values are passed we are seeing this error :

Any help is appreciated....

 

 

10702 An error occurred iContent Service Instance. Error occurred trying to Execute (SmoSPListItem) - System.NullReferenceException: Object reference not set to an instance of an object.

   at SourceCode.SharePoint.Client.ListItemBaseFunctions.assignDateTimeValue(ListItem listItem, RuntimeField inputField, Boolean allDayEvent)

   at SourceCode.SharePoint.Client.ListItemBaseFunctions.updateFieldValue(ListItem listItem, RuntimeFieldm] metadataFields, FieldCollection fields)

   at SourceCode.SharePoint.Client.ListItemFunctions.UpdateListItem(Int32 listItemId, ContentType contentType, RuntimeFieldt] metadataFields)

   at SourceCode.SmartObjects.Services.SharePoint.Content.SmoSPListItem.executeUpdateListItem(Propertye] inputs, RuntimeFieldu] inputFields)

   at SourceCode.SmartObjects.Services.SharePoint.Content.SmoSPListItem.callUpdateMethod(Propertyt] inputs, Method method)

   at SourceCode.SmartObjects.Services.SharePoint.Content.SmoSPListItem.Execute(Propertyx] inputs, RequiredProperties required, Propertyu] returns, Method method)

Unless column is defined as "required" in SharePoint, you should be able to pass empty values. How you are creating list items? Workflow or form??


Reply