Share via

Object reference error on editing calendar event

Anonymous
2016-05-10T09:41:02+00:00

Hi,

I am working on SharePoint Online Calendar. By default the Start Date and End Date fields are required in Event Content Type. I made both of these fields optional. When I add an Event to the Calendar, with blank Start and End Date the Event gets saved without any problem. When I edit the Event, do nothing and click on save, exception occurs.

Object reference not set to an instance of an object.

[NullReferenceException: Object reference not set to an instance of an object.] Microsoft.SharePoint.WebControls.DateTimeField.GetDateValue(DateTimeField fieldControl) +128 Microsoft.SharePoint.WebControls.DateTimeField.Validate(Boolean validateMemberControl) +474 Microsoft.SharePoint.WebControls.DateTimeField.Validate() +44 System.Web.UI.Page.Validate() +117 System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) +105 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +29 System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint

Microsoft 365 and Office
Microsoft 365 and Office

A comprehensive suite of productivity tools and cloud services that enhance collaboration, communication, and efficiency. Combining classic Office apps with advanced Microsoft 365 features, it supports both personal and business needs

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2016-05-10T16:28:18+00:00

Hi Manasa,

This is an expected behavior in SharePoint Calendar. Though we can set the Start Date and End Date columns to be optional, we need to fill in the two columns when editing the events.

The following thread is for your reference.

Sharepoint 2010 Calendar - Start Date / End Date Blank –

Thanks,

Ran

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2016-05-11T07:50:11+00:00

    Thanks for the response.

    Was this answer helpful?

    0 comments No comments