I am trying to import an exported sub site which exists in a separate site collection to another site collection that is hosted by different web application.
I'm running the import command like this:
Import-SPWeb http://sitename/destweb -Path ("D:\sourceweb.cmp") –NoLogFile
Then I get an error message:
Import-SPWeb : The DateTime represented by the string is out of rangeImport-SPWeb
In log file, I found it throws an exception at importing a particular document library:
[3/3/2016 10:21:22 AM] [Folder] [مجلد] Progress: Importing [3/3/2016 10:21:22 AM] [Folder] [مجلد] Verbose: Source URL: DocLib/Forms/مجلد [3/3/2016 10:21:22 AM] [Folder] [Docs] Progress: Importing [3/3/2016 10:21:22 AM] [Folder] [Docs] Verbose: Source URL: Docs [3/3/2016 10:21:22 AM] [Folder] [Docs] Error: The DateTime represented by the string is out of range. [3/3/2016 10:21:22 AM] [Folder] [Docs] 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/3/2016 10:21:22 AM] FatalError: The DateTime represented by the string is out of range.
Note: I have the exported sub site as 3 files:
1- sourceweb.cmp
2- sourceweb1.cmp
3- sourceweb2.cmp
Any help would be much appreciated.
Thank you.