SOLVED

Move documents between team sites

%3CLINGO-SUB%20id%3D%22lingo-sub-1285072%22%20slang%3D%22en-US%22%3EMove%20documents%20between%20team%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1285072%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20attempting%20to%20use%20either%20copy%20or%20move%20to%20copy%20documents%20from%20one%20team%20site%20to%20another.%26nbsp%3B%20The%20copy%20is%20working%20just%20fine%2C%20but%20I%20want%20to%20move%20the%20metadata%20(it%20is%20not%20managed%20metadata)%20along%20with%20the%20files.%26nbsp%3B%20I%20thought%20that%20move%20to%20was%20supposed%20to%20move%20the%20metadata%20but%20it%20does%20not%20seem%20to%20be%20working.%26nbsp%3B%20What%20is%20the%20best%20way%20for%20me%20to%20move%20these%20files.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20working%20on%20SharePoint%20Online%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1285072%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EDocument%20Library%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EFiles%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1285368%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20documents%20between%20team%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1285368%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3EIt%20is%20the%20default%20expected%20behavior.%20The%20Content%20Type%20and%20Fields%20should%20be%20present%2Fcreated%20in%20the%20destination%20library%20after%20which%20you%20would%20be%20able%20to%20move%20the%20files%20along%20with%20their%20metadata.%3C%2FP%3E%3CP%3EIf%20you%20are%20moving%20the%20files%20to%20a%20fresh%20new%20document%20library%20at%20the%20destination%20and%20if%20your%20source%20library%20has%20only%20few%20fields%2C%20then%20you%20could%20create%20those%20fields%20in%20the%20destination%20library%20manually%2C%20otherwise%2C%20if%20your%20Library%20has%20lots%20of%20Content%20Types%20and%20Fields%20including%20Custom%20Content%20Types%2C%20you%20could%20Save%20the%20Source%20Library%20as%20Template%20with%20content%20and%20upload%20this%20template%20to%20List%20Template%20Gallery%20in%20your%20destination%20site%20and%20use%20this%20template%20to%20create%20the%20new%20document%20library%20and%20you%20could%20move%20subsequent%20new%20files%20with%20metadata%20using%20Copy%20To%20%2F%20Move%20To%20as%20per%20your%20requirement.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F528752%22%20target%3D%22_blank%22%3E%40tdemichiei%3C%2FA%3E%3C%2FP%3E%3CP%3EI%20hope%20this%20is%20helpful%2C%20please%20like%20it%20or%20mark%20it%20as%20a%20solution%20if%20it%20answers%20your%20query.%3C%2FP%3E%3CP%3EThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1285409%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20documents%20between%20team%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1285409%22%20slang%3D%22en-US%22%3E%3CP%3EWhich%20is%20the%20default%20behavior%3F%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F114813%22%20target%3D%22_blank%22%3E%40Swaminathan%20Sriram%3C%2FA%3E%20I%20have%20the%20fields%20matching%20in%20both%20libraries%2C%20but%20the%20data%20is%20not%20moving.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOnly%20the%20documents.%26nbsp%3B%20Is%20the%20expected%20behavior%20that%20only%20the%20documents%20move%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1285535%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20documents%20between%20team%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1285535%22%20slang%3D%22en-US%22%3EHi%2C%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F528752%22%20target%3D%22_blank%22%3E%40tdemichiei%3C%2FA%3E%3CBR%20%2F%3EThe%20expected%20behavior%20is%20if%20the%20Content%20Type%20and%20Fields%20don't%20match%20at%20the%20destination%2C%20then%20only%20the%20document(s)%20move.%20In%20fact%2C%20you%20will%20be%20alerted%20with%20a%20message%20that%20the%20file%20contains%20properties%20that%20will%20be%20lost%20at%20the%20new%20destination.%3CBR%20%2F%3E%3CBR%20%2F%3EYou%20will%20have%20to%20ensure%20that%20the%20Content%20Type(s)%20as%20in%20the%20source%20library%20are%20available%20in%20the%20destination%20library.%20For%20example%20-%20you%20have%20a%20field%2Fcolumn%20in%20source%20library%20which%20was%20added%20in%20a%20specific%20custom%20content%20type%20and%20this%20content%20type%20was%20then%20added%20to%20your%20source%20library%2C%20you%20will%20have%20to%20ensure%20that%20similarly%20the%20same%20name%20content%20type%20with%20the%20field%20is%20created%20and%20added%20to%20your%20destination%20library%20for%20the%20files%20to%20move%20along%20with%20metadata.%3CBR%20%2F%3EPlease%20let%20us%20know.%3CBR%20%2F%3EThanks.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1286751%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20documents%20between%20team%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1286751%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F114813%22%20target%3D%22_blank%22%3E%40Swaminathan%20Sriram%3C%2FA%3Ethe%20sites%20match%20with%20the%20fields%2C%20and%20the%20site%20does%20not%20allow%20custom%20content%20types.%26nbsp%3B%20I%20am%20still%20unable%20to%20move%20the%20documents%20metadata.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20attempted%20to%20create%20a%20template%20out%20of%20the%20source%20document%20library%2C%20but%20I%20do%20not%20have%20the%20option%20to.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20do%20I%20need%20to%20do%20to%20enable%20the%20ability%20to%20create%20the%20template%20on%20a%20modern%20sharepoint%20library.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1291853%22%20slang%3D%22en-US%22%3ERe%3A%20Move%20documents%20between%20team%20sites%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1291853%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3ECan%20you%20try%20with%20a%20newly%20created%20document%20library%20at%20both%20source%20and%20destination%20with%20matching%20fields.%20Please%20let%20us%20know.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIn%20Modern%20Team%20Sites%20and%20Communication%20Sites%2C%20by%20default%20when%20you%20create%20them%2C%20Custom%20Scripts%20is%20blocked%20because%20of%20which%20Save%20Library%20as%20template%20is%20not%20available%20in%20your%20Library%20settings%20page.%3C%2FP%3E%3CP%3ETo%20enable%20save%20library%20as%20template%20in%20your%20Modern%20SharePoint%20Library%2C%20specific%20configurations%20have%20to%20be%20done%20in%20your%20SharePoint%20admin%20center%20(if%20not%20already%20done)%20and%20a%20specific%20PowerShell%20command%20should%20be%20run%20on%20the%20site%20where%20you%20would%20like%20to%20save%20library%20as%20template%20as%20per%20below%20-%3CBR%20%2F%3E%3CU%3E1.%20SharePoint%20Admin%20Center%3C%2FU%3E%26nbsp%3B(This%20step%20can%20be%20skipped%20if%20custom%20scripts%20configuration%20is%20already%20allowed)%20-%26nbsp%3B%3CBR%20%2F%3Ea).%20Navigate%20to%20the%20Settings%20page%20of%20the%20new%20SharePoint%20admin%20Center%20and%20sign%20in%20with%20an%20account%20that%20has%20SharePoint%20admin%20privileges.%3CBR%20%2F%3Eb).%20At%20the%20bottom%20of%20the%20page%2C%20select%20classic%20settings%20page.%3CBR%20%2F%3Ec).%20In%20Custom%20Script%2C%20select%20-%3CBR%20%2F%3EAllow%20users%20to%20run%20Custom%20Script%20on%20personal%20sites.%3CBR%20%2F%3EAllow%20users%20to%20run%20Custom%20Script%20on%20self-service%20created%20sites.%3CBR%20%2F%3ESave%20it%20and%20it%20can%20take%20up%20to%2024%20hours%20for%20the%20updates%20for%20your%20tenant.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3E2.%20To%20allow%20Save%20list%20as%20template%20for%20your%20specific%20site%20collection%20-%3C%2FU%3E%3CBR%20%2F%3ERun%20the%20below%20command%20in%20SharePoint%20Online%20Management%20Shell%20after%20connecting%20to%20your%20SharePoint%20tenant%20using%20Connect-SPOService%20command%20-%3CBR%20%2F%3ESet-SPOSite%20%3CSITECOLLECTIONURL%3E%20-DenyAddAndCustomizePages%200%3C%2FSITECOLLECTIONURL%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F528752%22%20target%3D%22_blank%22%3E%40tdemichiei%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20hope%20this%20is%20helpful.%26nbsp%3BThanks.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi,

 

I am attempting to use either copy or move to copy documents from one team site to another.  The copy is working just fine, but I want to move the metadata (it is not managed metadata) along with the files.  I thought that move to was supposed to move the metadata but it does not seem to be working.  What is the best way for me to move these files.

 

I am working on SharePoint Online

 

5 Replies
Highlighted

Hi,

It is the default expected behavior. The Content Type and Fields should be present/created in the destination library after which you would be able to move the files along with their metadata.

If you are moving the files to a fresh new document library at the destination and if your source library has only few fields, then you could create those fields in the destination library manually, otherwise, if your Library has lots of Content Types and Fields including Custom Content Types, you could Save the Source Library as Template with content and upload this template to List Template Gallery in your destination site and use this template to create the new document library and you could move subsequent new files with metadata using Copy To / Move To as per your requirement.

@tdemichiei

I hope this is helpful, please like it or mark it as a solution if it answers your query.

Thanks.

Highlighted

Which is the default behavior? @Swaminathan Sriram I have the fields matching in both libraries, but the data is not moving.

 

Only the documents.  Is the expected behavior that only the documents move?

 

Thanks

Highlighted
Best Response confirmed by Juan Carlos González Martín (MVP)
Solution
Hi,
@tdemichiei
The expected behavior is if the Content Type and Fields don't match at the destination, then only the document(s) move. In fact, you will be alerted with a message that the file contains properties that will be lost at the new destination.

You will have to ensure that the Content Type(s) as in the source library are available in the destination library. For example - you have a field/column in source library which was added in a specific custom content type and this content type was then added to your source library, you will have to ensure that similarly the same name content type with the field is created and added to your destination library for the files to move along with metadata.
Please let us know.
Thanks.
Highlighted

@Swaminathan Sriramthe sites match with the fields, and the site does not allow custom content types.  I am still unable to move the documents metadata.

 

I attempted to create a template out of the source document library, but I do not have the option to.

 

What do I need to do to enable the ability to create the template on a modern sharepoint library.

 

Thanks

Highlighted

Hi,

Can you try with a newly created document library at both source and destination with matching fields. Please let us know.

 

In Modern Team Sites and Communication Sites, by default when you create them, Custom Scripts is blocked because of which Save Library as template is not available in your Library settings page.

To enable save library as template in your Modern SharePoint Library, specific configurations have to be done in your SharePoint admin center (if not already done) and a specific PowerShell command should be run on the site where you would like to save library as template as per below -
1. SharePoint Admin Center (This step can be skipped if custom scripts configuration is already allowed) - 
a). Navigate to the Settings page of the new SharePoint admin Center and sign in with an account that has SharePoint admin privileges.
b). At the bottom of the page, select classic settings page.
c). In Custom Script, select -
Allow users to run Custom Script on personal sites.
Allow users to run Custom Script on self-service created sites.
Save it and it can take up to 24 hours for the updates for your tenant.

 

2. To allow Save list as template for your specific site collection -
Run the below command in SharePoint Online Management Shell after connecting to your SharePoint tenant using Connect-SPOService command -
Set-SPOSite <SiteCollectionURL> -DenyAddAndCustomizePages 0

 

@tdemichiei 

I hope this is helpful. Thanks.