Failed to initialize some site properties for Web at Url. Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT).
Hi,This happens sometimes when users are creating new site in Site Directory. Site creation is done by a custom webpart code. This web part saves site information in SharePoint list, Project Server, SQL. But when this error occurs, nothing is created, event viewer has this error. But it does not happen every time, the same users can get lucky in creating the site next time. Event log message was: 'Failed to initialize some site properties for Web at Url: 'http://portal/SiteDirectory/Site''. Exception was: 'Microsoft.SharePoint.SPException: Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT)) ---> System.Runtime.InteropServices.COMException (0x80004004): Operation aborted (Exception from HRESULT: 0x80004004 (E_ABORT)) at Microsoft.SharePoint.Library.SPRequestInternalClass.SetWebProps(String bstrUrl, String bstrTitle, String bstrDescription, UInt32 nLocale, UInt16 nTimeZone, Boolean bTime24, Int16 nCalendarType, Int16 nAdjustHijriDays, Int16 nAltCalendarType, Boolean bShowWeeks, Int16 nFirstWeekOfYear, Int16 nFirstDayOfWeek, Int16 nWorkDays, Int16 nWorkDayStartHour, Int16 nWorkDayEndHour, Int32 lFlags, Int16 nCollation, UInt32 nAuthor, String bstrCustomizedCssFileList, String bstrAlternateCssUrl, String bstrAlternateHeaderUrl, String bstrMasterUrl, String bstrCustomMasterUrl, String bstrSiteLogoUrl, String bstrSiteLogoDescription, Boolean bUpdateTimeCreated, DateTime dtTimeCreated, Boolean bUpdateTimeLastModified, DateTime dtTimeLastModified, UInt32& nCollationLCID) at Microsoft.SharePoint.Library.SPRequest.SetWebProps(String bstrUrl, String bstrTitle, String bstrDescription, UInt32 nLocale, UInt16 nTimeZone, Boolean bTime24, Int16 nCalendarType, Int16 nAdjustHijriDays, Int16 nAltCalendarType, Boolean bShowWeeks, Int16 nFirstWeekOfYear, Int16 nFirstDayOfWeek, Int16 nWorkDays, Int16 nWorkDayStartHour, Int16 nWorkDayEndHour, Int32 lFlags, Int16 nCollation, UInt32 nAuthor, String bstrCustomizedCssFileList, String bstrAlternateCssUrl, String bstrAlternateHeaderUrl, String bstrMasterUrl, String bstrCustomMasterUrl, String bstrSiteLogoUrl, String bstrSiteLogoDescription, Boolean bUpdateTimeCreated, DateTime dtTimeCreated, Boolean bUpdateTimeLastModified, DateTime dtTimeLastModified, UInt32& nCollationLCID) --- End of inner exception stack trace --- at Microsoft.SharePoint.Library.SPRequest.SetWebProps(String bstrUrl, String bstrTitle, String bstrDescription, UInt32 nLocale, UInt16 nTimeZone, Boolean bTime24, Int16 nCalendarType, Int16 nAdjustHijriDays, Int16 nAltCalendarType, Boolean bShowWeeks, Int16 nFirstWeekOfYear, Int16 nFirstDayOfWeek, Int16 nWorkDays, Int16 nWorkDayStartHour, Int16 nWorkDayEndHour, Int32 lFlags, Int16 nCollation, UInt32 nAuthor, String bstrCustomizedCssFileList, String bstrAlternateCssUrl, String bstrAlternateHeaderUrl, String bstrMasterUrl, String bstrCustomMasterUrl, String bstrSiteLogoUrl, String bstrSiteLogoDescription, Boolean bUpdateTimeCreated, DateTime dtTimeCreated, Boolean bUpdateTimeLastModified, DateTime dtTimeLastModified, UInt32& nCollationLCID) at Microsoft.SharePoint.SPWeb.Update() at Microsoft.SharePoint.Publishing.PublishingWeb.Update() at Microsoft.SharePoint.Publishing.Internal.AreaProvisioner.InitializePublishingWebDefaults()' Regards, R.D.M.
October 10th, 2009 1:06am

Hi, Did you get resolution of this issue? I am also facing the same problem.
Free Windows Admin Tool Kit Click here and download it now
November 25th, 2009 2:30pm

I haven't resolved it yet, but it happens rarely. One thing I noticed that this can happen when you use a site template with some publishing features turned on while creating a new site. So, your code can be trying to turn them on again and this error can be caught sometimes because of timing issue. Try to change the architecture of your code too.Regards, R.D.M.
November 26th, 2009 4:27am

Hi, I'm also having same issue. Our log says few deadlock errors in same time, like this "Unexpected query execution failure, error code 1205. Additional error information from SQL Server is included below. "Transaction (Process ID 172) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction." Query text (if available): "{?=call proc_UpdateTpWebMetaData(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}"". I got it fixed once by changing SQL Servers MAXDOP from 0 to 1.More about that here: http://blogs.msdn.com/grahamk/archive/2009/06/15/troubleshooting-sql-server-deadlocks-and-performance-when-running-sharepoint.aspx. Unfortunately issue just came back. This happens every time I try to activate Office SharePoint Server -Publishig feature.
Free Windows Admin Tool Kit Click here and download it now
December 2nd, 2009 5:08pm

asdqwe, thanks for the post. Yes, I also suspected the deadlock issue and I visited the link you provided when I had this issue before. But I wasn't able to find anything from there. Instead, I just added some code with try/catch block to check if the publishing feature is activated before the main code creates a new site. So far it works, but I'm still testing it. Hopefully it won't happen again.Regards, R.D.M.
December 3rd, 2009 4:19am

It's definately deadlock issue. If I try to activate Office SharePoint Server Publishing feature on some web, it takes few minutes and giges me this error message:Stacktrace: at Microsoft.SharePoint.Publishing.Internal.AreaProvisioner.InitializePublishingWebDefaults()at Microsoft.SharePoint.Publishing.Internal.AreaProvisioner.Provision()at Microsoft.SharePoint.Publishing.PublishingFeatureHandler.<>c__DisplayClass3.<FeatureActivated>b__0()at Microsoft.SharePoint.Publishing.CmsSecurityUtilities.RunWithWebCulture(SPWeb web, CodeToRun webCultureDependentCode)at Microsoft.SharePoint.Publishing.PublishingFeatureHandler.FeatureActivated(SPFeatureReceiverProperties receiverProperties)at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, Boolean fForce)at Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly)at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId, Boolean force)at Microsoft.SharePoint.SPFeatureCollection.CheckSameScopeDependency(SPFeatureDefinition featdefDependant, SPFeatureDefinition featdefDependency, Boolean fActivateHidden, oolean fForce)at Microsoft.SharePoint.SPFeatureCollection.CheckFeatureDependency(SPFeatureDefinition featdefDependant, SPFeatureDependency featdep, Boolean fActivateHidden, Boolean fForce)at Microsoft.SharePoint.SPFeatureCollection.CheckFeatureDependencies(Guid featidDependee, Boolean fActivateHidden, Boolean fForce)at Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly)at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId) at Microsoft.SharePoint.WebControls.FeatureActivator.BtnActivateFeature_Click(Object objSender, EventArgs evtargs)at System.Web.UI.WebControls.Button.OnClick(EventArgs e)at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)This happens only under my production site collection. On other blank site collection I can activate publishing feature without any error.
Free Windows Admin Tool Kit Click here and download it now
December 3rd, 2009 6:02pm

R.D.M, did youget this fixed by changing code which activated publishing feature? We are using xml based provisioning on creating new sites, somayde we also need to change our provision methodto activate publishing feature afterwards. But still I'm curious to know did you get this problem fixed somehow? And how exactly?
December 9th, 2009 1:55pm

Does anyone else have encountered this issue?
Free Windows Admin Tool Kit Click here and download it now
December 23rd, 2009 5:20pm

yes I have the same issue.. which is very frustating I cannot create new sites with my custom template and also I cannot add any sub sites under my existing site collections .. it used to be working great but after i did upgrade my servers to SP2 this thing started happening....any help on this will be greatly appreciated..thankssrikrishna.
January 6th, 2010 9:07pm

yes I have the same issue.. which is very frustating I cannot create new sites with my custom template and also I cannot add any sub sites under my existing site collections .. it used to be working great but after i did upgrade my servers to SP2 this thing started happening....any help on this will be greatly appreciated..thankssrikrishna.
Free Windows Admin Tool Kit Click here and download it now
January 6th, 2010 9:07pm

Hey everyone I actually have found the answer for this issue fixed it and everything in my farm is working great.. this issue is due to SP2 installation for WSS 3.0 and MOSS 2007.I beleieve what happened was after the installation some how due to any security updates on that SP2 might have added all my custom templates dont work.when I create a site collection picking the custom template the site actually gets created but the default.aspx is looking for a master page for that specifies it which layout to use while rendering and it was not finding it due to the inheritance was broken..so what we did added extra functionality to our custom template feature which forces any site creation done by using that template to look for specific master page which fixed it.I will try to post the entire process how we did may be with in few days but if any of you are aware of custom features and solution development .. we did this using branding techniques provided with sharepint development
January 30th, 2010 12:39am

Hey everyone I actually have found the answer for this issue fixed it and everything in my farm is working great.. this issue is due to SP2 installation for WSS 3.0 and MOSS 2007.I beleieve what happened was after the installation some how due to any security updates on that SP2 might have added all my custom templates dont work.when I create a site collection picking the custom template the site actually gets created but the default.aspx is looking for a master page for that specifies it which layout to use while rendering and it was not finding it due to the inheritance was broken..so what we did added extra functionality to our custom template feature which forces any site creation done by using that template to look for specific master page which fixed it.I will try to post the entire process how we did may be with in few days but if any of you are aware of custom features and solution development .. we did this using branding techniques provided with sharepint development
Free Windows Admin Tool Kit Click here and download it now
January 30th, 2010 12:39am

Guys, sorry for not responding on your comments. It's been a while since I last got this error, only because I changed the code in the app which is used to create sites. Site creation is automated in my case. Since I changed the code, I receive another error, which tell me that Publishing features were not provided or something like that. Every time it does this, we need to go and correct everything manually :(. Regards, R.D.M.
January 30th, 2010 4:25am

Do you get same exception just by trying to activate publishing feature on some site (site can be created for example using blank template). In our case it doesn't matter if I use custom template or some default template. It's just activating publishing. I also noticed that when this issue occurs my pages library is incomplete. It lacks default page and library settings page is missing link "Audience targeting settings".
Free Windows Admin Tool Kit Click here and download it now
January 31st, 2010 9:25pm

No I get exception that tells the Publishing feature is not activated. Also, I don't have Audience setup in the template. I was so frustrated and I had to except the fact that I need to correct everything manually when this error shoots. It happens about once in 10 times of site creation.Regards, R.D.M.
January 31st, 2010 10:01pm

Do you know why publishing feature is not activated in these special cases? Do you get this known error messages when it fail?
Free Windows Admin Tool Kit Click here and download it now
February 2nd, 2010 1:14pm

Unfortunately I could not dig in deep enough to understand why it does so. As I said above I get a different message that says that publishing feature was not activated. It is not the same I guess.Regards, R.D.M.
February 3rd, 2010 3:32am

Srikrishna SallamDo not propose your own posts. Instead please propose the good answers of other people as this helps the Moderators.(Moderator)FAQ sites: (SP 2010) http://wssv4faq.mindsharp.com; (v3) http://wssv3faq.mindsharp.com and (WSS 2.0) http://wssv2faq.mindsharp.com Complete Book Lists (incl. foreign language) on each site.
Free Windows Admin Tool Kit Click here and download it now
February 12th, 2010 9:07am

Alright sure. I dint know that. Thanks for the information MikeSrikrishna.
February 12th, 2010 10:27pm

Alright sure. I dint know that. Thanks for the information MikeSrikrishna.
Free Windows Admin Tool Kit Click here and download it now
February 12th, 2010 10:27pm

I had case open of this issue in Microsoft support. After few months result was shortly this: "This behaviour occurs very seldom within SharePoint 2007. In the past we had requested our product group to change this behaviour with a hotfix, which was rejected due to the tremendous amount of change that was required to resolve this problem. It was beyond the scope of a hotfix and an out of the box solution isn’t available. We were told then that the next version of SharePoint should not have this behaviour." One of the possibilities that “may” resolve this problem is changing the Max degree of parallelism within SQL Advanced settings to 1. Also I noticed that indexing and running update statistics to SharePoint Content databases may help too.
April 27th, 2010 2:37pm

asdqwe Only two posts above your post (that you immediately proposed as an answer) was one with the following text. Do not propose your own posts. Instead please propose the good answers of other people as this helps the Moderators. The same goes for you too. (Moderator) FAQ sites: (SP 2010) http://wssv4faq.mindsharp.com; (v3) http://wssv3faq.mindsharp.com and (WSS 2.0) http://wssv2faq.mindsharp.com Complete Book Lists (incl. foreign language) on each site.
Free Windows Admin Tool Kit Click here and download it now
April 27th, 2010 2:45pm

Hi Guys, Most of the times , the reason for getting "Exception from Hresult" Operation aborted error , during site provisioning is because of the less space left on content DB. Just let your SQL DBA know about this reason and tell him to shrink the DB size. Regards, Manvir Singh Pamma
April 27th, 2010 2:58pm

Also , to add to my previous reply , the code fails at different points if Content DB size is increased.Manvir Singh Pamma
Free Windows Admin Tool Kit Click here and download it now
April 27th, 2010 3:02pm

Most of the times the reason for "Exception from HResult(E_ABORT)" type of errors is some problem with content DB.Manvir Singh Pamma
April 27th, 2010 3:08pm

Yea i agree that this is definitely a database related issue. But still I want to inform that Microsoft support told us that there are some rare cases where SharePoint can't handle deadlock cases and they can't fix those because it would be too big operation.
Free Windows Admin Tool Kit Click here and download it now
April 28th, 2010 7:19pm

Hi folks, I was facing a issue of creation of site collection using a saved web templates in sharepoint 2010. The requirement is to activate publishing site and web features which in turn is used in branding. The issue i was facing is i am not able to activate publishing features while modifying the onet.xml of the web template when imported as vs project. Also , Microsoft article http://support.microsoft.com/kb/2492356 suggests that its not possible to activate publishing features . Also, Stapling is not supported with web templates in sharepoint 2010 However , i created a feature receiver to activate publishing site and publishing web and made a entry of the features in onet.xml of the web templates. It worked. Not sure if this is the correct place for answering this issue but i didnot find any answer to this issue in the web so thought of posting it Moderator Note: NEVER propose your own posts as answers. Propose the good answers of other people only.
May 26th, 2011 3:11pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics