el_Bacco



Hey,

I tried to add a feature. Unfortunately I couldn't see it in the features list. So I took a closer look to the feature.xml and changed some details... but I can't install the feature anymore.

Neither
stsadm -o installfeature -name CreateProjectPlansOnItemAddedEH -force
nor
stsadm -o uninstallfeature -name CreateProjtPlansOnItemAddedEH
nor
stsadm -o scanforfeatures
work...

The message is always the same:
C:\Documents and Settings\user>stsadm -o installfeature -name CreateProjectPlansOnItemAddedEH

Required attribute 'Id' is missing from tag 'Feature' in feature definition for feature with ID '00000000-0000-0000-0000-000000000000'.


How can I get rid of the Feature


Re: Feature - Strange installing error

DKeeling


Is the feature still currently listed on the farm as an installed feature Is there still a folder with the name you provided in your "C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\Template\Features" folder If there is not a folder named what you are trying to remove your feature is most likely gone. The error message makes me think you need to generate a new GUID for your feature. Your feature file should look like

<Feature xmlns="http://schemas.microsoft.com/sharepoint/" Id="GUID" Title="CreateProjectPlansOnItemAddedEH"

...

...

make sure to throw a new GUID in there before you re-install it.

If there is not a folder, you might check and see if there is a folder with a matching GUID and you can use the uninstallfeature option of STSADM with a guid in place of a name.






Re: Feature - Strange installing error

el_Bacco


Changing GUID didn't solve the problem.

Code Snippet

My Feature.xml



< xml version="1.0" encoding="utf-8" >
<Feature
ID="69ADDB49-0CD3-4537-A8F9-9394878F73C4"
Title="Create Project-Plans automatically"
Description="This Feature is a Event Handler to create new Project-Plan-Lists out of the Projects List"
Scope="Web"
Hidden="FALSE"
xmlns="http://schemas.microsoft.com/sharepoint/">
</Feature>



Code Snippet

My DOS-Command


C:\Documents and Settings\marioheyer>stsadm -o installfeature -filename CreateProjectPlansOnItemAddedEH\Feature.xml -force

Required attribute 'Id' is missing from tag 'Feature' in feature definition for feature with ID '00000000-0000-0000-0000-000000000000'.


Actually very simple and actually it should work... but

Any other ideas I would like to avoid to rename the solution, but that seems to be the onliest way to get rid of the prob.





Re: Feature - Strange installing error

el_Bacco



Oh ***, once not used the automatic filling with visual studio...

ID should be Id

That's all.




Re: Feature - Strange installing error

DKeeling

Glad it got worked out.