Error Generating Solution Files In Temporary Directory Sharepoint 2010
(עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語) Home20132010Other VersionsLibraryForumsGallery Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: SharePoint Save site as template error - Error generating solution files in temporary directory SharePoint > SharePoint 2010 - Setup, Upgrade, Administration and Operations Question 0 Sign in to vote Hi, Since lastcouple of days,I am trying to get sitetemplate of sharepoint (sub)site by using "site settings -> Save site as template" and "http://severurl/sitename/_layouts/viewtmpl.aspx". But all the time it is throwing below error messagewith stacktrace. Source Error : An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace : [InvalidOperationException: Error generating solution files in temporary directory.] Microsoft.SharePoint.SPSolutionExporter.ExportWebAsSolution() +27218658 Microsoft.SharePoint.SPSolutionExporter.ExportWebToGallery(SPWeb web, String solutionFileName, String title, String description, ExportMode exportMode, Boolean includeContent, String workflowTemplateName, String destinationListUrl) +1826 Microsoft.SharePoint.SPSolutionExporter.ExportWebToGallery(SPWeb web, String solutionFileName, String title, String description, ExportMode exportMode, Boolean includeContent) +44 Microsoft.SharePoint.ApplicationPages.SaveAsTemplatePage.BtnSaveAsTemplate_Click(Object sender, EventArgs e) +331 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +115 System.Web.UI.WebControls.Button.
the Save site as a template error when you have provisioned custom site columns in SharePoint2013 Posted on March 17, 2015 by finarne ***UPDATE: 18/03/2015*** I've updated this article to discuss the specifics of when this issue can arise I had a report of a user experiencing an error using the Save site as a Template on https://social.technet.microsoft.com/Forums/office/en-US/531d9dc8-fb99-4568-9a27-7276c0a48030/sharepoint-save-site-as-template-error-error-generating-solution-files-in-temporary-directory?forum=sharepointadminprevious a straight forward Team Site in 2013. tl;dr If you provision a custom site column with the Overwrite="true" attribute using SPFieldCollection.AddFieldAsXml then the Save site as template function will fail as the underlying code to generate the wsp file will add a duplicate Overwrite="true" attribute to the https://finarne.wordpress.com/2015/03/17/fixing-the-save-site-as-a-template-error-when-you-have-provisioned-custom-site-columns-in-sharepoint-2013/ site column and therefore generate an xml file error. You need to update any provisioned site column's SchemaXml property to remove the Overwrite="true" attribute. I was able to re-create the error on a test server and began the investigation. Note: the farm was patched up to August 2013 CU only, but I've had a quick check of the codebase in SP1 and it appears that this issue discussed below persists In ULS I saw the following error for the correlation id: [Forced due to logging gap, Original Level: Monitorable] System.Xml.XmlException: ‘Overwrite' is a duplicate attribute name. Line 1, position 327. at System.Xml.XmlTextReaderImpl.Throw(String res, String arg, Int32 lineNo, Int32 linePos) at System.Xml.XmlTextReaderImpl.AttributeDuplCheck() at System.Xml.XmlTextReaderImpl.ParseAttributes() at System.Xml.XmlTextReaderImpl.ParseElement() at System.Xml.XmlTextReaderImpl.ParseDocumentContent() at Microsoft.SharePoint.SPSolutionExporter.WriteXmlToWriter(XmlWriter output, String xml, Boolean skipDocumentElement, Boolean addCdata) at Microsoft.SharePoint.SPSolutionExporter.ExportFields(SPFieldCollection fields, String partitionName) at Microsoft.SharePoint.SPSolutionExporter.ExportListsManifest(ListInstancesE
Hey, i have a problem with „save site as template“. I get the error message: SaveAsTemplate : Exception calling "SaveAsTemplate" with "4" argument(s): http://answers.flyppdevportal.com/MVC/Post/Thread/5bf7a932-f92a-4b52-8f81-26d6b27d56a3?category=sharepointadminprevious "Error generating solution files in temporary directory." At D:\Install_Scripte\export to template.ps1:3 http://sharepointmania.blogspot.com/2015/11/sharepoint-how-to-troubleshoot-issues.html char:20 + $Web.SaveAsTemplate <<<< ("Template","Template","Template",1) + CategoryInfo : NotSpecified: (:) [], MethodInvocationException + FullyQualifiedErrorId : DotNetMethodException I run it with the PowerShell command: $Web=Get-SPWeb SiteURL $Web.SaveAsTemplate("Template","Template","Template",1) The AppPol Owner has full rights on the Temp drive of the SharePoint Server. What can I error generating do to save the site as template? The Problem is only on this one site, by all other sites there is no problem. Thanks for your help Stefan RepliesMike Smith MCT MVP on Sun, 23 Dec 2012 16:49:32 A couple possibilities: It might be service account permissions related: http://social.msdn.microsoft.com/Forums/en-US/asmxandxml/thread/726a46c0-1303-41a7-95be-f86a025b78e9 Is this a publishing site? SaveAsTemplate is not error generating solution supported for publishing sites. Do you have custom site columns? http://social.technet.microsoft.com/forums/en-SG/sharepointadminprevious/thread/531d9dc8-fb99-4568-9a27-7276c0a48030 The last parameter is boolean, so instead of 1 try $true or $false fSaveData Type: System.Boolean true if data on the website is saved as part of the site template; otherwise, false. http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spweb.saveastemplate(v=office.14).aspx The template is saved in the Solutions gallery in SP2010. Does the account you are using with PowerShell have write permissions to the top level site, or at least to the Solution gallery? Stefan3110 on Sun, 23 Dec 2012 21:47:06 Thanks for your help. It is no Publishing Site. On the Site there is a custom WebPart, deployed as a farmsolution. I will Check the rights of the temp Folder for the Network authority Service. Regardings StefanStefan3110 on Tue, 25 Dec 2012 11:01:41 This is the information form the log files SPSolutionExporter: System.Xml.XmlException: An error occurred while parsing EntityName. Line 1, position 453. at System.Xml.XmlTextReaderImpl.Throw(Exception e) at System.Xml.XmlTextReaderImpl.ParseEntityName() at System.Xml.XmlTextReaderImpl.ParseEntityReference() at System.Xml.XmlTextReaderImpl.Read() at System.Xml.XmlReader.ReadString() at Microsoft.SharePoint.WebPartPages.DataFormWebPart.get_DataFields() at T_DataFormWebPart_DataFields_187.GetProperty(Object ) at System.Web.UI.WebControls.WebParts.PersonalizableAttribute.GetPersonaliza
3 Child Category 4 Featured Health Childcare Doctors Uncategorized Sunday, 1 November 2015 SharePoint: How to troubleshoot issues with Save as template Ashish Bharadwaj 23:00 No comments On an upgrade project to SharePoint 2013 we ran into an issue where a specific site couldn't be saved as a template (with or without content). You get the non-descriptive "Sorry, something went wrong" and "An unexpected error has occurred" messages. Funny enough the logged Correlation Id is totally absent from the ULS logs, so no help there. What you can do next is turn on advanced debugging mode by configuring the following entries in the web.config of the SharePoint site: Turn on the call stack (CallStack="true") Disable custom errors in Visual Studio (