{"id":516,"date":"2009-06-09T17:18:00","date_gmt":"2009-06-09T17:18:00","guid":{"rendered":"https:\/\/brainlitter.itgroove.net\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/"},"modified":"2009-06-09T17:18:00","modified_gmt":"2009-06-09T17:18:00","slug":"home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library","status":"publish","type":"post","link":"https:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/","title":{"rendered":"Home grown Solution for migrating versioned documents into a SharePoint Document Library"},"content":{"rendered":"<div class=\"ExternalClass716F3A6598EF48599108D18D98B52FA1\">\n<p>I got asked the following today and after some thought, I provided the following response.  Perhaps this will help someone else, and\/or solicit some other ideas (please leave comments\/share!).<\/p>\n<\/p>\n<h1>The Business Problem\/Requirement<\/h1>\n<p>We are having a problem with the automatic versioning in SharePoint.  We are transferring files from our old Document Management System (DMS) to SharePoint.  As most of these documents do not start at version <strong>1<\/strong>, I need to <em>override the automatic versioning<\/em> in SharePoint.  Once it has the correct version number, I need SharePoint to remember the modified version number and then number it correctly from there.  For example, if I save a file version as version four, the next time it is edited and checked in, SharePoint would update the new version to version 5.  However, when I move documents into SharePoint, they all start at Version 1.<\/p>\n<\/p>\n<h1>The Issue<\/h1>\n<p>Versioning in SharePoint is native to SharePoint, it won&#8217;t pull in versioning history maintained by a 3rd party system (and to be honest, I don&#8217;t think other applications do this either, from foreign data).<\/p>\n<\/p>\n<h1>The Solution(s)<\/h1>\n<ol>\n<li><span><strong>Option 0 &#8211; Not recommended<\/strong><\/span><span style=\"color:black\"><span style=\"font-size:12pt\"><\/span>\u2013 you could modify the values for the documents directly in SQL. However, this requires SQL expertise and talking to a SharePoint database without using the API is NOT RECOMMENDED \u2013 but I did read of some folks having done this without noticeable problems (yet). Either way, it is time consuming, cumbersome and potentially dangerous<br \/><\/span><\/li>\n<li><span style=\"font-size:12pt\"><strong><span style=\"color:#4f81bd\">Option 1 \u2013 Safe and Simple<\/span><span style=\"color:#c0504d\"><\/span><\/strong><\/span><span style=\"color:black\">\u2013 Let SharePoint manage all versions, with everything started as version 1.0.\u00a0 But, also create a &#8216;legacy version&#8217; column and in it, put the version number the document was at, when it &#8216;left&#8217; your old system, so you have this legacy information<br \/><\/span><\/li>\n<li><span style=\"color:#76923c;font-size:12pt\"><strong>Option 2 \u2013 Safe but Time Consuming<\/strong><\/span><span style=\"color:black\"><span style=\"font-size:12pt\"><\/span>\u2013As you bring in your new documents, they will all be version 1.0&#8217;s.\u00a0 To get various documents to be the &#8216;current version&#8217;, just open, modify (even a spacebar) the document and close it and it will result in a new version \u2013 as many times as necessary to get to the 2.0, 3.0, etc.\u00a0 Then, go into the version settings and choose &#8216;Delete All Versions&#8217;, which will delete all previous versions leaving the &#8216;base&#8217; document\/version as the first version (in the example below, as a 3.0).<\/span><\/li>\n<\/ol>\n<p><span style=\"color:black\">I know it&#8217;s a bit of a hack and time consuming, but it works and doesn&#8217;t involve doing anything dangerous&#8230; Depending on your volume, your ability to script and\/or automate the various options, I hope one of them helps.<\/span><\/p>\n<\/p>\n<p><img decoding=\"async\" src=\"\/brainlitterarchive\/Lists\/Photos\/061009_0018_HomegrownSo1.png\" alt=\"\"><span style=\"color:black\"><\/span><\/p>\n<\/p>\n<p><img decoding=\"async\" src=\"\/brainlitterarchive\/Lists\/Photos\/061009_0018_HomegrownSo2.png\" alt=\"\"><span style=\"color:black\"><\/span><\/p>\n<\/p>\n<p><img decoding=\"async\" src=\"\/brainlitterarchive\/Lists\/Photos\/061009_0018_HomegrownSo3.png\" alt=\"\"><span style=\"color:black\"><\/span><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>I got asked the following today and after some thought, I provided the following response. Perhaps this will help someone else, and\/or solicit some other ideas (please leave comments\/share!). The Business Problem\/Requirement We are having a problem with the automatic versioning in SharePoint. We are transferring files from our old Document Management System (DMS) to &hellip; <a href=\"https:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/\"><\/a><\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":"","_jetpack_memberships_contains_paid_content":false},"categories":[337,14,339],"tags":[],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Home grown Solution for migrating versioned documents into a SharePoint Document Library - Brainlitter - Inside the mind of Sean Wallbridge<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Home grown Solution for migrating versioned documents into a SharePoint Document Library - Brainlitter - Inside the mind of Sean Wallbridge\" \/>\n<meta property=\"og:description\" content=\"I got asked the following today and after some thought, I provided the following response. Perhaps this will help someone else, and\/or solicit some other ideas (please leave comments\/share!). The Business Problem\/Requirement We are having a problem with the automatic versioning in SharePoint. We are transferring files from our old Document Management System (DMS) to &hellip;\" \/>\n<meta property=\"og:url\" content=\"http:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/\" \/>\n<meta property=\"og:site_name\" content=\"Brainlitter - Inside the mind of Sean Wallbridge\" \/>\n<meta property=\"article:published_time\" content=\"2009-06-09T17:18:00+00:00\" \/>\n<meta name=\"author\" content=\"Sean Wallbridge\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Sean Wallbridge\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/\",\"url\":\"http:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/\",\"name\":\"Home grown Solution for migrating versioned documents into a SharePoint Document Library - Brainlitter - Inside the mind of Sean Wallbridge\",\"isPartOf\":{\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#website\"},\"datePublished\":\"2009-06-09T17:18:00+00:00\",\"dateModified\":\"2009-06-09T17:18:00+00:00\",\"author\":{\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/74e1c0def190f181c1394c2b6d883e77\"},\"breadcrumb\":{\"@id\":\"http:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Brainlitter\",\"item\":\"https:\/\/regroove.ca\/brainlitter\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Home grown Solution for migrating versioned documents into a SharePoint Document Library\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#website\",\"url\":\"https:\/\/regroove.ca\/brainlitter\/\",\"name\":\"Brainlitter - Inside the mind of Sean Wallbridge\",\"description\":\"Dad. Husband. Drummer. Learner of Things.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/regroove.ca\/brainlitter\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/74e1c0def190f181c1394c2b6d883e77\",\"name\":\"Sean Wallbridge\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/adf8cea6291c39d166616f2148d919a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/adf8cea6291c39d166616f2148d919a6?s=96&d=mm&r=g\",\"caption\":\"Sean Wallbridge\"},\"url\":\"https:\/\/regroove.ca\/brainlitter\/author\/swallbridge\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Home grown Solution for migrating versioned documents into a SharePoint Document Library - Brainlitter - Inside the mind of Sean Wallbridge","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/","og_locale":"en_US","og_type":"article","og_title":"Home grown Solution for migrating versioned documents into a SharePoint Document Library - Brainlitter - Inside the mind of Sean Wallbridge","og_description":"I got asked the following today and after some thought, I provided the following response. Perhaps this will help someone else, and\/or solicit some other ideas (please leave comments\/share!). The Business Problem\/Requirement We are having a problem with the automatic versioning in SharePoint. We are transferring files from our old Document Management System (DMS) to &hellip;","og_url":"http:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/","og_site_name":"Brainlitter - Inside the mind of Sean Wallbridge","article_published_time":"2009-06-09T17:18:00+00:00","author":"Sean Wallbridge","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Sean Wallbridge","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/","url":"http:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/","name":"Home grown Solution for migrating versioned documents into a SharePoint Document Library - Brainlitter - Inside the mind of Sean Wallbridge","isPartOf":{"@id":"https:\/\/regroove.ca\/brainlitter\/#website"},"datePublished":"2009-06-09T17:18:00+00:00","dateModified":"2009-06-09T17:18:00+00:00","author":{"@id":"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/74e1c0def190f181c1394c2b6d883e77"},"breadcrumb":{"@id":"http:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/regroove.ca\/brainlitter\/2009\/06\/09\/home-grown-solution-for-migrating-versioned-documents-into-a-sharepoint-document-library\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Brainlitter","item":"https:\/\/regroove.ca\/brainlitter\/"},{"@type":"ListItem","position":2,"name":"Home grown Solution for migrating versioned documents into a SharePoint Document Library"}]},{"@type":"WebSite","@id":"https:\/\/regroove.ca\/brainlitter\/#website","url":"https:\/\/regroove.ca\/brainlitter\/","name":"Brainlitter - Inside the mind of Sean Wallbridge","description":"Dad. Husband. Drummer. Learner of Things.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/regroove.ca\/brainlitter\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/74e1c0def190f181c1394c2b6d883e77","name":"Sean Wallbridge","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/regroove.ca\/brainlitter\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/adf8cea6291c39d166616f2148d919a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/adf8cea6291c39d166616f2148d919a6?s=96&d=mm&r=g","caption":"Sean Wallbridge"},"url":"https:\/\/regroove.ca\/brainlitter\/author\/swallbridge\/"}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/posts\/516"}],"collection":[{"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/comments?post=516"}],"version-history":[{"count":0,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/posts\/516\/revisions"}],"wp:attachment":[{"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/media?parent=516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/categories?post=516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/regroove.ca\/brainlitter\/wp-json\/wp\/v2\/tags?post=516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}