RSS

Sharepoint 2010 Content Deployment Error : Feature ‘XXXXX-XXXX-XXXX’ is Site-scoped, and cannot be added to the Web.

06 Feb

Error:

When you do content deployment of your custom portal in Sharepoint 2010 you might get following error:

Content deployment job ‘Remote import job for job with sourceID = XXX-XXX-XXX-XXX: Import in progressThe exception thrown was ‘System.InvalidOperationException’ : ‘Feature ‘XXX-XXX-XXX’ is Site-scoped, and cannot be added to the Web.’

Cause

This occurs if you delete or retract your custom solution without deactivating and uninstalling  the feature for each deployed scope.

Resolution

You need to cleanup your feature uninstallation. Always follow below steps to uninstall a feature

  • stsadm –o deactivatefeature –id a9efee03-12fc-46ca-acba-0ef1e0ae3171 -url http://site
  • stsadm –o uninstallfeature –id a9efee03-12fc-46ca-acba-0ef1e0ae3171
  • stsadm -o retractsolution -name CustomWebpart.wsp -immediate -url http://site
  • stsadm -o execadmsvcjobs
  • stsadm -o deletesolution -name CustomWebpart.wsp  

You need to do this for all your sites using the feature. Then try content deployment again.

 
2 Comments

Posted by on February 6, 2012 in Error, Sharepoint Server 2010

 

Tags: ,

2 responses to “Sharepoint 2010 Content Deployment Error : Feature ‘XXXXX-XXXX-XXXX’ is Site-scoped, and cannot be added to the Web.

  1. Jamil Haddadin

    June 7, 2015 at 12:21 PM

    Hi Jim! I came across your blog man 🙂 I am facing the same issue… this was really useful! please continue blogging my friend

    Regards

    Jamil Haddadin

     
    • Jim Mathew

      June 7, 2015 at 11:05 PM

      Thanks Jamil! Glad to hear that SharePoint Gurus are referring my blog..Howz your life man?

       

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: