So, I did an export-spweb of an existing site (migrated from SP2007 and still retains the SP2007 look and feel) and created the files containing it. I then went to a new farm, with a new site collection on a new content database. Nothing else exists there.
I run
Import-spweb –identity http://mytestsite/sites/ITSM -Path d:\temp\itsm –verbose –force –nofilecompression
and after a few minutes, we get:
[5/27/2014 1:47:15 PM] [List] [Links] Progress: Importing
[5/27/2014 1:47:15 PM] [List] [Links] ExtendedVerbose: Creating
[5/27/2014 1:47:15 PM] [List] [Links] Error: A list, survey, discussion board, or document library with the specified title already exists in this Web site. Please choose another title.
[5/27/2014 1:47:15 PM] [List] [Links] Debug: at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)
at Microsoft.SharePoint.Library.SPRequest.CreateListOnImport(String bstrUrl, Guid& pguidListId, String bstrTitle, String bstrDescription, Int32 lTemplateID, String bstrFeatureId, Guid guidRootFolderId, Int64 llFlags, Int32 iVersion, Int32 iAuthor,
String bstrFields, String bstrContentTypes, String bstrImageUrl, String bstrEventSinkAssembly, String bstrEventSinkClass, String bstrEventSinkData, Guid guidDocTemplateId, String bstrViews, String bstrForms, Boolean bCompressedSchema, DateTime dtTimeCreated)
at Microsoft.SharePoint.Deployment.ListSerializer.CreateList(SPWeb parentWeb, Dictionary`2 listMetaData, Boolean usingPublicSchema)
at Microsoft.SharePoint.Deployment.ListSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
at Microsoft.SharePoint.Deployment.XmlFormatter.CallSetObjectData(Object obj, SerializationInfo objectData, ISerializationSurrogate surrogate, ISurrogateSelector selector)
I don't understand why, with the -force, it just didn't overwrite whatever it thinks was there. That's how I interpret the meaning for the flag.
It suggests that I chose another title - I am trying to create an exact duplicate of the original site, so giving a different title defeats my objective.
Is there something that I am missing?
We ended up without any site at all to go to... at the very least it could have created all that it could from the file.
Thank you!










