{"id":401,"date":"2016-08-27T07:44:12","date_gmt":"2016-08-27T07:44:12","guid":{"rendered":"http:\/\/blog.softreeconsulting.com\/?p=401"},"modified":"2016-08-27T07:44:12","modified_gmt":"2016-08-27T07:44:12","slug":"import-managed-metadata-into-sharepoint-in-india","status":"publish","type":"post","link":"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/","title":{"rendered":"How to Import Managed Metadata into SharePoint"},"content":{"rendered":"<p>Managed metadata is a hierarchical collection of centrally managed terms that you can define, and then use as attributes for items in SharePoint Server 2013.<\/p>\n<p>You can use the Term Store management tool to create terms in a term set, or manage a term such as copy it or move it. If you have many terms that you want to add, it might be more practical to import all the terms in the term set instead of adding the terms individually. For information about how to import large volume of terms presents in comma separated value (.csv) file, please follow the below mentioned steps.<\/p>\n<p><em>To create and manage terms in the Term Store management tool, you must be a Contributor, a Group Manager, or a Term Store Administrator.<\/em><\/p>\n<p>So, please ensure you have followed all below mentioned steps one-by-one to properly upload large term sets presents in comma separated value (.csv) file in to the SharePoint Central Administration. However, a small mistake can mess everything up.<\/p>\n<p>Presents below are two ways of uploading the large .csv file into the Central Administration.<\/p>\n<h6><span style=\"text-decoration: underline;\"><span style=\"color: #ff6600; text-decoration: underline;\">By using power shell script<\/span><\/span><\/h6>\n<p>[code lang=&#8221;c&#8221;]<\/p>\n<p>$ver = $host | select version<\/p>\n<p>if($Ver.version.major -gt 1) {$Host.Runspace.ThreadOptions = &#8220;ReuseThread&#8221;}<\/p>\n<p>if(!(Get-PSSnapin Microsoft.SharePoint.PowerShell -ea 0))<\/p>\n<p>{<\/p>\n<p>Write-Progress -Activity &#8220;Loading Modules&#8221; -Status &#8220;Loading Microsoft.SharePoint.PowerShell&#8221;<\/p>\n<p>Add-PSSnapin Microsoft.SharePoint.PowerShell<\/p>\n<p>}<\/p>\n<p>$siteUrl=Read-Host &#8220;SiteUrl&#8221;<\/p>\n<p>$filepath=Read-Host &#8220;File Path&#8221;<\/p>\n<p>$usedForNavigation=$false<\/p>\n<p>$groupName=Read-Host &#8220;Group Name&#8221;<\/p>\n<p>$termsetname=Read-Host &#8220;Term Set Name&#8221;<\/p>\n<p>##Site URL<\/p>\n<p>$site = Get-SPSite $siteUrl<\/p>\n<p>##CSV file<\/p>\n<p>$file = get-item $filepath<\/p>\n<p>$filename = $file.FullName<\/p>\n<p>$session = Get-SPTaxonomySession -Site $site.Url<\/p>\n<p>write-host $site.Url<\/p>\n<p>$store = $session.DefaultKeywordsTermStore<\/p>\n<p>#### Checking the Group name, if not present and getting the Site collection group<\/p>\n<p>if($groupName -eq &#8220;&#8221;){<\/p>\n<p>$group = $store.GetSiteCollectionGroup($site)<\/p>\n<p>}<\/p>\n<p>else{<\/p>\n<p>$group = $store.Groups[$groupName]<\/p>\n<p>}<\/p>\n<p>if ($group -eq $null)<\/p>\n<p>{<\/p>\n<p>write-host &#8220;Group not found&#8221; -ForegroundColor Red<\/p>\n<p>return<\/p>\n<p>}<\/p>\n<p>##Getting the Termset<\/p>\n<p>$termset = $group.TermSets[$termsetname]<\/p>\n<p>if ($termset -eq $null)<\/p>\n<p>{<\/p>\n<p>##Getting Import manager for the Term Store<\/p>\n<p>$manager = $store.GetImportmanager()<\/p>\n<p>$reader = new-object System.IO.StreamReader($filename)<\/p>\n<p>$alltermsadded = $false<\/p>\n<p>$errormessage = &#8220;&#8221;<\/p>\n<p>write-host &#8220;Importing $filename&#8221;<\/p>\n<p>$manager.ImportTermSet($group, $reader, [ref] $alltermsadded, [ref] $errormessage)<\/p>\n<p>$reader.Dispose()<\/p>\n<p>$termset = $group.TermSets[$termsetname]<\/p>\n<p>##Checking if Site Navigation is enabled for the Term store<\/p>\n<p>##One can add more custiom properties below depending upon the need<\/p>\n<p>if ($usedForNavigation -eq $true)<\/p>\n<p>{<\/p>\n<p>$termset.SetCustomProperty(&#8220;_Sys_Nav_IsNavigationTermSet&#8221;, &#8220;True&#8221;)<\/p>\n<p>$termset.SetCustomProperty(&#8220;_Sys_Nav_AttachedWeb_SiteId&#8221;, $site.ID.ToString())<\/p>\n<p>$termset.SetCustomProperty(&#8220;_Sys_Nav_AttachedWeb_WebId&#8221;, $site.RootWeb.ID.ToString())<\/p>\n<p>$termset.SetCustomProperty(&#8220;_Sys_Nav_AttachedWeb_OriginalUrl&#8221;, $site.RootWeb.Url)<\/p>\n<p>}<\/p>\n<p>if ([string]::IsNullOrEmpty($errormessage) -eq $false)<\/p>\n<p>{<\/p>\n<p>write-host $errormessage<\/p>\n<p>}<\/p>\n<p>}<\/p>\n<p>$store.CommitAll()<\/p>\n<p>$site.Dispose()<\/p>\n<p>sleep 20<\/p>\n<p>[\/code]<\/p>\n<h6><span style=\"color: #ff6600;\">By using Import functionality of Managed metadata service present in Central Administration<\/span><\/h6>\n<p>1. Go to the Central Admin<\/p>\n<p>2. Under \u201cService Applications\u201d, click \u201cManage Service Applications\u201d<\/p>\n<p><a href=\"http:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/Untitled1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-404 size-full\" src=\"https:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/Untitled1.png\" alt=\"SoftreeConsulting\" width=\"669\" height=\"354\"><\/a><\/p>\n<p>3. Select \u201cManaged Metadata Service\u201d, then click on \u201cManage\u201d from ribbon<\/p>\n<p><a href=\"http:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/Untitled2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-405\" src=\"https:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/Untitled2.png\" alt=\"SoftreeConsulting\" width=\"591\" height=\"350\"><\/a><\/p>\n<p>4.&nbsp;Now, you can download a sample template of managed metadata structure by clicking on \u201cView a sample import file\u201d<\/p>\n<p><a href=\"http:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/Untitled3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-406\" src=\"https:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/Untitled3.png\" alt=\"SoftreeConsulting\" width=\"859\" height=\"220\"><\/a><\/p>\n<p>5.&nbsp;Please add all your term details in this comma separated value (.csv) file.<\/p>\n<p><a href=\"http:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/dsfas.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-409\" src=\"https:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/dsfas.jpg\" alt=\"SoftreeConsulting\" width=\"1098\" height=\"320\"><\/a><\/p>\n<p>6. Once the (.csv) file is ready, then again go to the Managed metadata page (as it step 4)<\/p>\n<p>7. Click on \u201cNew Group\u201d from the context menu of \u201cManaged Metadata\u201d<\/p>\n<p><a href=\"http:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/Untitled4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-407\" src=\"https:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/Untitled4.png\" alt=\"SoftreeConsulting\" width=\"522\" height=\"277\"><\/a><\/p>\n<p>8. Please provide a group name (here I have provided as \u201cOrganisation\u201d)<\/p>\n<p><a href=\"http:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/Untitled5.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-411\" src=\"https:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/Untitled5.png\" alt=\"SoftreeConsulting\" width=\"413\" height=\"484\"><\/a><\/p>\n<p>9. Now click on \u201cImport Term Set\u201d and browse the file to import back to SharePoint. Now click on \u201cOk\u201d button after browsing the .csv file.<\/p>\n<p><a href=\"http:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/Untitled6.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-413\" src=\"https:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/Untitled6.png\" alt=\"Untitled6\" width=\"687\" height=\"330\"><\/a><\/p>\n<p>10. Please wait while it is uploading the terms, once complete you can find all your term sets under the group \u201cOrganisation\u201d.<\/p>\n<p><a href=\"http:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/managedmetadata.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-415\" src=\"https:\/\/blog.softreeconsulting.com\/wp-content\/uploads\/2016\/08\/managedmetadata.png\" alt=\"managedmetadata\" width=\"464\" height=\"342\"><\/a><\/p>\n<p>Hope this information will be helpful to you.<\/p>\n<h6><strong>This solution is brought to you by our SharePoint professionals&#8230;<\/strong><\/h6>\n<p><em><a href=\"http:\/\/softreeconsulting.com\/\">Softree Technology <\/a>employs SharePoint consultants, who are experienced in writing for a multiplicity of SharePoint verticals including technical, promotional, creative, branding content, cataloguing and ethical media comprising journalism.<\/em><\/p>\n<p><em>With more than 10 years of industry experience these professionals have the best resources to deliver optimum results. They have been satisfying customers with some of the best SharePoint Strategies. &nbsp;<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Managed metadata is a hierarchical collection of centrally managed terms that you can define, and then use as attributes for items in SharePoint Server 2013. You can use the Term Store management tool to create terms in a term set, or manage a term such as copy it or move it. If you have many terms that you want to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":435,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[113,114,115,116,117,118],"class_list":["post-401","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-sharepoint","tag-how-to-import-managed-metadata-into-sharepoint","tag-how-to-import-managed-metadata-presents-in-csv-file-into-sharepoint","tag-import-managed-metadata-using-central-administration","tag-import-term-sets-into-sharepoint","tag-import-term-sets-using-central-administration","tag-import-term-sets-using-powershell-script"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Import Managed Metadata into SharePoint in India<\/title>\n<meta name=\"description\" content=\"Managed metadata is a hierarchical collection of centrally managed terms that you can define,\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Import Managed Metadata into SharePoint in India\" \/>\n<meta property=\"og:description\" content=\"Managed metadata is a hierarchical collection of centrally managed terms that you can define,\" \/>\n<meta property=\"og:url\" content=\"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/\" \/>\n<meta property=\"og:site_name\" content=\"Softree Technology\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-27T07:44:12+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Import Managed Metadata into SharePoint in India","description":"Managed metadata is a hierarchical collection of centrally managed terms that you can define,","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":"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/","og_locale":"en_US","og_type":"article","og_title":"Import Managed Metadata into SharePoint in India","og_description":"Managed metadata is a hierarchical collection of centrally managed terms that you can define,","og_url":"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/","og_site_name":"Softree Technology","article_published_time":"2016-08-27T07:44:12+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/#article","isPartOf":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/"},"author":{"name":"admin","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/98740297642f06debccdcee2de84086b"},"headline":"How to Import Managed Metadata into SharePoint","datePublished":"2016-08-27T07:44:12+00:00","mainEntityOfPage":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/"},"wordCount":660,"commentCount":0,"publisher":{"@id":"https:\/\/softreetechnology.com\/blog\/#organization"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/#primaryimage"},"thumbnailUrl":"","keywords":["How to Import Managed Metadata into SharePoint","How to Import Managed Metadata presents in csv file into SharePoint","import managed metadata using Central Administration","Import term sets into SharePoint","import term sets using Central Administration","import term sets using PowerShell script"],"articleSection":["SharePoint"],"inLanguage":"en","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/","url":"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/","name":"Import Managed Metadata into SharePoint in India","isPartOf":{"@id":"https:\/\/softreetechnology.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/#primaryimage"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/#primaryimage"},"thumbnailUrl":"","datePublished":"2016-08-27T07:44:12+00:00","description":"Managed metadata is a hierarchical collection of centrally managed terms that you can define,","breadcrumb":{"@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/#breadcrumb"},"inLanguage":"en","potentialAction":[{"@type":"ReadAction","target":["https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/"]}]},{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/#primaryimage","url":"","contentUrl":""},{"@type":"BreadcrumbList","@id":"https:\/\/softreetechnology.com\/blog\/sharepoint\/import-managed-metadata-into-sharepoint-in-india\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/softreetechnology.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Import Managed Metadata into SharePoint"}]},{"@type":"WebSite","@id":"https:\/\/softreetechnology.com\/blog\/#website","url":"https:\/\/softreetechnology.com\/blog\/","name":"Softree Technology","description":"Celebrating 10+ Years in SharePoint Consulting !","publisher":{"@id":"https:\/\/softreetechnology.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/softreetechnology.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en"},{"@type":"Organization","@id":"https:\/\/softreetechnology.com\/blog\/#organization","name":"Softree Technology","url":"https:\/\/softreetechnology.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2023\/03\/cropped-white-logo-soft.png","contentUrl":"https:\/\/softreetechnology.com\/blog\/wp-content\/uploads\/2023\/03\/cropped-white-logo-soft.png","width":844,"height":230,"caption":"Softree Technology"},"image":{"@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/98740297642f06debccdcee2de84086b","name":"admin","image":{"@type":"ImageObject","inLanguage":"en","@id":"https:\/\/softreetechnology.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6fc78c8a7aa3fb0bf43c3b9a2e3962d7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6fc78c8a7aa3fb0bf43c3b9a2e3962d7?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/softreeconsulting.com"],"url":"https:\/\/softreetechnology.com\/blog\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/401","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/comments?post=401"}],"version-history":[{"count":0,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/posts\/401\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/media?parent=401"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/categories?post=401"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/softreetechnology.com\/blog\/wp-json\/wp\/v2\/tags?post=401"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}