<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Taxonomyfield on Matt Thornton</title>
    <link>http://localhost:1313/tags/taxonomyfield/</link>
    <description>Recent content in Taxonomyfield on Matt Thornton</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Thu, 08 Mar 2012 18:10:57 +0000</lastBuildDate><atom:link href="http://localhost:1313/tags/taxonomyfield/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Error activating features - key cannot be null - redux</title>
      <link>http://localhost:1313/tech/sharepoint/error-activating-features-key-cannot-be-null-redux/</link>
      <pubDate>Thu, 08 Mar 2012 18:10:57 +0000</pubDate>
      
      <guid>http://localhost:1313/tech/sharepoint/error-activating-features-key-cannot-be-null-redux/</guid>
      
        <description>&lt;p&gt;A while ago, I &lt;a href=&#34;https://www.matt-thornton.net/tech/sharepoint/sharepoint-error-occurred-during-deployment-step-activate-features&#34;&gt;posted about&lt;/a&gt; a problem deploying declarative XML content types and fields.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Error occurred in deployment step ‘Activate Features’: Key cannot be null. Parameter name: Key&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;I&amp;rsquo;ve just encountered the same error - but this time with a field being deployed programmatically - i.e., no XML at all. I was deploying a Managed Metadata field (TaxonomyField) and doing this:&lt;/p&gt;
&lt;pre&gt;TaxonomyField taxField = web.Fields.CreateNewField(&#34;TaxonomyFieldType&#34;, &#34;My Field&#34;) as TaxonomyField;
taxField.SspId = termStore.Id;
...snip...
taxField.Update();
web.Fields.Add(taxField);
&lt;/pre&gt;
&lt;p&gt;This seemed pretty reasonable - except for the error, of course. In this case it was caused by &lt;strong&gt;taxField.Update()&lt;/strong&gt; - this is not required - the field doesn&amp;rsquo;t actually exist at this point.&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>