FatalError: Object reference not set to an instance of an object...at...ContentTypeSerializer.GetContentType

Sep 14, 2009 at 7:09 PM

I'm trying to run an import on a handful of document libraries, but get a similar error message for each one.  It is possible that I'm using the wrong parameters in the import wizard.  Here's a list of the parameters followed by the error.

Action:  Import

Sharepoint site:

       Site URL:  http://intranet/projects/archive2

      Import web URL:  http://intranet/projects/archive2

Import type:

     From single file

     Retain object IDs (unchecked)

     Include Security:  All

     Version options:  Append

     User info update:  Import All

[9/12/2009 12:07:58 AM]: Progress: Importing File 2009 Comp Budget Master/Forms/AllItems.aspx.
[9/12/2009 12:07:58 AM]: Warning: Cannot revert to the site definition version of this file. It is a custom file and is not part of the site definition.
   at Microsoft.SharePoint.SPFile.RevertContentStreamInternal()
   at Microsoft.SharePoint.SPFile.RevertContentStream()
   at Microsoft.SharePoint.Deployment.FileSerializer.SetGhostedFile(Object fileOrListItem, SPWeb web, Guid existId, String fileUrl, SerializationInfoHelper infoHelper, SerializationInfoHelper infoHelperListitem, SPImportSettings settings, Boolean fileExistsInDb, StreamingContext context, ImportObjectManager importObjectManager)
[9/12/2009 12:07:58 AM]: Progress: Importing File Final Budget Worksheets/Forms/AllItems.aspx.
[9/12/2009 12:07:58 AM]: Progress: Importing File Final Budget Worksheets/Forms/Combine.aspx.
[9/12/2009 12:07:58 AM]: Progress: Importing File Final Budget Worksheets/Forms/DispForm.aspx.
[9/12/2009 12:07:58 AM]: Progress: Importing File Final Budget Worksheets/Forms/EditForm.aspx.
[9/12/2009 12:07:58 AM]: Progress: Importing File Final Budget Worksheets/Forms/repair.aspx.
[9/12/2009 12:07:58 AM]: Progress: Importing File Final Budget Worksheets/Forms/template.doc.
[9/12/2009 12:07:58 AM]: Progress: Importing File Final Budget Worksheets/Forms/Upload.aspx.
[9/12/2009 12:07:58 AM]: Progress: Importing File Final Budget Worksheets/Forms/WebFldr.aspx.
[9/12/2009 12:07:58 AM]: FatalError: Object reference not set to an instance of an object.
   at Microsoft.SharePoint.Deployment.ContentTypeSerializer.GetContentType(SPContentType sourceContentType, ImportObjectManager importObjectManager, Boolean isParentSystemObject)
   at Microsoft.SharePoint.Deployment.ContentTypeSerializer.ProcessContentType(SPContentType sourceContentType, String contentTypeXml, ImportObjectManager importObjectManager, Boolean IsParentSystemObject)
   at Microsoft.SharePoint.Deployment.ContentTypeSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
   at Microsoft.SharePoint.Deployment.XmlFormatter.ParseObject(Type objectType, Boolean isChildObject)
   at Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type objectType, Boolean isChildObject, DeploymentObject envelope)
   at Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream serializationStream)
   at Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream serializationStream)
   at Microsoft.SharePoint.Deployment.ImportObjectManager.ProcessObject(XmlReader xmlReader)
   at Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects()
   at Microsoft.SharePoint.Deployment.SPImport.Run()
Sep 17, 2009 at 8:27 AM

Hi Jeff

Try again with the "Retain Object Ids" box checked.

 

Regards

 

Nigel

Oct 29, 2009 at 9:44 AM

Hi

I get a similar error to the one above when trying to import a handful of site collections. I can export and import some of the site collections individually but not the main site.
If I try to import only the main site it refers to a dependency to a site collection of WIKI type so I include that site in the export.
But then I get this error when importing:
I tried with retain Object ID's checked without any difference.
Any clue of where I shall start looking for the origin of the error?
Thank in advance
/Lars

-------
[2009-10-29 09:17:18]: Progress: Importing Group member 225.
[2009-10-29 09:17:18]: Progress: Importing Group member 226.
[2009-10-29 09:17:18]: Progress: Importing Group member 227.
[2009-10-29 09:17:18]: Progress: Starting content import.
[2009-10-29 09:17:18]: FatalError: Object reference not set to an instance of an object.
   at System.Windows.Forms.Control.MarshaledInvoke(Control caller, Delegate method, Object[] args, Boolean synchronous)
   at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
   at COB.SharePoint.Utilities.DeploymentWizard.UI.frmContentDeployer.setImportStarted(ProgressBar prgBar, SPDeploymentEventArgs e, Object data)
   at COB.SharePoint.Utilities.DeploymentWizard.UI.frmContentDeployer.import_Started(Object sender, SPDeploymentEventArgs e)
   at COB.SharePoint.Utilities.DeploymentWizard.Core.WizardDeployment.import_Started(Object sender, SPDeploymentEventArgs e)
   at Microsoft.SharePoint.Deployment.SPDeployment.OnStarted(SPDeploymentEventArgs e)
   at Microsoft.SharePoint.Deployment.SPImport.Run()
[2009-10-29 09:17:19]: Progress: Import Completed.
[2009-10-29 09:17:19]: Finish Time: 2009-10-29 09:17:19.
[2009-10-29 09:17:19]: Completed with 0 warnings.
[2009-10-29 09:17:19]: Completed with 1 errors.
 _

Nov 18, 2009 at 2:43 PM

Hey, your problem is (probably) caused by wrong filled "Import web URL" field.