Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Here's the scenario:

  1. 2 document libraries
  2. Both contain multiple documents
  3. The documents have multiple versions

When I copy a document from library A to Library B using the Content and Structure tool from Site Settings, my versions do not carry over. I'm trying to merge the two document libraries into one, but I want to retain the versions.

Do you know of a way to complete this without third party tools or custom code? I've heard suggestions of using Explorer View copy and paste, SharePoint Designer and List Templates, but I'm not sure any of those will carry version info.

Update 1/29/2010: Thanks for all the code suggestions. They will come in handy for other needs, however, I want to stress that this is a no-code deploy situation. Think BPOS.

share|improve this question
2  
I don't know the answer to this and I've struggled with it, so I hope someone has a good thought that doesn't involve C# code! –  Marc D Anderson Jan 28 '10 at 0:18
    
I did as instructed and it DID NOT WORK. I moved the file and LOST my versions. –  user9837 Aug 2 '12 at 14:14
2  
Is versioning on in the new library? @jaap points out in the comments on his answer, that he tried that and didn't lose the versions. When he moved it back to the original library the versions were retained. –  Tom Resing Aug 6 '12 at 15:18

10 Answers 10

up vote 48 down vote accepted

Just moved (drag & drop) a file in Explorer View from one document library to another, and it did retain previous versions!

Obviously both libraries need to have versioning enabled.

Try it yourself.

EDIT: note that it ONLY retains the versions if you MOVE the files. It does not do so when you perform a COPY!

share|improve this answer
1  
if they are not of same CT, the CT will be copied with the document –  Anders Rask Feb 1 '10 at 8:26
1  
It was second hand, but when items with different Content Types were copied, while the metadata went over just fine, the actual Content Types didn't. In other words, they weren't fully enabled on the destination. –  Marc D Anderson Feb 2 '10 at 13:34
2  
Did you COPY the file? I MOVED them using drag & drop. Try that one. –  Jaap Vossers Feb 3 '10 at 11:59
1  
Just tried a COPY instead of MOVE, and that did not retain the versions as mentioned by Tom. MOVE (drag & drop) does! –  Jaap Vossers Feb 3 '10 at 13:47
1  
@Japp you found the answer. Move works, copy doesn't. Can you edit your answer so people don't have to read all the comments to figure it out? Bonus credit if you explin WHY this works. :) –  Tom Resing Feb 4 '10 at 15:04

The Content and Structure worked fine for me. Moving individual documents from one library to another captures all versions. Assuming, of course, versioning is configured the same on both libraries. That bit me the first time - the destination had Major, but the source had Major/Minor. Once the destination was switched to Major/Minor, documents came over with all versions.

share|improve this answer
    
Thanks for the update @thantos. It's possible in the 4+ years since I posted this question that the functionality has been improved. Out of curiosity, what version and patch level did it work for you on? In January 2010, I was likely either using SharePoint 2007 SP2 or SharePoint 2010 RTM. –  Tom Resing Mar 31 at 16:07

Maybe helpful, in CodePlex:

Drag & Drop between SharePoint Document libraries

This project helps you to move documents by simply drag & drop the files between documents libraries out-of-the-box views located on the same web part page.Only SharePoint 2010 is supported.

… 

Current Limitations:

  • Document libraries should be in the same site.
  • Only default document library view is supported:
  • All views should have title.
  • All views should have summary toolbar.
  • All views should have the type and the name columns.
  • Only files with title can be moved.
  • You can’t drag folders or drop into folders.

Current Features:

  • Copy Operation has been added.
  • Folders are supported now.

Planned Features:

  • Delete Document by drag it to Recycle Bin.
  • Support Multiple Item Selection.
share|improve this answer
    
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. –  John Chapman Oct 16 '12 at 17:35

My problem was that I have an old 3.0 and I'm moving to Sharepoint online (office 365).

I downloaded Migration Suite For SharePoint from quest.com.

The problem I had with other migration tools is that I needed a domain to login. With this, it doesn't require it.

I was able to copy folders with contents, and the entire version history with comments was intact!

share|improve this answer
    
This would make a good comment, but it is not a good answer for the question, since I stated I wasn't looking for a 3rd party tool. Thanks for the input, though. Glad you found your solution! –  Tom Resing Oct 22 '12 at 2:09

As Anders mentions in his answer, my company SharePoint Products has a tool named CopyMove for just that. It is free to use for 1 named user - only organizations that need to offer the tool to their end-users will need to purchase a license.

The product can copy/move documents, list items and folders with no loss of metadata, version history and permissions. See the full feature matrix with screen shots here.

share|improve this answer

a way to move documents through doc lib is to use the Content Deployment API.

using objects like SPExport and SPImport

the copy, move actions of the content site and structure (sitemanagement.aspx) are performed using this API.

and you can set that you want to keep the versions!

share|improve this answer

While I've noted above that I don't have a great answer, it's possible that SharePoint's Web Services with my jQuery Library for SharePoint Web Services may provide an answer. I had tried to do copies and preserve the metadata, but I couldn't quite get there. Perhaps it's worth another look. It certainly meets your "no code" requirement.

However, let me toss another idea into the mix: Do you really need to combine them? Might it work to provide views using a DVWP, or are you trying to get at something else?

share|improve this answer
    
DVWP is a good suggestion. I think in this case, it was just a matter of consolidating the two folders because they both were created redundantly. –  Tom Resing Feb 2 '10 at 21:25

Last year I added functionality to Chris O'Brien's SharePoint Content Deployment Wizard to copy documents from one library to another. I'm pretty sure I tested that versioning copied over as well.

Have a try of that and if you have any problems using it please leave me a comment here and I'll update my answer with more info.

share|improve this answer
1  
I am pretty sure this great tool does it. Just make sure to adjust the settings to get all versions of the document when copying it –  Emad Jan 29 '10 at 8:30

Have you tried moving the document using the Content and Structure option in site settings? I don't recall if this works or not.

share|improve this answer
1  
Please read the question. That is the first thing I tried. –  Tom Resing Jan 29 '10 at 14:49

I know of no OOTB way to do this, so you would have to code this functionality yourself.

I know that Lars Fastrup has created a tool that does just what you want: CopyMove for SharePoint

It also has a web service API.

hth Anders Rask

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.