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.
Image may be NSFW.
Clik here to view.

Clik here to view.
