SharePint 2013 -Empty date feilds issue

  • 18 September 2019
  • 1 reply
  • 5 views

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, RuntimeField[] metadataFields, FieldCollection fields)

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

   at SourceCode.SmartObjects.Services.SharePoint.Content.SmoSPListItem.executeUpdateListItem(Property[] inputs, RuntimeField[] inputFields)

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

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


1 reply

Badge +10

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