Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Issue with the Page Layout Save

$
0
0

Friends,

I'm facing the below issue when I try to save a custom SharePoint 2013 page layout, 

I have a custom content type and custom page layout and when i try to save the values through "Edit Properties" I could save the values but when I try to save the content type from page layout through Ribbon"Save" it is redirecting me to "unexpected error occurred " page,

Any help would be appreciated,

ULS Logs below 

*****************************************

UnexpectedSystem.NullReferenceException: Object reference not set to an instance of an object.    at Microsoft.SharePoint.WebControls.BaseChoiceField.Validate()    
 at System.Web.UI.Page.Validate()     at Microsoft.SharePoint.WebControls.SPPageStateControl.EnsureItemSavedIfEditMode(Boolean forceSave, String overwriteCommandHandler, String discardChangesCommandHandler)     
at Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingPageStateControl.SaveAndRouteIfNecessary(String eventArgument, PublishingPage& currentPage, Boolean saveOnly, Boolean& wasRouted)     
at Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingPageCheckinHandler.RaisePostBackEvent(String eventArgument)     at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object.     at Microsoft.SharePoint.WebControls.BaseChoiceField.Validate()     at System.Web.UI.Page.Validate()     
at Microsoft.SharePoint.WebControls.SPPageStateControl.EnsureItemSavedIfEditMode(Boolean forceSave, String overwriteCommandHandler, String discardChangesCommandHandler)    
at Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingPageStateControl.SaveAndRouteIfNecessary(String eventArgument, PublishingPage& currentPage, Boolean saveOnly, Boolean& wasRouted)     

at Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingPageCheckinHandler.RaisePostBackEvent(String eventArgument)    
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)     at System.Web.UI.Page.HandleError(Exception e)   

*******************************************************

Troubleshooting I did,

 1. Title is the only one required field and it have values during save.

 2. All Content Type values are available in the page layout


Sivabalan




Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>