Freigeben über


Quick Solution 4 : File Not Found. at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateListFromFormPost

Error Message

 

  File Not Found. at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateListFromFormPost(String bstrUrl, String& pbstrGuid, String& pbstrNextUrl)
 
 at Microsoft.SharePoint.Library.SPRequest.CreateListFromFormPost(String bstrUrl, String& pbstrGuid, String& pbstrNextUrl)
 
 at Microsoft.SharePoint.SPListCollection.CreateListFromRpc(NameValueCollection queryString, Uri& nextUrl)
 
 at Microsoft.SharePoint.ApplicationPages.NewListPage.BtnOk_Click(Object sender, EventArgs args)
 
 at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
 
 at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
 
 at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
 
 at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
 
 <date time> w3wp.exe (0x06EC) 0x0D6C Windows SharePoint Services General 72lu High Cannot find doc <document>? 
 <date time> w3wp.exe (0x06EC) 0x0D6C Windows SharePoint Services General 8z1w High Failed to upload document library template type "101" for list "<listName>" in web "https://server". 
 <date time> w3wp.exe (0x06EC) 0x0D6C Windows SharePoint Services Fields 88yg High Failed to instantiate list 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\Template\Features\DocumentLibrary\doclib' 
 
  

Causes

The issue happens while trying to upload a ghosted document template file to the being created list/document library.

When create a list/library, SharePoint need to:

  1. Instantitate the list in store
  2. Upload the ghosted document template file to the list/document library 

When upload the file, the SharePoint need to check if the ghosted DocumentTemplateFile is a validate file. If it is not a validate file, the following error will be thrown:

     72lu   High        Cannot find doc <documentName> 

The DocumentTemplateFile is defined in the site definition in onet.xml file.

 

Solutions 

You can follow these steps to solve the issue:

  1. Connect to SQL Server database that is stored the SharePoint content databases using SQL Server Management Studio(SSMS)
  2. Query the table "dbo.Webs" from the current content database (the database for the site collection)
  3. Check the WebTemplate id from the result
  4. Find the associated site template with the id follow this article: https://praveenbattula.blogspot.com/2010/08/know-site-template-used-for-sharepoint.html
  5. Go to C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\SiteTemplates\<the templatename got from the previous step>\XML
  6. Open the Onet.xml
  7. Get the DocumentTemplateFile element that has Type=<Id of the type of the list/document library that is mentioned in the error log>"
    Failed to upload document library template type "<Id of the type of the list/document library>" for list "<listName>" in web https://server
  8. Ensure its “Name” attribute points to a validate file (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\12\TEMPLATE\1033\STS\<the value for Name here>)