{"id":12698,"date":"2013-12-16T06:58:00","date_gmt":"2013-12-16T06:58:00","guid":{"rendered":"https:\/\/viewmyprojects.com\/winwirewp\/?p=12698"},"modified":"2023-11-29T12:09:29","modified_gmt":"2023-11-29T12:09:29","slug":"how-we-debugged-version-history-issues-in-sharepoint-2010","status":"publish","type":"post","link":"https:\/\/viewmyprojects.com\/winwirewp\/blog\/how-we-debugged-version-history-issues-in-sharepoint-2010\/","title":{"rendered":"How We Debugged Version History Issues in SharePoint 2010"},"content":{"rendered":"\n<p>We assist our clients with a variety of debugging issues, and one client in particular had a particularly troublesome one when migrating their document management system. They were using SharePoint 2010, and we had been migrating documents using Excel import files for over a year. At that point, we decided to switch over to CSV files in order to eliminate the need for an installation of the Microsoft Office suite on SharePoint during the migration. What we didn\u2019t realize was that changing the migration tool would bring up a number of multiple data exception scenarios.<\/p>\n\n\n\n<p>One such scenario occurred after the migration was complete. We had developed a custom workflow and OOTB Document Set \u201cCapture Version\u201d ribbon button, and some users started to report a strange issue where they couldn\u2019t capture the version history. Not only was this frustrating for the client, but it was also a huge problem for us because maintaining version history was one of their primary legal and audit requirements. If we couldn\u2019t solve this problem, then we would be failing the client utterly.<\/p>\n\n\n\n<p><strong>The Problem<\/strong><\/p>\n\n\n\n<p>Upon looking through event and SharePoint ULS Logs (present in the 14 hives folder), we identified the issue below<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1014\" height=\"981\" src=\"https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/Problem.webp\" alt=\"\" class=\"wp-image-18050\" srcset=\"https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/Problem.webp 1014w, https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/Problem-300x290.webp 300w, https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/Problem-768x743.webp 768w\" sizes=\"auto, (max-width: 1014px) 100vw, 1014px\" \/><\/figure>\n\n\n\n<p>After further investigation, we determined that the source of the problem was probably a result of:<\/p>\n\n\n\n<p class=\"blog-detail-list\">\u2022 Special characters in the imported CSV files (which contained document metadata) that were provided in the document migration.<br>\u2022 Users copying content from Word documents into the document metadata.<br>\u2022 Special characters in the managed metadata, details of which are specified here.<br><strong>The Solution<\/strong><\/p>\n\n\n\n<p>We gave the issue some careful thought, eventually coming to the following conclusions for resolving the version history issue:<\/p>\n\n\n\n<p class=\"blog-detail-list\">\u2022 On the existing Document Set, we developed a tool to replace the special characters, using code provided here and shown below. We also updated the custom developed workflow in order to handle the issue.<br>\u2022 We updated the managed metadata by replacing the special characters. For example, all instances of \u201c&amp;\u201d were replaced with \u201cand,\u201d so anything like \u201cComputer &amp; Information System\u201d would become \u201cComputer and Information System.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1009\" height=\"306\" src=\"https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/Solution.webp\" alt=\"\" class=\"wp-image-18051\" srcset=\"https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/Solution.webp 1009w, https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/Solution-300x91.webp 300w, https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/Solution-768x233.webp 768w\" sizes=\"auto, (max-width: 1009px) 100vw, 1009px\" \/><\/figure>\n\n\n\n<p><strong>The Result<\/strong><\/p>\n\n\n\n<p>Once we implemented the above solutions, the clients were able to capture Document Set version history again without a hitch. It not only made the client happy because their primary requirements were met, but it also made us happy because we were able to come to a reasonable solution right in the nick of time. Problems like this are definitely frustrating, but it\u2019s also incredibly rewarding once we get them straightened out.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We assist our clients with a variety of debugging issues, and one client in particular had a particularly troublesome one when migrating their document management system. They were using SharePoint 2010, and we had been migrating documents using Excel import files for over a year. At that point, we decided to switch over to CSV&hellip; <a class=\"more-link\" href=\"https:\/\/viewmyprojects.com\/winwirewp\/blog\/how-we-debugged-version-history-issues-in-sharepoint-2010\/\">Continue reading <span class=\"screen-reader-text\">How We Debugged Version History Issues in SharePoint 2010<\/span><\/a><\/p>\n","protected":false},"author":37,"featured_media":16771,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_eb_attr":"","_uag_custom_page_level_css":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-12698","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","entry"],"acf":[],"featured_image_src":"https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/How-We-Debugged-Version-History-Issues-in-SharePoint-2010-graphic.webp","author_info":{"display_name":"Rajiv","author_link":"https:\/\/viewmyprojects.com\/winwirewp\/author\/rajiv\/"},"views":3592,"uagb_featured_image_src":{"full":["https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/How-We-Debugged-Version-History-Issues-in-SharePoint-2010-graphic.webp",800,440,false],"thumbnail":["https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/How-We-Debugged-Version-History-Issues-in-SharePoint-2010-graphic-150x150.webp",150,150,true],"medium":["https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/How-We-Debugged-Version-History-Issues-in-SharePoint-2010-graphic-300x165.webp",300,165,true],"medium_large":["https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/How-We-Debugged-Version-History-Issues-in-SharePoint-2010-graphic-768x422.webp",750,412,true],"large":["https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/How-We-Debugged-Version-History-Issues-in-SharePoint-2010-graphic.webp",750,413,false],"1536x1536":["https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/How-We-Debugged-Version-History-Issues-in-SharePoint-2010-graphic.webp",800,440,false],"2048x2048":["https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/How-We-Debugged-Version-History-Issues-in-SharePoint-2010-graphic.webp",800,440,false],"post-thumbnail":["https:\/\/viewmyprojects.com\/winwirewp\/wp-content\/uploads\/2023\/11\/How-We-Debugged-Version-History-Issues-in-SharePoint-2010-graphic.webp",800,440,false]},"uagb_author_info":{"display_name":"Rajiv","author_link":"https:\/\/viewmyprojects.com\/winwirewp\/author\/rajiv\/"},"uagb_comment_info":0,"uagb_excerpt":"We assist our clients with a variety of debugging issues, and one client in particular had a particularly troublesome one when migrating their document management system. They were using SharePoint 2010, and we had been migrating documents using Excel import files for over a year. At that point, we decided to switch over to CSV&hellip;&hellip;","_links":{"self":[{"href":"https:\/\/viewmyprojects.com\/winwirewp\/wp-json\/wp\/v2\/posts\/12698","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/viewmyprojects.com\/winwirewp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/viewmyprojects.com\/winwirewp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/viewmyprojects.com\/winwirewp\/wp-json\/wp\/v2\/users\/37"}],"replies":[{"embeddable":true,"href":"https:\/\/viewmyprojects.com\/winwirewp\/wp-json\/wp\/v2\/comments?post=12698"}],"version-history":[{"count":2,"href":"https:\/\/viewmyprojects.com\/winwirewp\/wp-json\/wp\/v2\/posts\/12698\/revisions"}],"predecessor-version":[{"id":18052,"href":"https:\/\/viewmyprojects.com\/winwirewp\/wp-json\/wp\/v2\/posts\/12698\/revisions\/18052"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/viewmyprojects.com\/winwirewp\/wp-json\/wp\/v2\/media\/16771"}],"wp:attachment":[{"href":"https:\/\/viewmyprojects.com\/winwirewp\/wp-json\/wp\/v2\/media?parent=12698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/viewmyprojects.com\/winwirewp\/wp-json\/wp\/v2\/categories?post=12698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/viewmyprojects.com\/winwirewp\/wp-json\/wp\/v2\/tags?post=12698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}