none
Error while save as template SharePoint 2010

    Question

  • When i try to save a site as a template I'm getting error.

    Can any one help me.

    Thanks in advance :)

    following line from ULS log

        SPSolutionExporter: System.InvalidOperationException: There was an error generating the XML document. ---> System.FormatException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).    
         at System.Guid..ctor(String g)    
         at Microsoft.SharePoint.WebPartPages.ListFormWebPart.get_ItemContext()    
         at Microsoft.SharePoint.WebPartPages.ListFormWebPart.get_ShowToolbarWithRibbon()    
         at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterListFormWebPart.Write15_ListFormWebPart(String n, String ns, ListFormWebPart o, Boolean isNullable, Boolean needType)    
         at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationWriterListFormWebPart.Write16_WebPart(Object o)     -
         -- End of inner exception stack trace ---    
         at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o, XmlSerializerNamespaces namespaces, String encodingStyle, String id)    
         at System.Xml.Serialization.XmlSerializer.Serialize(XmlWriter xmlWriter, Object o)    
         at Microsoft.SharePoint.WebPartPages.WebPart.SerializeWebPartXml(Boolean shouldExcludeSpecialProperties, TextWriter writer)    
         at Microsoft.SharePoint.WebPartPages.WebPart.WriteXmlAsUtf8(Boolean shouldExcludeSpecialProperties)    
         at Microsoft.SharePoint.WebPartPages.SPWebPartManager.GetWebPartXml(WebPart webPart, Boolean shouldUTF8Encode, Boolean shouldExcludeSpecialProperties, Boolean export)    
         at Microsoft.SharePoint.WebPartPages.SPLimitedWebPartManager.ExportWebPart(WebPart webPart, XmlWriter writer)    
         at Microsoft.SharePoint.SPSolutionExporter.GetFilesInFolderTree(SPFolder folder, SortedList`2 filesInFolder, List`1 webViews)    
         at Microsoft.SharePoint.SPSolutionExporter.GetFilesInFolderTree(SPFolder folder, SortedList`2 filesInFolder, List`1 webViews)    
         at Microsoft.SharePoint.SPSolutionExporter.GetFilesInFolderTree(SPFolder folder, SortedList`2 filesInFolder, List`1 webViews)    
         at Microsoft.SharePoint.SPSolutionExporter.GetFilesInWeb(String workflowTemplateName)    
         at Microsoft.SharePoint.SPSolutionExporter.GenerateSolutionFiles()    
         at Microsoft.SharePoint.SPSolutionExporter.ExportWebAsSolution()
    jeudi 14 juin 2012 18:34

Réponses

  • Thank you for all replies, I fixed this issue by creating a new clean site collection using the site definition I create, and it is working fine now

    Many thanks to every body.

    • Marqué comme réponse Ahmed Rabee jeudi 28 juin 2012 04:36
    jeudi 28 juin 2012 04:36

Toutes les réponses