I'm using SharePoint 2013 and the Export-SPWeb command. A little background - I have just attached and upgraded content databases from SharePoint 2010. All sites have been upgraded to SharePoint 2013 and there are no errors on any pages. All items are behaving like they were on the 2010 Farm (we've had test groups and users validating it for some time and everything is looking good). I need to move a sub site of one site collection to be a sub site in a different site collection so the manage content and structure tools won't work. The plan was to export the web and then import it into the other site collection.
I get an error when trying to export. I've followed the log through it's process to maybe find where the problem is. However, according to the log this error is thrown after it exports all of the data from all of the lists. So I'm a little confused on where in the export process the error is being thrown. The only relevant information I can find in the ULS logs are also listed below. Any suggestions would be nice. Thanks.
The Export Error is:
[4/15/2013 10:05:53 AM] FatalError: These columns don't currently have unique values.
[4/15/2013 10:05:53 AM] Debug: at System.Data.ConstraintCollection.AddUniqueConstraint(UniqueConstraint constraint)
at System.Data.ConstraintCollection.Add(Constraint constraint, Boolean addUniqueWhenAddingForeign)
at System.Data.ConstraintCollection.Add(Constraint constraint, Boolean addUniqueWhenAddingForeign)
at System.Data.DataRelationCollection.DataSetRelationCollection.AddCore(DataRelation relation)
at System.Data.DataRelationCollection.Add(DataRelation relation)
at System.Data.DataRelationCollection.Add(String name, DataColumn parentColumn, DataColumn childColumn)
at Microsoft.SharePoint.Deployment.ListObjectHelper.GetNextBatch()
at Microsoft.SharePoint.Deployment.ObjectHelper.RetrieveDataFromDatabase(ExportObject exportObject)
at Microsoft.SharePoint.Deployment.ListObjectHelper.RetrieveData(ExportObject exportObject)
at Microsoft.SharePoint.Deployment.ExportObjectManager.GetObjectData(ExportObject exportObject)
at Microsoft.SharePoint.Deployment.ExportObjectManager.MoveNext()
at Microsoft.SharePoint.Deployment.ExportObjectManager.ExportObjectEnumerator.MoveNext()
at Microsoft.SharePoint.Deployment.SPExport.SerializeObjects()
at Microsoft.SharePoint.Deployment.SPExport.Run()
[4/15/2013 10:05:53 AM] Progress: Export did not complete.
ULS Entries:
- Error Category: InvalidData Target Object Microsoft.SharePoint.PowerShell.SPCmdletExportWeb Details NULL RecommendedAction NULL
- System.ArgumentException: These columns don't currently have unique values. at System.Data.ConstraintCollection.AddUniqueConstraint(UniqueConstraint constraint) at System.Data.ConstraintCollection.Add(Constraint constraint, Boolean addUniqueWhenAddingForeign) at System.Data.ConstraintCollection.Add(Constraint constraint, Boolean addUniqueWhenAddingForeign) at System.Data.DataRelationCollection.DataSetRelationCollection.AddCore(DataRelation relation) at System.Data.DataRelationCollection.Add(DataRelation relation) at System.Data.DataRelationCollection.Add(String name, DataColumn parentColumn, DataColumn childColumn) at Microsoft.SharePoint.Deployment.ListObjectHelper.GetNextBatch() at Microsoft.SharePoint.Deployment.ObjectHelper.RetrieveDataFromDatabase(ExportObject exportObject) at Microsoft.SharePoint.Deployment.ListObjectHelper.RetrieveData(ExportObject exportObject) at Microsoft.SharePoint.Deployment.ExportObjectManager.GetObjectData(ExportObject exportObject) at Microsoft.SharePoint.Deployment.ExportObjectManager.MoveNext() at Microsoft.SharePoint.Deployment.ExportObjectManager.ExportObjectEnumerator.MoveNext() at Microsoft.SharePoint.Deployment.SPExport.SerializeObjects() at Microsoft.SharePoint.Deployment.SPExport.Run() at Microsoft.SharePoint.PowerShell.SPCmdletExport.InternalProcessRecord() at Microsoft.SharePoint.PowerShell.SPCmdlet.ProcessRecord()
- Export did not complete.
- These columns don't currently have unique values.