Parent content type is not found correctly

I made a new content type for my feature with the following definition:

<ContentType ID="0x01C428C71042B34562B51A69FEBFF26F91"
Name="Urlaubsanspruch"
Hidden="TRUE"
Group="Urlaubsantrag">
<FieldRefs>
<FieldRef ID="{3944F8B9-21F8-42c8-85AB-BEEF4E863688}" Name="Mitarbeiter"/>
<FieldRef ID="{8ADC8169-6BA9-4d7e-B77D-B0F8B79BBEC5}" Name="Vertreter"/>
<FieldRef ID="{FE07F11B-C5CE-4067-8F54-55440D516558}" Name="Vorgesetzter"/>
<FieldRef ID="{213DCBD5-EF1B-4175-AA2D-5258FC550A99}" Name="Personalabteilung"/>
<FieldRef ID="{6EB5AA2B-9870-4183-891C-A53BFFC51840}" Name="Anspruch"/>
<FieldRef ID="{AA6FA881-4140-4604-BC17-7FE750DE0BED}" Name="AnspruchVorjahr"/>
<FieldRef ID="{240C5537-78F8-4b7b-ABF1-63EA3CA85F8B}" Name="Gesamtanspruch"/>
<RemoveFieldRef ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Name="Title"/>
</FieldRefs>
</ContentType>

Problem is, when I activate the feature, it seems to be stuck in a loop, filling my log files with the following message:

Failed to find the parent content type ID="ct-1031-0x01c428c71042b34562b51a69febff26f" for content type ID="ct-1031-0x01c428c71042b34562b51a69febff26f91".

Why does it try to find the parent by the Content Type I defined I though the ID defines the parents, in this case 0x01
Also adding the attribute BaseType="0x01" didn't change this message.

I looked at the ctypeswss.xml, where all the internal content types are defined, and they did it the same way. Why doesn't it work for me


Answer this question

Parent content type is not found correctly

  • K Sumeet

    After looking closely again at the MSDN-Article about adding content types I found out, that you have to add 00 between the parent and the rest of the ID, when you are using a guid as content type id...

  • Parent content type is not found correctly