Friday, September 5, 2008

ListTemplate name attribute

Today I got this error again:
Exception from HRESULT: 0x81070201 at Microsoft.SharePoint.Library.SPRequestInternalClass.CreateListFromFormPost(String bstrUrl, String& pbstrGuid, String& pbstrNextUrl)
at Microsoft.SharePoint.Library.SPRequest.CreateListFromFormPost(String bstrUrl, String& pbstrGuid, String& pbstrNextUrl)

I encountered this one previously, but I forgot how to solve it. Therefore I'll post it here, so next time I won't spend an hour on this.

The name attribute in ListTemplate must be the subfolder scheme.xml is in. Else, when you create a listinstance, you get an error.

This posting got me through it this time:
http://spdummies.blogspot.com/2008/01/hresult-0x81070201-exception.html

Rating