none
IMPORT ERROR : "The DateTime represented by the string is out of range."

    Question

  • Dears,

    I am trying to perform an IMPORT operation of a subsite to a different Site collection in the same web app. While doing so, I am getting the error -

    [3/29/2017 9:28:31 AM] [Folder] [Concept]   Error: The DateTime represented by the string is out of range.
    [3/29/2017 9:28:31 AM] [Folder] [Concept]   Debug:    at System.DateTime.Parse(String s, IFormatProvider provider)
       at System.Convert.ToDateTime(String value, IFormatProvider provider)
       at System.Runtime.Serialization.SerializationInfo.GetDateTime(String name)
       at Microsoft.SharePoint.Deployment.MetaInfoProperty..ctor(SerializationInfoHelper infoHelper)
       at Microsoft.SharePoint.Deployment.DictionarySerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
       at Microsoft.SharePoint.Deployment.FolderSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
       at Microsoft.SharePoint.Deployment.XmlFormatter.CallSetObjectData(Object obj, SerializationInfo objectData, ISerializationSurrogate surrogate, ISurrogateSelector selector)
    [3/29/2017 9:28:31 AM] FatalError: The DateTime represented by the string is out of range.
    [3/29/2017 9:28:31 AM] Debug:    at System.DateTime.Parse(String s, IFormatProvider provider)
       at System.Convert.ToDateTime(String value, IFormatProvider provider)
       at System.Runtime.Serialization.SerializationInfo.GetDateTime(String name)
       at Microsoft.SharePoint.Deployment.MetaInfoProperty..ctor(SerializationInfoHelper infoHelper)
       at Microsoft.SharePoint.Deployment.DictionarySerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
       at Microsoft.SharePoint.Deployment.FolderSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
       at Microsoft.SharePoint.Deployment.XmlFormatter.CallSetObjectData(Object obj, SerializationInfo objectData, ISerializationSurrogate surrogate, 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.SPImport.DeserializeObjects()
       at Microsoft.SharePoint.Deployment.SPImport.Run()
    

    I dug into the internet to get some hint and got a few mentioning that Manifest.xml in the .cmp file has sone weird date which needs to be changed.

    What I want to know is that is there any other way thic can be fixed? If not, what are the steps to update the xml and then again create the cmp file (there are 4 .cmp files created by the export, almost 25 mb in size)?

    Wednesday, March 29, 2017 7:36 AM

Answers

  • Hi IMSunny,

    Please check if the Time Zone setting of the subsite( site settings->site administration->Regional settings) is same as operating system time setting. If not, please change UTC time zone for your SharePoint environment and try to import again.

    Besides, if the issue exists, check in the article below to use PowerShell script to change the erroneous date in the Manifest.xml and try again:

    http://codecaching.blogspot.sg/2012/11/importing-cmp-and-string-was-not.html

    Best regards,

    Grace Wang


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com

    • Marked as answer by IMSunny Wednesday, April 5, 2017 7:34 AM
    Thursday, March 30, 2017 5:35 AM