When I'm trying to create a site using saved template it's throwing error like below:
The file SitePages/Home.aspx has been modified by i:0#.w|XX\XXXX on DD MMM YYYY 17:09:48 -0700
I have verified the logs but not getting the exact reason, All suggestions are open.
08/21/2015 01:56:54.66 w3wp.exe (0x17E20) 0xE494 SharePoint Foundation General 8l36 High Failed to activate site-scoped features for template 'DEPT#1' in site 'https://sharepoint.XXXXX.com/corp/test'. 5b1a269d-17b6-40e7-0581-4152c31c6272
08/21/2015 01:56:54.66 w3wp.exe (0x17E20)
0xE494 SharePoint Foundation Fields
bn3x High Failed to activate web features when provisioning site at url "https://sharepoint.XXXXX.com/corp/test" with site definition
"DEPT#1". 5b1a269d-17b6-40e7-0581-4152c31c6272
08/21/2015 01:56:54.66 w3wp.exe (0x17E20)
0xE494 SharePoint Foundation Monitoring
nass High [Forced due to logging gap, cached @ 08/21/2015 01:56:15.25, Original Level: Verbose] ____{0}={1} 5b1a269d-17b6-40e7-0581-4152c31c6272
08/21/2015 01:56:54.66 w3wp.exe (0x17E20)
0xE494 SharePoint Foundation Monitoring
b4ly High Leaving Monitored Scope (SPSqlClient). Execution Time=42082.7627263092 5b1a269d-17b6-40e7-0581-4152c31c6272
08/21/2015 01:56:54.66 w3wp.exe (0x17E20) 0xE494 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (SPSqlClient). Execution Time=42082.8963114218 5b1a269d-17b6-40e7-0581-4152c31c6272
08/21/2015 01:56:54.66 w3wp.exe (0x17E20)
0xE494 SharePoint Foundation General
72h9 High Failed to apply template "DEPT#1" to web at URL "https://sharepoint.XXXXX.com/corp/test".
5b1a269d-17b6-40e7-0581-4152c31c6272
08/21/2015 01:56:54.66 w3wp.exe (0x17E20) 0xE494 SharePoint Foundation General 72k2 High Failed to apply template "DEPT#1" to web at URL "https://sharepoint.XXXXX.com/corp/test", error The file SitePages/Home.aspx has been modified by i:0#.w|XX\XXXX on 21 Aug 2015 01:56:31 -0700. 0x8428d0c0 5b1a269d-17b6-40e7-0581-4152c31c6272
08/21/2015 01:56:54.66 w3wp.exe (0x17E20)
0xE494 SharePoint Foundation General
aix9j High SPRequest.ApplyWebTemplate: UserPrincipalName=i:0).w|s-1-5-21-1275210071-583907252-839522115-133008, AppPrincipalName= ,bstrUrl=https://sharepoint.XXXXX.com/corp/test ,bstrWebTemplateContent=<Project
Title="Template11" Revision="0" EnableMinimalDownload="FALSE" UIVersion="15" SiteLogoUrl="https://sharepoint.XXXXX.com/corp/test/SiteAssets/new%20Q%20logo.png"
SiteLogoDescription="" xmlns="<NavBars><NavBar">http://schemas.microsoft.com/sharepoint/"><NavBars><NavBar Name="SharePoint ,fWebTemplateContentFromSubweb=1
,fDeleteGlobalListsWithWebTemplateContent=1 ,fIgnoreMissingFeatures=0 5b1a269d-17b6-40e7-0581-4152c31c6272
08/21/2015 01:56:54.66 w3wp.exe (0x17E20) 0xE494 SharePoint Foundation General ai1wu Medium Microsoft.SharePoint.SPException: The file SitePages/Home.aspx has been modified by i:0#.w|XX\XXXX on 21 Aug 2015 01:56:31 -0700., StackTrace: at Microsoft.SharePoint.SPWeb.ProvisionWebTemplate(SPWebTemplate webTemplate, String webTemplateToUse, SPFeatureWebTemplate featureWebTemplate, Page page, SPFeatureDependencyErrorBehavior featureDependencyErrorBehavior, ICollection`1& featureDependencyErrors) at Microsoft.SharePoint.SPWeb.ApplyWebTemplate(SPWebTemplate webTemplate, Page page, SPFeatureDependencyErrorBehavior featureDependencyErrorBehavior, ICollection`1& featureDependencyErrors) at Microsoft.SharePoint.ApplicationPages.TemplatePickerUtil.ApplyWebTemplateAndRedirect(SPWeb Web, String strWebTemplate, Nullable`1 bSharedNav, Boolean bOnTopNav, Boolean bOnQuickLaunch, Page p... 5b1a269d-17b6-40e7-0581-4152c31c6272
08/21/2015 01:56:54.66* w3wp.exe (0x17E20)
0xE494 SharePoint Foundation General
ai1wu Medium ...age, Boolean bDeleteOnError, SPFeatureDependencyErrorBehavior featureDependencyErrorBehavior, ICollection`1& featureDependencyErrors)
at Microsoft.SharePoint.ApplicationPages.NewSubwebPage.BtnCreateSubweb_Click(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.Ht...
5b1a269d-17b6-40e7-0581-4152c31c6272
08/21/2015 01:56:54.66* w3wp.exe (0x17E20)
0xE494 SharePoint Foundation General
ai1wu Medium ...tpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception
error) at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb) at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr
rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotification...
5b1a269d-17b6-40e7-0581-4152c31c6272
08/21/2015 01:56:54.66* w3wp.exe (0x17E20)
0xE494 SharePoint Foundation General
ai1wu Medium ...Status& notificationStatus) at System.Web.Hosting.UnsafeIISMethods.MgdIndicateCompletion(IntPtr pHandler, RequestNotificationStatus&
notificationStatus) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr
rootedObjectsPointer, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags) 5b1a269d-17b6-40e7-0581-4152c31c6272
08/21/2015 01:56:54.66 w3wp.exe (0x17E20) 0xE494 SharePoint Foundation Monitoring b4ly High Leaving Monitored Scope (Applying Named Web Template: DEPT#1). Execution Time=42237.5990426555 5b1a269d-17b6-40e7-0581-4152c31c6272
08/21/2015 01:56:54.66 w3wp.exe (0x17E20) 0xE494 SharePoint Foundation General c97d Unexpected Exception attempting to ApplyWebTemplate to SPWeb https://sharepoint.XXXXX.com/corp/test: Microsoft.SharePoint.SPException: The file SitePages/Home.aspx has been modified by i:0#.w|XX\XXXX on 21 Aug 2015 01:56:31 -0700. ---> System.Runtime.InteropServices.COMException: <nativehr>0x81020015</nativehr><nativestack></nativestack>The file SitePages/Home.aspx has been modified by i:0#.w|XX\XXXX on 21 Aug 2015 01:56:31 -0700. at Microsoft.SharePoint.Library.SPRequestInternalClass.UpdateFileOrFolderProperties(String bstrWebUrl, String bstrWebRelativeUrl, String bstrCheckLockId, Object varProperties, Int32 fMigrationSemantics, Int32 fReGhost, Byte& piLevel) at Microsoft.SharePoint.Library.SPRequest.UpdateFileOrFolderProperties(String bstrWebUrl, String b... 5b1a269d-17b6-40e7-0581-4152c31c6272
08/21/2015 01:56:54.66* w3wp.exe (0x17E20) 0xE494 SharePoint Foundation General c97d Unexpected ...strWebRelativeUrl, String bstrCheckLockId, Object varProperties, Int32 fMigrationSemantics, Int32 fReGhost, Byte& piLevel) --- End of inner exception stack trace --- at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionPropertyBag(SPFeaturePropertyCollection props, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce) at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionElements(SPFeaturePropertyCollection props, SPWebApplication webapp, SPSite site, SPWeb web, SPFeatureActivateFlags activateFlags, Boolean fForce) at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce) at Microsoft.Share... 5b1a269d-17b6-40e7-0581-4152c31c6272