Swetha

Swetha

  • NA
  • 102
  • 3.2k

Unable to add content type "Link To a document" to library

Jul 7 2017 9:48 AM
Hi,
I am trying to attach a "Link to a Document" content type to a document library of a subsite in sharepoint 2013 on premise site. But I couldn't because throwing a error.I have tried to attach the same content type to a library in root site throwing same error.Below is the error image and error we found but no idea of the error:
 

System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.SharePoint.SPContentType.ProvisionFieldOnList(SPField field, Boolean bRecurAllowed) at Microsoft.SharePoint.SPContentType.ProvisionFieldsOnList() at Microsoft.SharePoint.SPContentType.DeriveContentType(SPContentTypeCollection cts, SPContentType& ctNew) at Microsoft.SharePoint.SPContentTypeCollection.AddContentTypeToList(SPContentType contentType) at Microsoft.SharePoint.SPContentTypeCollection.AddContentType(SPContentType contentType, Boolean updateResourceFileProperty, Boolean checkName, Boolean setNextChildByte) at Microsoft.SharePoint.SPContentTypeCollection.Add(SPContentType contentType) at Microsoft.SharePoint.ApplicationPages.AddContentTypeToListPage.Update(Obj... 31fca84e-90db-435f-8de3-e4415e3f6758

 Please help me out.
  
 

Answers (5)