{"id":77,"date":"2012-05-16T20:22:52","date_gmt":"2012-05-16T20:22:52","guid":{"rendered":"https:\/\/sharepointhacker.com\/?p=77"},"modified":"2012-05-16T20:22:52","modified_gmt":"2012-05-16T20:22:52","slug":"error-with-template-when-importing-sharepoint-site-to-new-server","status":"publish","type":"post","link":"https:\/\/sharepointhacker.com\/?p=77","title":{"rendered":"Error with Template when Importing Sharepoint Site to new server"},"content":{"rendered":"<p>What an ordeal. After numerous\u00a0errors and features that were not installed on the new server I finally\u00a0get to a point where I believe I can import a site (our intranet) to the development server I have set up.<\/p>\n<p>But , you noticed i said believe .. Another error. This one stating &#8220;Error: Cannot import site. The exported site is based on the template SPS#0 but the destination site is based on the template STS#1. You can import sites only into sites that are based on same template as the exported site.&#8221;<\/p>\n<p>Well Crap, I vaguely\u00a0remember running into this in the past and couldn&#8217;t for the life of me remember how I fixed it (I had slept since then).<\/p>\n<p>I knew that I didn&#8217;t\u00a0pick the right Site Template (in this case I picked Blank Site) and a quick search confirmed that STS#1 was a Team Site, and SPS#0 was a Sharepoint Server Portal Site but I couldn&#8217;t\u00a0find &#8220;Sharepoint Server Portal Site&#8221; in my list of Templates to install. Well that is because the Template is obsolete&#8230; Great &#8230; thank you MS. But don&#8217;t fret, although it is obsolete you can still install it, just not with the GUI.<\/p>\n<p>To create a site with Template SPS#0 Do this&#8230;<\/p>\n<p>Create a Powershell Script with the following code and run it:<\/p>\n<p>[Code]<\/p>\n<p>Get-SPWebTemplate<br \/>\n$template = Get-SPWebTemplate &#8220;SPS#0&#8221;<br \/>\nNew-SPSite\u00a0-Url\u00a0&#8220;YourSiteUrl&#8221; -OwnerAlias &#8220;Domain\\UserNameAccount&#8221; -Template $template<\/p>\n<p>[\\Code]<\/p>\n<p>There you go.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What an ordeal. After numerous\u00a0errors and features that were not installed on the new server I finally\u00a0get to a point where I believe I can import a site (our intranet) to the development server I have set up. But , you noticed i said believe .. Another error. This one stating &#8220;Error: Cannot import site. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[7,3,11,4],"tags":[21,20,22],"class_list":["post-77","post","type-post","status-publish","format-standard","hentry","category-admin","category-info","category-powershell","category-sharepoint-2010","tag-get-spwebtemplate","tag-import","tag-new-spsite"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p289k1-1f","jetpack_likes_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/sharepointhacker.com\/index.php?rest_route=\/wp\/v2\/posts\/77","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sharepointhacker.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sharepointhacker.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sharepointhacker.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sharepointhacker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=77"}],"version-history":[{"count":2,"href":"https:\/\/sharepointhacker.com\/index.php?rest_route=\/wp\/v2\/posts\/77\/revisions"}],"predecessor-version":[{"id":79,"href":"https:\/\/sharepointhacker.com\/index.php?rest_route=\/wp\/v2\/posts\/77\/revisions\/79"}],"wp:attachment":[{"href":"https:\/\/sharepointhacker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=77"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sharepointhacker.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=77"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sharepointhacker.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=77"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}