<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7310417214673357026</id><updated>2024-10-06T21:55:50.801-07:00</updated><category term="Office 365"/><category term="PowerShell"/><category term="ADFS"/><category term="Cannot find an overload for &quot;Load&quot;"/><category term="DirSync"/><category term="Map taxonomy"/><category term="SharePoint 2007"/><category term="SharePoint 2010"/><category term="SharePoint online"/><category term="Sharepoint 2013"/><category term="Taxonomy"/><category term="Windows Azure Directory Sync"/><title type='text'>SharePoint Tips</title><subtitle type='html'>This blog is about issues encountered and workarounds while developing with SharePoint</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ashwinsidharth.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7310417214673357026/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://ashwinsidharth.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07718192402321904738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7310417214673357026.post-6933589044982505313</id><published>2015-12-30T04:34:00.001-08:00</published><updated>2015-12-30T04:36:54.005-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ADFS"/><category scheme="http://www.blogger.com/atom/ns#" term="DirSync"/><category scheme="http://www.blogger.com/atom/ns#" term="Office 365"/><category scheme="http://www.blogger.com/atom/ns#" term="Windows Azure Directory Sync"/><title type='text'>SharePoint Windows Azure DirSync error unable to re-install Directory Sync</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiktb5Z8IR0kCOFJDC4N8QRcq4e-5jiX31MNRudocHp-O60eNSrX2BxGpn7-tsaI7W6bHGyyjPbXdiPfjHsyAP8eUnDh9a2HdS5H9viyyOy40EaPflbAYIH2zc3vHC31QmfLScFA_0tUCar/s1600/Untitled.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiktb5Z8IR0kCOFJDC4N8QRcq4e-5jiX31MNRudocHp-O60eNSrX2BxGpn7-tsaI7W6bHGyyjPbXdiPfjHsyAP8eUnDh9a2HdS5H9viyyOy40EaPflbAYIH2zc3vHC31QmfLScFA_0tUCar/s320/Untitled.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
I had installed the directory sync set up and then uninstalled it.However , while trying to reinstall the setup , it gave the above exception.&lt;br /&gt;
&lt;br /&gt;
There is good blog from&amp;nbsp;&lt;a href=&quot;http://www.josephturley.com/problems-reinstalling-dirsync/&quot; target=&quot;_blank&quot;&gt;josephturley&lt;/a&gt;&amp;nbsp;who gave detailed instructions on how to troubleshoot it. But this did not help. What worked for me was removing a registry entry for &quot;Windows Azure Active Directory Sync&quot;. You can find it under registry path&amp;nbsp;HKEY_LOCAL_MACHINE/ Software/ Microsoft/ Windows/ CurrentVersion/ Uninstall. Find the GUID which corresponds to the Display name &lt;span style=&quot;background-color: white; color: #666666; font-family: Lato, Helvetica, Arial, Lucida, sans-serif; font-size: 14px; line-height: 23.8px;&quot;&gt;as&amp;nbsp;&lt;/span&gt;&quot;Windows Azure Active Directory Sync&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPqctOFB1KoaUcj5i5zdehxihkGo6dImewSpha_ykCMMxRiQMhwpezBGp1mKbTPuAEn1Z6Zs5T_k16MW1dMmkuEUYOQMnUWGHPiXkyfNzd9s9Oum6sFKs3zdGKxQlaM6rjIUkN6G_HN8EO/s1600/Untitled.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;228&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPqctOFB1KoaUcj5i5zdehxihkGo6dImewSpha_ykCMMxRiQMhwpezBGp1mKbTPuAEn1Z6Zs5T_k16MW1dMmkuEUYOQMnUWGHPiXkyfNzd9s9Oum6sFKs3zdGKxQlaM6rjIUkN6G_HN8EO/s320/Untitled.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ashwinsidharth.blogspot.com/feeds/6933589044982505313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashwinsidharth.blogspot.com/2015/12/sharepoint-windows-azure-dirsync-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7310417214673357026/posts/default/6933589044982505313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7310417214673357026/posts/default/6933589044982505313'/><link rel='alternate' type='text/html' href='http://ashwinsidharth.blogspot.com/2015/12/sharepoint-windows-azure-dirsync-error.html' title='SharePoint Windows Azure DirSync error unable to re-install Directory Sync'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07718192402321904738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiktb5Z8IR0kCOFJDC4N8QRcq4e-5jiX31MNRudocHp-O60eNSrX2BxGpn7-tsaI7W6bHGyyjPbXdiPfjHsyAP8eUnDh9a2HdS5H9viyyOy40EaPflbAYIH2zc3vHC31QmfLScFA_0tUCar/s72-c/Untitled.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7310417214673357026.post-7010382257079902064</id><published>2015-12-10T08:30:00.001-08:00</published><updated>2015-12-10T08:31:07.473-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Cannot find an overload for &quot;Load&quot;"/><category scheme="http://www.blogger.com/atom/ns#" term="Office 365"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><category scheme="http://www.blogger.com/atom/ns#" term="Sharepoint 2013"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint online"/><title type='text'>SharePoint Online Powershell error Cannot find an overload for &quot;Load&quot; and the argument count: &quot;1&quot;.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
While using Powershell with CSOM you encounter the error&amp;nbsp;&lt;i&gt;&lt;u&gt;&quot;Cannot find an overload for &quot;Load&quot; and the argument count: &quot;1&quot;&lt;/u&gt;&lt;/i&gt;&amp;nbsp; when you do $context.Load while trying to access data from SharePoint online&lt;br /&gt;
&lt;br /&gt;
Exact error:&lt;br /&gt;
Cannot find an overload for &quot;Load&quot; and the argument count: &quot;1&quot;.&lt;br /&gt;
At C:\Users\XXX\Desktop\Scripts\Scripts.ps1:20 char:14&lt;br /&gt;
+ $Context.Load &amp;lt;&amp;lt;&amp;lt;&amp;lt; ($Lists)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; + CategoryInfo &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;: NotSpecified: (:) [], MethodException&lt;br /&gt;
&amp;nbsp; &amp;nbsp; + FullyQualifiedErrorId : MethodCountCouldNotFindBest&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Resolution:&lt;/u&gt;&lt;br /&gt;
&lt;br /&gt;
Make sure that you have installed the Sharepoint Client SDK - http://www.microsoft.com/en-us/download/details.aspx?id=35585&lt;br /&gt;
&lt;br /&gt;
Since Load&amp;nbsp;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ee536388.aspx&quot; style=&quot;background-color: white; border: 0px; font-family: &#39;Droid Sans&#39;, &#39;Trebuchet MS&#39;, Verdana, sans-serif; font-size: 14px; line-height: 21px; margin: 0px; outline: 0px; padding: 0px; text-decoration: none; vertical-align: baseline;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;ClientRuntimeContext.Load&amp;lt;T&amp;gt;&lt;/span&gt;&lt;/a&gt;&amp;nbsp;expects a generic&amp;nbsp;,in powershell you need to use the Invoke method to call generic methods.&lt;br /&gt;
&lt;br /&gt;
Use the following method to load any objects instead of the Load method. Pass the current Context and the object that needs to be loaded.&lt;br /&gt;
&lt;br /&gt;
Function Invoke-LoadMethod() {&lt;br /&gt;
param(&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$ctx,&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$clientObject&lt;br /&gt;
)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$load = [Microsoft.SharePoint.Client.ClientContext].GetMethod(&quot;Load&quot;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$type = $clientObject.GetType()&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$genericMethodInvoker = $load.MakeGenericMethod($type)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$genericMethodInvoker.Invoke($ctx,@($clientObject,$null))&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
Usage:&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&lt;b&gt;Invoke-LoadMethod -ctx $ctx -clientObject $spWeb&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Sample Code Execution:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Function Invoke-LoadMethod() {&lt;br /&gt;
param(&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$ctx,&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$clientObject&lt;br /&gt;
)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$load = [Microsoft.SharePoint.Client.ClientContext].GetMethod(&quot;Load&quot;)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$type = $clientObject.GetType()&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$genericMethodInvoker = $load.MakeGenericMethod($type)&lt;br /&gt;
&amp;nbsp; &amp;nbsp;$genericMethodInvoker.Invoke($ctx,@($clientObject,$null))&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
#Specify tenant user and site col url&lt;br /&gt;
$user = &quot;user@tenant.onmicrosoft.com&quot;&lt;br /&gt;
$siteURL = &quot;https://XX/sites/XXX&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#Add references to SharePoint client assemblies and authenticate to Office 365 site - required for CSOM&lt;br /&gt;
Add-Type -Path &quot;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.dll&quot;&lt;br /&gt;
Add-Type -Path &quot;C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\ISAPI\Microsoft.SharePoint.Client.Runtime.dll&quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$password = convertto-securestring &quot;XXX&quot; –asplaintext –force&lt;br /&gt;
$creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($user,$password)&lt;br /&gt;
&lt;br /&gt;
#initialize context&lt;br /&gt;
$ctx = New-Object Microsoft.SharePoint.Client.ClientContext($siteURL)&lt;br /&gt;
$creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($user,$password)&lt;br /&gt;
$ctx.Credentials = $creds&lt;br /&gt;
&lt;br /&gt;
#Retrieve web related informations&lt;br /&gt;
$web = $ctx.Web&lt;br /&gt;
&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;b&gt;Invoke-LoadMethod -ctx $ctx -clientObject $web&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
$ctx.ExecuteQuery()&lt;br /&gt;
&lt;br /&gt;
#Retrieve lists&lt;br /&gt;
$lists = $ctx.Web.Lists&lt;br /&gt;
&lt;span style=&quot;color: #741b47;&quot;&gt;&lt;b&gt;Invoke-LoadMethod -ctx $ctx -clientObject $lists&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
$ctx.ExecuteQuery()&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ashwinsidharth.blogspot.com/feeds/7010382257079902064/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashwinsidharth.blogspot.com/2015/12/sharepoint-online-powershell-error.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7310417214673357026/posts/default/7010382257079902064'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7310417214673357026/posts/default/7010382257079902064'/><link rel='alternate' type='text/html' href='http://ashwinsidharth.blogspot.com/2015/12/sharepoint-online-powershell-error.html' title='SharePoint Online Powershell error Cannot find an overload for &quot;Load&quot; and the argument count: &quot;1&quot;.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07718192402321904738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7310417214673357026.post-3518933572909495741</id><published>2012-10-21T12:29:00.001-07:00</published><updated>2013-04-20T15:26:02.208-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Map taxonomy"/><category scheme="http://www.blogger.com/atom/ns#" term="PowerShell"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2007"/><category scheme="http://www.blogger.com/atom/ns#" term="SharePoint 2010"/><category scheme="http://www.blogger.com/atom/ns#" term="Taxonomy"/><title type='text'>Mapping Taxonomy Fields with Terms using PowerShell</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;style&gt;
.post-body img, .post-body .tr-caption-container, .Profile img, .Image img, .BlogList .item-thumbnail img
{
border:none;
background:none;
-webkit-box-shadow:none;
box-shadow:none;
}
&lt;/style&gt;

&lt;br /&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div id=&quot;outer-wrapper&quot;&gt;
&lt;table align=&quot;center&quot; bgcolor=&quot;#ffffff&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot;&gt;
                &lt;tbody&gt;
&lt;tr&gt;
                        &lt;td&gt;&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;width: 100%;&quot;&gt;
                                &lt;tbody&gt;
&lt;tr&gt;
                                        &lt;td class=&quot;header&quot; style=&quot;background-image: url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWoJ3Rx-HdrG6C53hNkhcFoKOXT90HZQlF6Bi8F3pqwjdm8viJK4wDOHVxM61EbRFTZC68EJsKJnj7nFS0C34WxZAAR77S4iI6tYWMMCaH4ZENukoQwCPfqIl6WN4yifeOpCVEPlUh2xM/s320/header_bg.gif); background-repeat: repeat-x;&quot;&gt;&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;width: 100%;&quot;&gt;
                                                    &lt;tbody&gt;
&lt;tr&gt;
                                                            &lt;td class=&quot;dmoz_blog&quot; style=&quot;padding: 20px 18px 5px 0px;&quot;&gt;&lt;a href=&quot;http://ashiwnsalesforce.blogger.com/&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;
                                                                &lt;img alt=&quot;SalesForce Tips&quot; border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijgEkPLybU1iaK_GfSG2EgOYuZV6RfnWC65m6c2BPO_eAfCDDnXkDgyZipKO3CpDjvzVtP_PKAezjLnhGiSz6n141ozmUQze67wogOZ0NIDMer72asQ2g-dLVzNmHalNTv8PKPCtI1otQ/s1600/blog_logo.png&quot; title=&quot;Blog Home&quot; /&gt;&lt;/a&gt;&lt;/td&gt;
                                                            
                                                        &lt;/tr&gt;
&lt;/tbody&gt;
                                                &lt;/table&gt;
&lt;/td&gt;
                                    &lt;/tr&gt;
&lt;/tbody&gt;
                            &lt;/table&gt;
&lt;table border=&quot;0&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; style=&quot;width: 100%;&quot;&gt;
                                &lt;tbody&gt;
&lt;tr&gt;
                                        &lt;td class=&quot;inner_mid&quot;&gt;&lt;div id=&quot;content&quot;&gt;
&lt;div id=&quot;p1482911&quot;&gt;
&lt;div class=&quot;head2&quot;&gt;
&lt;span style=&quot;background-color: transparent; color: #5a9541; font-family: verdana; font-size: 14px; font-weight: bold;&quot;&gt;&lt;br /&gt;Updating Taxonomy Fields with Terms using PowerShell&lt;/span&gt;&lt;/div&gt;
&lt;div id=&quot;1482911&quot;&gt;
&lt;br /&gt;
Being a beginner in PowerShell script I had a bit of fun trying to figure out getting around a scenario where we had to map a given term (instead of TermSets) which had sub terms to a site column value. Below was the sample hierarchy for the Taxonomy&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHIYChhFxiAbTOQpvFLfn7_cy0XP39_a0yH61rhiYag9jQCQzSmrJLcYPurn4WpdAfoozGOUDsJ6nAxpxMpmJ_mbEhHTEnb8Kln2nHhlWmItbUrRGEUVE6GkuQsPl80kGPizasB28rwqGt/s1600/structure.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHIYChhFxiAbTOQpvFLfn7_cy0XP39_a0yH61rhiYag9jQCQzSmrJLcYPurn4WpdAfoozGOUDsJ6nAxpxMpmJ_mbEhHTEnb8Kln2nHhlWmItbUrRGEUVE6GkuQsPl80kGPizasB28rwqGt/s1600/structure.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: transparent;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: transparent;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: transparent;&quot;&gt;Here Country, Language were the &lt;/span&gt;&lt;i style=&quot;background-color: transparent;&quot;&gt;Groups&lt;/i&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;, Finance and HumanResources were the &lt;/span&gt;&lt;i style=&quot;background-color: transparent;&quot;&gt;TermSets &lt;/i&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;and the remaining were &lt;/span&gt;&lt;i style=&quot;background-color: transparent;&quot;&gt;Terms&lt;/i&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;. We needed to map the Terms to the site columns using PowerShell script reading the data from a configurable xml.&lt;/span&gt;&lt;br /&gt;
Though there were a couple of articles mentioning how to do the mapping to TermSet values ,it did not seem to work. The main thing missing was the AnchorID property. This is the mapping used by the fields to associate it to the Term value&lt;span style=&quot;color: #6aa84f;&quot;&gt;(&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent; color: #38761d;&quot;&gt;$field.AnchorId = $term.Id )&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: transparent;&quot;&gt;&lt;span style=&quot;color: #38761d;&quot;&gt;&amp;nbsp;&lt;/span&gt;You can see the sample script used for the mapping below.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
# Create Site object&lt;br /&gt;
$site = Get-SPSite &quot;http://siteurl/&quot;&lt;br /&gt;
# Get the field ref&lt;br /&gt;
[Microsoft.SharePoint.Taxonomy.TaxonomyField]$field = $site.RootWeb.Fields | Where-Object { $_.Name -eq &quot;FIELDNAME&quot; }&lt;br /&gt;
$session = new-object Microsoft.SharePoint.Taxonomy.TaxonomySession($site)&lt;br /&gt;
# Get the term store instance&lt;br /&gt;
$termstore = $session.TermStores[&quot;Managed Metadata Service&quot;]&lt;br /&gt;
# Get the Term Group using the Name&lt;br /&gt;
$group = $termstore.Groups | Where-Object { $_.Name -eq &quot;Company&quot; }&lt;br /&gt;
# Get the TermSet using the TermSet name&lt;br /&gt;
$termSet = $group.TermSets | Where-Object { $_.Name -eq &quot;Finance&quot; }&lt;br /&gt;
$terms = $termSet.GetTerms(100)&lt;br /&gt;
# Get the Term using the name&lt;br /&gt;
$term = $terms | ?{$_.Name -eq &quot;Country&quot;}&lt;br /&gt;
# Update the SspId&lt;br /&gt;
$field.SspId = $termstore.Id&lt;br /&gt;
$field.TermSetId = $termSet.Id&lt;br /&gt;
# Map the term value&lt;br /&gt;
$field.AnchorId = $term.Id&lt;br /&gt;
# Update the field&lt;br /&gt;
$field.Update()&lt;br /&gt;
&lt;br /&gt;
Hope this helps !!!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;
                                        &lt;td width=&quot;20&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/td&gt;
                                        &lt;td class=&quot;inner_right&quot;&gt;&lt;br /&gt;&lt;/td&gt;
                                        &lt;td width=&quot;9&quot;&gt;&lt;br /&gt;&lt;/td&gt;
                                    &lt;/tr&gt;
&lt;/tbody&gt;
                            &lt;/table&gt;
&lt;/td&gt;
                        &lt;!-- &lt;td class=&quot;left_bg&quot;&gt;&lt;table cellpadding=0 cellspacing=0 border=0&gt;
&lt;tr&gt;&lt;td style=&quot;border-left:1px solid #346a1e&quot;&gt;&lt;img src=&quot;/media/DMOZ_blog_bg.gif&quot;/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;/td&gt; --&gt;
                    &lt;/tr&gt;
&lt;/tbody&gt;
            &lt;/table&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://ashwinsidharth.blogspot.com/feeds/3518933572909495741/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://ashwinsidharth.blogspot.com/2012/10/mapping-taxonomy-fields-with-terms.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7310417214673357026/posts/default/3518933572909495741'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7310417214673357026/posts/default/3518933572909495741'/><link rel='alternate' type='text/html' href='http://ashwinsidharth.blogspot.com/2012/10/mapping-taxonomy-fields-with-terms.html' title='Mapping Taxonomy Fields with Terms using PowerShell'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/07718192402321904738</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEijgEkPLybU1iaK_GfSG2EgOYuZV6RfnWC65m6c2BPO_eAfCDDnXkDgyZipKO3CpDjvzVtP_PKAezjLnhGiSz6n141ozmUQze67wogOZ0NIDMer72asQ2g-dLVzNmHalNTv8PKPCtI1otQ/s72-c/blog_logo.png" height="72" width="72"/><thr:total>2</thr:total></entry></feed>