{"id":3041,"date":"2015-07-08T04:47:05","date_gmt":"2015-07-08T04:47:05","guid":{"rendered":"http:\/\/www.vyapin.com\/blog\/?p=3041"},"modified":"2021-05-27T07:32:59","modified_gmt":"2021-05-27T07:32:59","slug":"web-part-migration-from-sharepoint-2007-to-sharepoint-2013","status":"publish","type":"post","link":"https:\/\/www.vyapinsoftware.com\/blog\/web-part-migration-from-sharepoint-2007-to-sharepoint-2013","title":{"rendered":"Web part issue and resolution when migrating from SharePoint 2007 to SharePoint 2013"},"content":{"rendered":"<p align=\"justify\">One of <strong><a href=\"https:\/\/www.vyapinsoftware.com\/company\/customers\">our customers<\/a><\/strong> recently encountered an issue when upgrading from SharePoint 2007 to SharePoint 2013. I thought I will share this for the benefit of others in the SharePoint community who are planning to migrate from SharePoint 2007.<\/p>\n<p align=\"justify\">Users in the customer\u2019s organization encountered the error below when opening a custom webpart that used the Target Audiences from the User Profile.<\/p>\n<p><span style=\"color: #ff0000;\"><strong><i>\u2018No User Profile Service is available in the current context\u2019<\/i><\/strong><\/span><\/p>\n<p align=\"justify\">This issue is most likely to occur when upgrading SharePoint from SharePoint 2007 to SharePoint 2010 and above. The above error specifically occurs when opening web parts configured to use Target Audience from \u2018User Profile Service\u2019. The customer initially thought that this could have been caused due to using our <strong>SharePoint to SharePoint migration tool<\/strong>&nbsp;(XPlica) to migrate their content from SharePoint 2007 to SharePoint 2013. Once the cause was identified, we were able to inform the customer that this wasn\u2019t due to our <strong><a href=\"https:\/\/www.vyapinsoftware.com\/products\/sharepoint-migration\/dockit\/sharepoint-migration-tools\">SharePoint migration tools<\/a><\/strong> and directed him to the solution outlined below.<\/p>\n<p align=\"justify\">In such case, \u2018Target Audiences\u2019 property is missing (as shown in the below screenshot) when editing the webpart in the web application.<\/p>\n<p><a href=\"https:\/\/www.vyapinsoftware.com\/blog\/wp-content\/uploads\/2017\/07\/sharepoint-imgration-webpart-issue.png\" data-lbwps-width=\"258\" data-lbwps-height=\"480\" data-lbwps-srcsmall=\"https:\/\/www.vyapinsoftware.com\/blog\/wp-content\/uploads\/2017\/07\/sharepoint-imgration-webpart-issue-161x300.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.vyapinsoftware.com\/blog\/wp-content\/uploads\/2017\/07\/sharepoint-imgration-webpart-issue.png\" alt=\"sharepoint migration webpart issue\" width=\"350\" height=\"600\" border=\"1\"><\/a><\/p>\n<h2>Cause<\/h2>\n<p align=\"justify\">The reported error occurs if the \u2018User Profile Service Application\u2019 option is unchecked for the target web application in SharePoint Central Administration Site (as shown below).<\/p>\n<p><a href=\"https:\/\/www.vyapinsoftware.com\/blog\/wp-content\/uploads\/2017\/07\/sharePoint-central-administration-site.png\" data-lbwps-width=\"1017\" data-lbwps-height=\"522\" data-lbwps-srcsmall=\"https:\/\/www.vyapinsoftware.com\/blog\/wp-content\/uploads\/2017\/07\/sharePoint-central-administration-site-300x154.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.vyapinsoftware.com\/blog\/wp-content\/uploads\/2017\/07\/sharePoint-central-administration-site.png\" alt=\"SharePoint Central Administration Site\" width=\"748\" height=\"540\" border=\"1\"><\/a><\/p>\n<p><a href=\"https:\/\/www.vyapinsoftware.com\/blog\/wp-content\/uploads\/2017\/07\/configure-service-application-associations.png\" data-lbwps-width=\"637\" data-lbwps-height=\"835\" data-lbwps-srcsmall=\"https:\/\/www.vyapinsoftware.com\/blog\/wp-content\/uploads\/2017\/07\/configure-service-application-associations-229x300.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.vyapinsoftware.com\/blog\/wp-content\/uploads\/2017\/07\/configure-service-application-associations.png\" alt=\"Configure Service Application Associations\" width=\"700\" height=\"600\" border=\"1\"><\/a><\/p>\n<h2>Solution<\/h2>\n<ol type=\"1\">\n<li>Go to the target SharePoint Central Administration Site.<\/li>\n<li>Click \u2018Manage Web Applications\u2019 link available under \u2018Application Management\u2019 section.<\/li>\n<li>Select the target web application in which you are migrating the web parts and click \u2018Service Connections\u2019 button from the SharePoint ribbon.<\/li>\n<li>Select the User Profile Service Application check box and click OK.<\/li>\n<\/ol>\n<p><a><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.vyapinsoftware.com\/blog\/wp-content\/uploads\/2017\/07\/configure-service-application-associations-checked.png\" alt=\"Configure Service Application Associations\" width=\"700\" height=\"600\" border=\"1\"><\/a><\/p>\n<p align=\"justify\">Once you make the necessary changes as stated above, you can open the webparts in the web application without issue and also you can see the \u2018Target Audiences\u2019 property when editing the webpart as shown below.<\/p>\n<p><a href=\"https:\/\/www.vyapinsoftware.com\/blog\/wp-content\/uploads\/2017\/07\/sharepoint-migration-editing-webpart.png\" data-lbwps-width=\"266\" data-lbwps-height=\"718\" data-lbwps-srcsmall=\"https:\/\/www.vyapinsoftware.com\/blog\/wp-content\/uploads\/2017\/07\/sharepoint-migration-editing-webpart-111x300.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" src=\"https:\/\/www.vyapinsoftware.com\/blog\/wp-content\/uploads\/2017\/07\/sharepoint-migration-editing-webpart.png\" alt=\"editing the webpart\" width=\"350\" height=\"600\" border=\"1\"><\/a><\/p>\n<blockquote><p>Know more about <strong>XPlica<\/strong> and to download it, please visit &#8211;&nbsp; <a href=\"https:\/\/www.vyapinsoftware.com\/products\/sharepoint-migration\/dockit\/sharepoint-migration-tools\"><strong>https:\/\/www.vyapinsoftware.com\/products\/sharepoint-migration\/dockit\/sharepoint-migration-tools<\/strong><\/a><\/p><\/blockquote>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of our customers recently encountered an issue when upgrading from SharePoint 2007 to SharePoint 2013. I thought I will share this for the benefit of others in the SharePoint community who are planning to migrate from SharePoint 2007. Users in the customer\u2019s organization encountered the error below when opening a custom webpart that used [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":5256,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[72,78,82],"class_list":["post-3041","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sharepoint-migration","tag-sharepoint-site-migration","tag-sharepoint-to-sharepoint-migration","tag-web-part-migration"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.vyapinsoftware.com\/blog\/wp-json\/wp\/v2\/posts\/3041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vyapinsoftware.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vyapinsoftware.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vyapinsoftware.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vyapinsoftware.com\/blog\/wp-json\/wp\/v2\/comments?post=3041"}],"version-history":[{"count":11,"href":"https:\/\/www.vyapinsoftware.com\/blog\/wp-json\/wp\/v2\/posts\/3041\/revisions"}],"predecessor-version":[{"id":7970,"href":"https:\/\/www.vyapinsoftware.com\/blog\/wp-json\/wp\/v2\/posts\/3041\/revisions\/7970"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.vyapinsoftware.com\/blog\/wp-json\/wp\/v2\/media\/5256"}],"wp:attachment":[{"href":"https:\/\/www.vyapinsoftware.com\/blog\/wp-json\/wp\/v2\/media?parent=3041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vyapinsoftware.com\/blog\/wp-json\/wp\/v2\/categories?post=3041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vyapinsoftware.com\/blog\/wp-json\/wp\/v2\/tags?post=3041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}