Import-SPWeb

Hey there,
I´m trying to Export and Import a SharePoint 2013 Document Library. The Library itself is about 50gigs and contains around 160.000 items. The Export is done in less then a day with Export-SPWeb -IncludeUserSecurity -IncludeVersions All -NoFileCompression,
without any problems or errors.
Somehow the import causes more problems. After the Creation of 40.000 items (the folders I guess) the process is slowing down and the server is running out of memory. Even with 24GB of RAM. It would take several days just to import this single library.
Is there a faster way to Export and Import the Data without the loss of Versions or UserSecurity?
Thank you,
Hauke

Importing and exporting webs is a relatively inefficient process requiring a fair bit of calculation and processing.
If possible try to Export the entire site collection using PowerShell (Export-SPSite) and import that on the new environment.

Similar Messages

  • Powershell Import-SPWeb problem....

    This is driving me nuts because it's such a simple thing that should just work.  We are trying to export a site from one SC to another. The export works fine.   Here is the command I used:
    PS C:\Users\x> Export-SPWeb http://myteam.company.com/is/issites/ism/ -Path d:\ism\ism2.bak -IncludeUserSecurity -IncludeVersions All -NoFileCompression
    Here are some of the commands we’ve used to try to restore.  Note that we've done SEVERAL exports with different parameters and such which might explain the differences.:
    PS D:\> Import-SPWeb -Identity "http://myteam.company.com/ismgmt" -Path "d:\ism\ism2.bak"
    Import-SPWeb : The file d:\ism\ism2.bak does not exist.
    At line:1 char:13
    + Import-SPWeb <<<<  -Identity "http://myteam.company.com/ismgmt" -Path "d:\ism\ism2.bak"
        + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletImportWeb:
       SPCmdletImportWeb) [Import-SPWeb], SPException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWeB
    PS C:\Users\x> Import-SPWeb -Identity
    http://myteam.company.com/ismgmt/ -Path d:\ismnew
    Import-SPWeb : The file d:\ismnew does not exist.
    At line:1 char:13
    + Import-SPWeb <<<<  -Identity
    http://myteam.company.com/ismgmt/ -Path d:\ismnew
        + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletImportWeb:
       SPCmdletImportWeb) [Import-SPWeb], SPException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWeb
    PS D:\> Import-SPWeb -Identity "http://myteam.company.com/ismgmt" -Path d:\ism\ism2
     Import-SPWeb : The file d:\ism\ism2 does not exist.
    At line:1 char:13
    + Import-SPWeb <<<<  -Identity "http://myteam.company.com/ismgmt" -Path d:\ism\ism2
        + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletImportWeb:
       SPCmdletImportWeb) [Import-SPWeb], SPException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWeB
    I've tried this exporting to files with new names, some names with .cmp extension, (because I saw a few examples with that online), tried not specifying an extension name on the export, and so on.  The files definitely exist and I've verified that there
    aren't any trailing spaces on the end of the names. 
    I think the whole "file does not exist" is a complete red herring and the problem is completely different, but I can't figure out what.
    I’m using my id that has both domain admin as well as farm admin, and we’ve even gone into the ISM folder and shared it with everyone with no luck.  We’ve verified that the file exists and is spelled right.  We’ve tried with –nofilecompression
    as well as with out it.  We’ve tried with different file extensions as well as with none.   We've tried doing "Run as administrator" on Powershell. We’ve tried other things I’m sure but I’m starting to forget them.
    Can you see what we are missing?  This should be such a simple thing and I can’t figure out what is going wrong with it.
    Thanks in advance for the help.
    Ted

    What I ended up doing was just using Central Admin to export the site, list or whatever. I used powershell Import-SPWeb. For some reason the powershell command is not functioning Export-SPWeb. Doing
    it this way worked for me.
    Chris
    I don't have time right now to figure it out.

  • Import-spweb with -force errors out with "already exists" message

    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!

    Weird - how would a site have two lists with the same name and path?
    How would I get around this? I mean, the export had no problem creating the data... I expected the import to rebuild the same thing that was exported.
    I take a look at the lists and libraries on the original site and there is 1 list that appears with the name "Links". There are other lists that have the word Links as part of their name - but
    not a second one with the simple name of "Links".

  • Powershell import-spweb fails with "parent does not exist" error.

    So, I have a sp 2010 site at http://myfarm/sites/it/d22 and I want to copy the contents to
    http://myfarm/sites/bb/d62 .
    I perform
    Export-SPWeb -Identity  http://myfarm/sites/it/d22  -Path d:\temp\d22 
    -IncludeUserSecurity –IncludeVersions All  -NoFileCompression –Verbose
    and then I perform
    import-spweb -identity http://myfarm/sites/bb/d62 -path d:\temp\d22   -includeusersecurity  -nofilecompression -verbose -force
    It runs for 4-5 minutes and then produces the error:
    [Folder] []   Error: The file  cannot be imported because its parent /sites/bb/d22/ADMIN does not exist.
    [Folder] []   Error: The file  cannot be imported because its parent /sites/bb/d22/ADMIN does not exist.
    FatalError: The file  cannot be imported because its parent /sites/bb/d22/ADMIN does not exist.
    Progress: Import did not complete.
    Finish Time: 6/11/2014 8:59:23 AM.
    Duration: 00:03:40
    Finished with 0 warnings.
    Finished with 3 errors.
    Log file generated:
            d:\temp\d22\import.log
    Import-SPWeb : The file  cannot be imported because its parent /sites/bb/d22/ADMIN does not exist.
    At line:1 char:13
    + import-spweb <<<<  -identity
    http://myfarm/sites/bb/d62 -path d:\temp\d22   -includeusersecurity
      -nofilecompression -verbose -force
        + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletImportWeb:SPCmdletImportWeb) [Import-SPW
       eb], SPException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWeb
    Of course bb/d22/ADMIN does not exist - d22 exists under sites/it . And Admin should be part of the export of d22 that should be created if the process completes.
    Anyone have any idea what is going on here?

    http://www.livingonthecloud.net/2010/05/exporting-and-importing-sharepoint.html
    This error is not helpful and for us the problem was permission related. We had used users (albeit domain admin accounts) to export and import the data that were different from the site collection administrators. To fix we had to do the following:
    Make sure the site collection administrator is the same on both the source and destination servers.
    When running the export and import, make sure you are running the stsadm commands as the site collection administrator. This ensures the permissions are aligned and the import should work.
    stsadm Import error: The 'ASPXPageIndexMode' attribute is not declared
    Not sure what the cause of this error is, but we found a fix online:
    To get round it I edited C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML\DeploymentManifest.xsd on the destination server:
    under section
       <!-- SPWeb definition -->
    I added the following.
    <xs:attribute name="ASPXPageIndexMode" type="xs:string" use="optional"></xs:attribute>
    <xs:attribute name="NoCrawl" type="xs:boolean" use="optional"></xs:attribute>
    <xs:attribute name="CacheAllSchema" type="xs:boolean" use="optional"> </xs:attribute>
    <xs:attribute name="AllowAutomaticASPXPageIndexing" type="xs:boolean" use="optional"></xs:attribute>

  • Import-SPWeb Error - The string was not recognized as a valid DateTime. There is an unknown word starting at index 0

    Using the Export-SPWeb PowerShell command on a server to move a document library from one site colelction in a content database to another site collection in a seperate content database.
    Am using the following command:
    Export-SPWeb
    -Identity
    https://sp.bacl.net/legal/rr
    -Path
    \\bacvsspa01\backups\rr\rr.cmp
    -ItemUrl
    rr
    -IncludeVersions
    All
    -IncludeUserSecurity
    Not all documents are transferred hwoever. I get some errors like the following:
    [11/02/2014 2:21:44 PM] [ListItem] [16Jun11 17.32.09_BAC employees provid_Tom Heading.msg] Progress: Importing
    [11/02/2014 2:21:44 PM] [ListItem] [16Jun11 17.32.09_BAC employees provid_Tom Heading.msg]   Verbose: List URL: /legal/legal/rr
    [11/02/2014 2:21:44 PM] [ListItem] [16Jun11 17.32.09_BAC employees provid_Tom Heading.msg]   Error: The string was not recognized as a valid DateTime. There is an unknown word starting at index 0.
    [11/02/2014 2:21:44 PM] [ListItem] [16Jun11 17.32.09_BAC employees provid_Tom Heading.msg]   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.FileSerializer.GetMetaInfo(SerializationInfoHelper infoHelper)
       at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFile(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid id, String& fileUrl, Boolean fileExistsInDb, Boolean isFirstVersion, Boolean hasWebParts, SerializationInfoHelper
    infoHelper, SerializationInfoHelper infoHelperListitem, StreamingContext context)
       at Microsoft.SharePoint.Deployment.FileSerializer.CreateOrUpdateFileAndAssocData(Object fileOrListItem, SPLoggerObject loggerObject, SPWeb web, Guid id, String& fileUrl, Boolean fileExistsInDb, SerializationInfoHelper infoHelper, SerializationInfoHelper
    infoHelperListitem, StreamingContext context, ISurrogateSelector selector)
       at Microsoft.SharePoint.Deployment.ListItemSerializer.AddOrUpdateDoclibItem(SerializationInfoHelper infoHelper, SPListItem& listItem, SPLoggerObject loggerObject, SPWeb web, Guid newId, String& listItemServerRelativeUrl, Boolean bIsPublish,
    Boolean exists, StreamingContext context, ISurrogateSelector selector)
       at Microsoft.SharePoint.Deployment.ListItemSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)
    I had a look in the .cmp file that was created (Changed extensions to .cab) and had a look at the Manifest.xml file. Relevant XML below:
    <SPObject Id="b18cc711-e5df-4ee7-9639-866e5b6613b0" ObjectType="SPFile" ParentId="1ad76e87-43e6-4cbf-a0a1-53af4975668f" ParentWebId="4be7e61f-b1c7-473f-acc3-0bae06e32024" ParentWebUrl="/legal/rr" Url="/legal/rr/rr/Employees
    giving First Aid/16Jun11 17.32.09_BAC employees provid_Tom Heading.msg">
            <File Url="rr/Employees giving First Aid/16Jun11 17.32.09_BAC employees provid_Tom Heading.msg" Id="b18cc711-e5df-4ee7-9639-866e5b6613b0" ParentWebId="4be7e61f-b1c7-473f-acc3-0bae06e32024"
    ParentWebUrl="/legal/rr" Name="16Jun11 17.32.09_BAC employees provid_Tom Heading.msg" ListItemIntId="37" ListId="020f8304-a50f-413b-be27-40d0ccc9e497" ParentId="1ad76e87-43e6-4cbf-a0a1-53af4975668f" TimeCreated="2011-11-16T07:02:00"
    TimeLastModified="2011-11-16T07:02:00" Version="1.0" CheckinComment="Loaded Using Dell Solutions for SharePoint" FileValue="00000013.dat" Author="29" ModifiedBy="24">
                <Properties>
                    <Property Name="vti_title" Type="String" Access="ReadOnly" Value="BAC employees providing first aid" />
                    <Property Name="source_item_id" Type="String" Access="ReadWrite" Value="source_item_id:1" />
                    <Property Name="vti_foldersubfolderitemcount" Type="Integer" Access="ReadOnly" Value="0" />
                    <Property Name="Attach Count" Type="String" Access="ReadWrite" Value="Attach Count:0" />
                    <Property Name="Created By" Type="Boolean" Access="ReadWrite" Value="Created By:BNE_AIR1\\jbrown" />
                    <Property Name="Importance" Type="String" Access="ReadWrite" Value="Importance:1" />
                    <Property Name="From1" Type="Time" Access="ReadWrite" Value="From1:Tom Heading" />
                    <Property Name="AttachCount" Type="String" Access="ReadWrite" Value="AttachCount:0" />
                    <Property Name="ContentTypeId" Type="String" Access="ReadWrite" Value="0x0101003699C96894FF79479322E4A235852946000530E240279BA54D8F621B39A4E09CF3"
    />
                    <Property Name="Modified By" Type="Boolean" Access="ReadWrite" Value="Modified By:BNE_AIR1\\jbrown" />
                    <Property Name="vti_folderitemcount" Type="Integer" Access="ReadOnly" Value="0" />
                    <Property Name="display_urn\:schemas-microsoft-com\:office\:office#Author" Type="String" Access="ReadWrite" Value="Jenny Brown"
    />
                    <Property Name="Document Created By" Type="Boolean" Access="ReadWrite" Value="Document Created By:BNE_AIR1\\jbrown" />
                    <Property Name="Created_x0020_By" Type="Boolean" Access="ReadWrite" Value="Created_x0020_By:BNE_AIR1\\jbrown" />
                    <Property Name="vti_cachedtitle" Type="String" Access="ReadOnly" Value="BAC employees providing first aid" />
                    <Property Name="Modified_x0020_By" Type="Boolean" Access="ReadWrite" Value="Modified_x0020_By:BNE_AIR1\\jbrown" />
                    <Property Name="ContentType" Type="String" Access="ReadWrite" Value="Legal Document" />
                    <Property Name="Attach_x0020_Count" Type="String" Access="ReadWrite" Value="Attach_x0020_Count:0" />
                    <Property Name="display_urn\:schemas-microsoft-com\:office\:office#Editor" Type="String" Access="ReadWrite" Value="Jenny Brown"
    />
                    <Property Name="vti_parserversion" Type="String" Access="ReadOnly" Value="15.0.0.4535" />
                    <Property Name="To" Type="Boolean" Access="ReadWrite" Value="To:Barry Peach" />
    <Property Name="From" Type="Time" Access="ReadWrite" Value="From:Tom Heading" />
                    <Property Name="Document Modified By" Type="Boolean" Access="ReadWrite" Value="Document Modified By:BNE_AIR1\\jbrown"
    />
                </Properties>
            </File>
        </SPObject>
    Now, looking at the source document library, this document has the field in question set to String, so why has it been marked as a Time filed type in the expiort file?
    Is anyone aware of any issues with the Export-SPWeb commandlet?
    SharePoint 2013 + March PU + AUG 2013 CU.
    Any help appreciated.

    Hi Richard,
    According to your description, the error occurred when you ran the Export-SPWeb command.
    I recommend to verify the things below for troubleshooting:
    Save the document library as an template(include content) and create a new document library based on the template, then run the Export-SPWeb command to export the new document library to see if the issue still occurs.
    Did this issue occur with other document library? If not, you can delete the string field with error, then run the Export-SPWeb command to narrow the issue scope.
    As a workaround, you can save the library as a template and deploy it to the site collection where you want to move the library, then create the new library in the site collection.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Export and import list error(Import-SPWeb)

    Hi!
    I try to understand import(and export) processes in SharePoint. I've made a .cmp backup of one list. After that I delete some elements. And now I try to import list from cmp file to the same site but it fails - The element 'WebPart' in namespace 'urn:deployment-manifest-schema'
    has invalid child element 'Joins' in namespace 'urn:deployment-manifest-schema'. I didn't make any changes on the site. 
    Also, I have a question - Can I use export for archiving lists? 
    For example - I have a list with 3000 elements. I make a backup and delete them. When I need them again, I import list - and restored items appear in list. 

    An Exported list can't be re-imported into the same site.  Export is used to make a template that can be used to Import the list to a new site.
    Its also not a good choice for making backups since there are limits on how much content can be included in the export.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Import List with History

    I have migrated sharepoint Custom List from a Sharepoint2010 server to other Sharepoint2010 server by the commands: export-spweb, import-spweb.
    1) The data of the list is migrated fine but column with type "Person and group" gets empty. How to move the data with type "Person and Group"? 
    2) Another problem with this migration is in form of "Version History" for the migrated list: field "Modified By" gets "System Account" instead of dedicated users that made changes of the list.
    How to resolve these issues?
    Before:
    After:

    Hi,
    Have you used the include security,version attributes on on Export command ?
    And also the same user or group available on your target server,? If you missed out any of the above by default system account will be used as current user while exporting and importing.
    Murugesa Pandian.,MCTS|App.Devleopment|Configure

  • Import a application In sharepoint 2010

    I Have a exported application in my  c drive  in a folder . I want to import it to a new web application . how can  i achieve this
    I tried using  management shell  like :
    import-spweb http: //  path:c:\path name
    but its throwing an error  like. import -spweb:a positional parameter cannot be found that excepts  path:c:\path name.
    please  help...!!!!

    Restoring a Web Application will depend on how you backed it up.  Here's a page that discusses all the options for how to restore a Web Application.  To restore a Web Application using PowerShell you would use a Restore-SPFarm command, not import-SPWeb.
     Import-SPWeb is used to restore a SubSite that was backed up using Export-SPWeb.  But for that you need an existing Web Application and Site Collection.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Import WebSite and Business Data Connectivty Services together

    Hi,
    On my development environment (SharePoint 2013 server), I have a web site that contains a documenbt list. This document list is linked to some Business Data Connectivity Objects. (I have some external data columns plugged on my BDC objects).
    Now, I need to import this web site and these BDC objects on another environment.
    I need to do it with power shell commands, so I do like this :
    $MetadataStore = Get-SPBusinessDataCatalogMetadataObject -BdcObjectType "Catalog" -ServiceContext http://localhost
    Import-SPBusinessDataCatalogModel -Path "<path>\BDCmodel.bdcm" -Identity $MetadataStore
    New-SPWeb http://localhost/MyWebSite -Template "STS#0"
    Import-SPWeb -Identity http://localhost/MyWebSite -path MyWebSite.cmp -Confirm:$false -Force -ErrorVariable errors -UpdateVersions Overwrite
    The two importations are OK but my document list does not find my BDC model. The link is broken.
    Is there something special to do to manage and keep the link between my document list and my BDC objects ?
    Thanks for your help.

    Hi,
    According to your post, my understanding is that you want to use PowerShell commands to import a site and BDC model into another environment.
    I recommend that you can try to use the following PowerShell commands to check if it works.
    param(
    [string]$SiteUrl=$("http://localhost")
    Write-Host "Getting Service Context at $SiteUrl..."
    $svcContet = Get-SPSiteAdministration -Identity $SiteUrl
    Write-Host "Getting Business Data Catalog Metadata Object..."
    $catalog = Get-SPBusinessDataCatalogMetadataObject -BdcObjectType Catalog -ServiceContext $svcContet 
    Write-Host "Importing BCS Modal..."
    Import-SPBusinessDataCatalogModel -Identity $catalog -Path ".\RinkNetModel.xml" -force -ModelsIncluded -PropertiesIncluded -PermissionsIncluded -Verbose -ErrorAction Stop -ErrorVariable $err
    Then, you can check if the model successfully loaded and if you can use the External Content Types that the model contain.
    To display all BDC models in the metadata store, type on one line the following command:
    Get-SPBusinessDataCatalogMetadataObject -BdcObjectType Mode -ServiceContext
    http://SP01:12345 -Name "*" | select Name
    To display all the external systems in the BDC metadata store, and to display the type of external system together with its entities (external content types), use the following command:
    Get-SPBusinessDataCatalogMetadataObject -BdcObjectType LoBSystem -ServiceContext
    http://SP01:12345 -Name "*" | select Name, SystemType, Entities
    For more information, you can refer to:
    http://habaneroconsulting.com/insights/importing-bcs--model-using-powershell#.VDy-2P6KCM8
    http://dotnetfollower.com/wordpress/2012/05/sharepoint-deploying-a-bdc-model-via-powershell/
    http://www.manula.com/manuals/lightning-tools/bcs-meta-man-for-windows/1/en/topic/importing-the-bdc-model-into-sharepoint
    Thanks,
    Yumi Fu
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected].

  • SharePoint Error when importing web: Requested value 'PublishingPages' was not found

    I tried to import a publishing web using the following powershell command:
    Import-SPWeb http://****/test -Path E:\data.cmp -UpdateVersions Overwrite
    However, it returns an error:
    Import-SPWeb : Requested value 'PublishingPages' was not found. At line:1 char:1 + Import-SPWeb http://****/test -Path E:\data.cmp -Update ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData:
    (Microsoft.Share...CmdletImportWeb: SPCmdletImportWeb) [Import-SPWeb], ArgumentException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWeb
    Please help me to address this as it took me all day long to find the root cause.
    Thanks

    Hi Thang,
    Without knowing much of what you are trying to do here like whether or not you are trying to promote/ demote a publishing site; I wanted to let you know about this limitation: 
    "For site collections that make use of the publishing feature it is not supported to migrate
    root sites into sub sites or sub sites into root sites."
    See the below blog post for details. Hope this helps!
    http://blogs.technet.com/b/stefan_gossner/archive/2009/05/27/limitations-of-stsadm-o-export-import-related-to-publishing-sites.aspx
    BlueSky2010
    Please help and appreciate others by using forum features: "Propose As Answer", "Vote As Helpful" and
    "Mark As Answer"

  • Failing to export with Export-SPWeb - Invalid Field Name error

    Hi,
    I am trying to export a site collection and restore the site collection to a sub site. In order to do that I have used Export-SPWeb command to export the site collection. The command I used 
    Export-SPWeb -Identity http://SitecollectionURL/ -Path "F:\filename.bak" -IncludeUserSecurity -Compression 1024 -IncludeVersions 4
    I got the below error,
    Progress: Starting to process objects of type ContentType.
    FatalError: Invalid field name. {c876558a-1cb9-4a87-bf55-ee69876f6b8b} http://sitecollectionURL/
    Debug:    at Microsoft.SharePoint.SPFieldCollection.GetFieldById(Guid fieldId, Boolean bThrowException)
       at Microsoft.SharePoint.SPFieldLinkCollection.Load(XmlReader xrdr)
       at Microsoft.SharePoint.SPFieldLinkCollection.EnsureLoaded()
       at Microsoft.SharePoint.SPFieldLinkCollection.Save(XmlTextWriter xwtr)
       at Microsoft.SharePoint.Deployment.ContentTypeSerializer.GetDataFromDataSet(Object obj, SerializationInfo info, StreamingContext context)
       at Microsoft.SharePoint.Deployment.DeploymentSerializationSurrogate.GetObjectData(Object obj, SerializationInfo info, StreamingContext context)
       at Microsoft.SharePoint.Deployment.XmlFormatter.SerializeObject(Object obj, ISerializationSurrogate surrogate, String elementName, Boolean bNeedEnvelope)
       at Microsoft.SharePoint.Deployment.XmlFormatter.Serialize(Stream serializationStream, Object topLevelObject)
       at Microsoft.SharePoint.Deployment.SPExport.SerializeObjects()
       at Microsoft.SharePoint.Deployment.SPExport.Run()
    I need assistance on this. 
    Thanks in advance
    -Sasi

    Hi Sasi,
    Export-SPWeb is used to export a site, list, or library rather than a site collection. The Identity of the command should be a site.
    Based on your description, my understanding is that you want to export a site and import it to aother site. Is it right?
    I run your command using the URL of my site instead of the
    http://SitecollectionURL/, everything worked well. Please re-run the command below:
    Export-SPWeb -Identity <URL of your site> -Path "F:\filename.bak" -IncludeUserSecurity -Compression 1024 -IncludeVersions 4
    In addition, please try to export the site via Central Administration->Backup and Restore->Export a site or list under Granular Backup, and select the site collection and the site, then  click ‘Start Export’. If you want to import the exported
    site to another site, you should use Import-SPWeb command.
    About Export-SPWeb command:
    http://technet.microsoft.com/en-us/library/ff607895(v=office.15).aspx
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Possible to use stsadm export / import to copy subsite to the same site with diff subsite name?

    In the same site is that possible to use stsadm export/import to copy subsite to a new diff subsite name?
    I do not want to use the SaveAs Template method, I need command mode.

    You should create an empty site.
    Go to your site collection and click siteactions --> new site --> Select custom template, click create.
    Here you choose meeting2 as Title/url
    Now execute your import command (Import-SPWeb http://vee:111/meeting2 -Path
    C:\temp\meeting_exp.cmp -UpdateVersions -Overwrite) 
    Now wait, when the import is finished, check your site!
    That should do it.

  • Export/Import site lists,library sharpoint 2013

    hi,
    I have two two web application on one sharepoint server 2013 (one farm) . First web application (compani.my.co) is pruduction and contains a subsites with a lot library, list, calendar , .... . On second web application I trying to import   library
    from production site .
    I am using :
    Export-SPWeb http://company.my.co/dok -Path C:\backup\test.cmp 
    Import-SPWeb http://Newcompany.my.co/dok/ -Path C:\backup\test.cmp 
    error: 
    Import-SPWeb : Cannot import site. The exported site is based on the template STS#1 but the destination site is based on the template CMSPUBLISHING#0. You can
    import sites only into sites that are based on same template as the exported site.
    The problem is about mismatch site template. How can I resolve this problem?

    hi, 
    I created new subsite with default template , enable publishing feature and try to import but still the same. 
    Error 
    Log file generated:
            C:\backup\test.cmp.import.log
    Import-SPWeb : Cannot import site. The exported site is based on the template STS#1 but the destination site is based on the template STS#0. You can import
    sites only into sites that are based on same template as the exported site.
    At line:1 char:1
    + Import-SPWeb
    http://Newcompany.my.co/dok2 -Path C:\back ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidData: (Microsoft.Share...CmdletImportWeb:SPCmdletImportWeb) [Import-SPWeb], SPException
        + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletImportWeb

  • Export/Import List without changing the GUIDs

    Hi, I have this problem:
    I want to export a list from one Web Application and Import it in another Web Application. 
    I have a list which has a Master-Details Display Form. It was made via the SharePoint Designer so all the connections between different lists happen using GUIDs(lots of them - too many to rename). 
    What I tried: I exported the list via the Central administration. Then I did
    Import-SPWeb -identity <SiteCollectionUrl> -path <C:\...>
    to the new Web Application. It created the list but the GUIDs are different and the display form fails.
    Any ideas?
    PS: Backup/Restore is Not an option.

    When you perform an import, SharePoint will create new GUIDs for (some of) the objects in the site. It does this so the
    objects in your imported site do not conflict with existing GUIDs in the farm. This allows you to perform an export of a site and then import it in a different location in the same farm.
    But below link provide you an alternate option through which you can save GUIDs of exported items.
    http://social.technet.microsoft.com/Forums/en-US/3b6d210b-deb1-46ec-9e06-5fee4d3ec793/how-to-keep-list-guid-after-using-stsadm-import?forum=sharepointgenerallegacy 
    Let us know if this helps, thanks
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

  • Adding a Second Project Site with same restore data

    This is the first time I've had to accomplish this 
    I have a dev server where I restore a backup from 2 weeks ago to http://devserver/pwa
    My team has asked for a restore from 2 weeks + 1 day to http://devserver:99/pwa - I've tried deleting site collections, tried several other ways of doing the restore; however, during the mount-spdatabase I get only 1 site to come back (pwa)  but
    it doesnt show in the site list
    The enumallwebs shows the following (notice the in sitemap)
    stsadm -o enumallwebs -databasename content_database  
    databse site count 1
    <site ID = random characters > <owner = farmguy> <In sitemap = False>
    Web count = 235
    ==============
    I believe/know the issue deals with the same site ID being on the first pwa site; however when I try to do a Mount-SPContentDatabase content-database -WebApplication "http://dev:99" -AssignNewDatabaseID I still get the same issues - new database
    ID but still same site ID for the "dev/pwa" site database
    Is there anyway to clone (yes I've seen the other articles) or have two sites with the same data?
    I've also thought about trying to export the stsadm enumallwebs data and copying that to a new PWA site but have been unsuccessful in the export (or even finding a way to do it)
    Can I get any ideas on how to either
    1) Change the site ID from a database backup/restore
    2) Restore a PWA site to the same server/database server 
    3) other ideas?
    My team members would like to do a comparison of the two dates between a project to check for differences (I just found out about
    FluentPro Audit Lite Pro)  
    Any and all suggestions would be appreciated... 
    Thank you 

    I'm still experiencing issues
    I tried the following (http://social.technet.microsoft.com/Forums/projectserver/en-US/edc6f56a-5850-4102-841b-32d4df6e6882/how-i-to-restore-the-project-site-deleted-on-project-server-2010-?forum=projectserver2010general) by recovering the data from an unattached
    Database (I also did the site collection backup)
    1) Trying to do an Import-SPWeb but this was unsuccessful
    created a web application 99 -> provisioned a pwa with the old databases -> data appear in project center but when you click on the sites it gives an error message
    created a web application 99 -> create a site collection -> provisioned a pwa with the old databases -> data appear in project center but when you click on the sites it gives an error message - same as above
    the below while it held promise it didnt work for going against a separate port... using the data from an unattached content database export (link above)
    also reference (http://pwmather.wordpress.com/2012/06/28/move-a-sharepoint-2010-sub-site-to-a-different-location-on-the-same-farm-sp2010-ps2010-powershell/) 
    2) Tried to do a SPSite Restore and it ends up deleting the provisioned PWA and still appears to be there but no PWA soo 
    3) removing the ophaned PWA site (http://mrhodes.net/2011/02/24/fixing-an-orphaned-site-collection-within-project-server-2010/) wont help since it will remove the PWA sites/subsites from the content database I want
    4) I'm still unsure how to approach what Krishnp stated...
    unless #2 was his approach
    Any other help would be greatly appreciated - I'm trying everything it's time consuming since the backup files take over an hour to restore to a site - while it is faster to do the original when its just one content database/4 pwa databases... 
    I've read its possible to do to different ports (of course I closed the page) but I have only seen one post point it out 
    thanks again 

Maybe you are looking for

  • Error while building Local DCs (cd355)

    Hi, I'm trying to use the example https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/bd0e0401-0801-0010-aaab-d0e1742da383 but after importing DCs into: LocalDevelopment/MyComponents When I'd built all the DCs I had the same erro

  • Problem with opening project in NetBeans 5.0

    Hi, When i try to open an existing project in NetBeans 5.0 or try to add a new platform to a certain project, my computer is stack and i can't work with the NetBeans IDE ( i have to kill the process) How can i fix this problem?

  • Icons in .jar files...

    Hi , I have configured successfully and see some icons on buttons. Next day , i took the .jar file , copied it in \java folder and i have configured appropriately the formsweb.cfg file - calling this .jar file among others- according to my system (wh

  • Is it possible to retry the err mess in Adapter engine thru Batch job

    Hi Experts, Is it possible to restart the errored messages in the adapter engine thru a batch job as we have for the Integration server, apart from setting the maximum number of retries and the intervals in the J2EE visual cmposer..?.. In case the re

  • Error on Adobe AIR

    Hello: I'm trying to run a Content Viewer in an Intel tablet with Atom processor and Android 3.2 (Honeycomb)... The issue is that it shows me a legend that I require Adobe Air to run the app. I install the AIR 3.2 version and when I start again the C