Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7598467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:24:52+00:00 2026-05-30T22:24:52+00:00

I created a vs solution with : 2 Site columns One content type One

  • 0

I created a vs solution with :

  1. 2 Site columns
  2. One content type
  3. One list template
  4. One list instance.

It compiles without any problem.
The feature packages all 4 things, IsHidden is set to true because its meant to be enabled via powershell only.

However when I enable it, i got the following exceptions in the log

Enable-SPFeature : Key cannot be null.
Parameter name: key
At line:28 char:17
+ Enable-SPFeature <<<<  "SlnOneSkyTeamsCustomization_FeatureExternalCIRCASites" -Url http://ost-dev1.ciredev1.local/
    + CategoryInfo          : InvalidData: (Microsoft.Share...etEnableFeature:SPCmdletEnableFeature) [Enable-SPFeature], ArgumentNullException
    + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletEnableFeature

I install the feature like this:

# Adds and Installs the SP Solution 
Add-SPSolution -LiteralPath "D:\Sources\s\27022012\SlnOneSkyTeamsCustomization\SlnOneSkyTeamsCustomization\bin\Debug\SlnOneSkyTeamsCustomization.wsp"
Install-SPSolution –Identity SlnOneSkyTeamsCustomization.wsp -GACDeployment -Force 

# Install-SPFeature use it only after installing or upgrading the solution
Install-SPFeature "SlnOneSkyTeamsCustomization_FeatureExternalCIRCASites" -force
Enable-SPFeature "SlnOneSkyTeamsCustomization_FeatureExternalCIRCASites" -Url http://x/

Only the last line is the one that throws the exception.

on the uls logs I see also:
Key cannot be null. Parameter name: key

Feature Activation: Threw an exception, attempting to roll back. Feature ‘SlnOneSkyTeamsCustomization_FeatureExternalCIRCASites’ (ID: ‘4abb1043-ac29-4897-8ebc-7e01b897e6ed’). Exception: System.ArgumentNullException: Key cannot be null. Parameter name: key at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionFieldsAndContentTypes(SPFeaturePropertyCollection props, SPSite site, SPWeb web, Boolean fForce) at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, Boolean fForce) at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, Boolean fForce)

Error Category: InvalidData Target Object Microsoft.SharePoint.PowerShell.SPCmdletEnableFeature Details NULL RecommendedAction NULL

I can show the code for all files here below.

https://sharepoint.stackexchange.com/questions/30244/system-argumentnullexception-on-feature-enabling

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T22:24:53+00:00Added an answer on May 30, 2026 at 10:24 pm

    Looking at stacktrace of exception I can suppose that you have invalid XML definition for field or content type inside feature. Perphaps you are missing some mandatory attribute. Can you post definitions for feature elements?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've created a new sharepoint application so I could use the my site feature.
I have a solution that includes a Web Site (created using the web site
I have just been handed an ASP.NET web site project, without a parent solution.
i'm looking for a solution to my problem, I have a site I have
In one of the mobile site, i created a webpage, wherein i am using
I have created a site with multiple languages in sitecore... I the content editor
I need a temporary solution to a problem I've created. Essentially I want to
I have a problem with opening word document from ASP.NET site. The solution works
I created a menu on my site which has a repeating problem. Here is
I have created a custom list in a SharePoint site and generated a Visual

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.