Home > ShaePoint 2013, SharePoint 2010 > Enable-SPFeature issue : The Feature is not a Farm Level Feature

Enable-SPFeature issue : The Feature is not a Farm Level Feature

I came accross this issue. I am sharing my experience/finding/fix to the issue.

Problem statement:
I was trying to activate by feature name or GUID like following (1st two attempts) and i was getting the error

Enable-SPFeature : The Feature is not a Farm Level Feature and is not found in a Site level defined by the Url

Attemp 1 (by Name) – #did not work

Enable-SPFeatureIdentity “Myfeature name” –url $spSiteUrl –ForcePassThru

Attemp 2 (by GUID) – #did not work

Enable-SPFeatureIdentity “b40887eb-6473-47c2-877a-9d9c511356de” –url $spSiteUrl –ForcePassThru

Solution : Final Attemp (by GUID) – yes Worked……

Enable-SPFeature Identity b40887eb-6473-47c2-877a-9d9c511356de –url $spSiteUrl –ForcePassThru

As you can see that it has only minor difference. I removed double quotes from guid and it worked perfect. if you come accross this issue, here are some hints

– Ensure that site URL is correct.
– Ensure GUID is correct. You can always check it from feature.xml file
– Ensure that syntax does not contain double quotes around GUID.

I was using -Force and -PassThru for extra details. You don’t need to use them if it is not needed.

Hope it helps.

Advertisements
  1. Pappu
    December 1, 2014 at 5:36 am

    Thank you very much. I wasted lots of time to resolve this and finally found your blog…

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: