logo

A duplicate name "Item" was found

svenderuyte posted on Wednesday, September 05, 2007 2:40 AM

Hello,

I'm building a SharePoint 2007 site since 2 or 3 months or so. Now, all of
the sudden, when I try to create a new site collection of type "Collaboration
Portal" (publishing site), I get the following error (+ call stack):

Portal provisioning handler callout failed. Exception:
Microsoft.SharePoint.SPException: Provisioning did not succeed. Details: The
site template was not provisioned successfully. Delete this site collection
in Central Administration, and then create a new site collection.
OriginalException: Provisioning did not succeed. Details: Failed to create
the 'Cache Profiles' list. OriginalException: A duplicate name "Item" was
found. ---> Microsoft.SharePoint.SPException: Provisioning did not succeed.
Details: Failed to create the 'Cache Profiles' list.

at Microsoft.SharePoint.SPContentTypeCollection.CheckConsistency()
at Microsoft.SharePoint.SPContentTypeCollection.Update()
at Microsoft.SharePoint.SPContentTypeCollection.Add(SPContentType contentType)
at
Microsoft.SharePoint.Publishing.Internal.ProvisioningHelper.AddContentType(SPContentTypeCollection contentTypes, SPContentType contentType)
at
Microsoft.SharePoint.Publishing.Internal.ProvisioningHelper.AddContentTypeToList(SPList list, SPContentType contentType)
at
Microsoft.SharePoint.Publishing.Internal.ProvisioningHelper.ReplaceAllContentTypesOnList(SPList list, SPContentType contentType)
at
Microsoft.SharePoint.Publishing.Internal.RootProvisioner.CreateCacheProfilesList()

(I have more if you want...)

Anyone have any idea how this can suddenly happen? I haven't found any
threads about this problem on the forums, and googling only gave me 2 or 3
results with other people having this problem, but never a solution... As you
can imagine this is a big problem because I can't seem to enable Publishing
anymore! (the same problem appears when activating the Publishing
Infrastructure feature)

Any comments are welcome!

Sven
reply


OK... I managed to solve this problem!

svenderuyte posted on Wednesday, September 05, 2007 4:44 AM

OK... I managed to solve this problem! It has cost me a few hours but I'm
glad to have it working again.

When I looked at the site content types on an existing site, I noticed that
a lot of default content types (like tasks, announcements, etc) were just not
in the list. Only "Item", "Document" and all content types deriving from
that derives from "Item"). So I thought: maybe something's wrong with the
content types. So deactivating and activating the CTYPES feature was my next
option... no luck :(. Then I remembered that I had just added some content
types in a feature. I noticed that, in the ContentTypeID, I forgot to add two
zero's (00) to the parent ContentTypeID before adding my own GUID. I couldn't
deactivate my ContentTypes feature anymore (it threw an exception saying it
couldn't find the parent contenttype), so I edited my contenttypes.xml file
directly in the 12\TEMPLATE\FEATURES directory and added the necessary 00's.
Then I did an IISRESET and voila, my default content types were back and I
was again able to create Publishing sites!

Hope this helps someone!

Sven
reply

A duplicate name "Item" was found while deploying content

Roberto Sandriano posted on Tuesday, September 18, 2007 8:30 AM

Hi Sven,



I get similar exception while deploying content from source to destination. Any help would be highly appreciated.



A duplicate name "LoginContentType" was found.    Stack Trace:    at Microsoft.SharePoint.SPContentTypeCollection.Add(SPContentType contentType)

at Microsoft.SharePoint.Deployment.ContentTypeSerializer.CreateContentType(SPContentType sourceContentType)

at Microsoft.SharePoint.Deployment.ContentTypeSerializer.ProcessContentType(SPContentType sourceContentType, String contentTypeXml, ImportObjectManager importObjectManager, Boolean IsParentSystemObject)

at Microsoft.SharePoint.Deployment.ContentTypeSerializer.SetObjectData(Object obj, SerializationInfo info, StreamingContext context, ISurrogateSelector selector)

at Microsoft.SharePoint.Deployment.XmlFormatter.ParseObject(Type objectType, Boolean isChildObject)

at Microsoft.SharePoint.Deployment.XmlFormatter.DeserializeObject(Type objectType, Boolean isChildObject, DeploymentObject envelope)

at Microsoft.SharePoint.Deployment.XmlFormatter.Deserialize(Stream serializationStream)

at Microsoft.SharePoint.Deployment.ObjectSerializer.Deserialize(Stream serializationStream)

at Microsoft.SharePoint.Deployment.ImportObjectManager.ProcessObject(XmlReader xmlReader)

at Microsoft.SharePoint.Deployment.SPImport.DeserializeObjects()

at Microsoft.SharePoint.Deployment.SPImport.Run()

at Export.ImportExport.button2_Click(Object sender, EventArgs e)
reply

 

Didn't Find The Answer You Were Looking For?

View SharePoint Setup Posts   Ask A New Question

EggHeadCafe has experts online right now that may know the answer to your question.  We pay them a bonus for answering as many questions as they can.  So, why not help them and yourself by becoming a member (free) and ask them your question right now?
Ask Question In Live Forum

If you have an OpenID and do not want to become a member of the EggHeadCafe forum, you can also sign on to Chat Chaos and post your question to our real time Silverlight chat application.
Ask Question In Chat Chaos

Previous SharePoint Setup conversation.

SharePoint Design    SharePoint Development    SharePoint    SharePoint Portal Server    SharePoint Portal Server Dev    SharePoint Setup    SharePoint Windows Services    Sharepoint Windows Services   






  $1000 Contest    [)ia6l0 iii - $228  |  Jonathan VH - $161  |  Huggy Bear - $135  |  F Cali - $95  |  egg egg - $94  |  more Advertise  |  Privacy  |   (c) 2010