Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SharePoint 2010 Error when creating list view

I have a custom list definition created via visual studio 2010. I would like to create a calendar view of this list using the web interface. When I attempt to create the view however, I am greeted with a helpful error message of:

Error

Cannot complete this action.

Please try again.

About the problem:

  • When I attempt to duplicate this error while running Fiddler2, I see a response of 404 Not Found when attempting to access /_vti_bin/owssvr.dll?CS=65001 using the HTTP POST verb.

  • No errors are logged in the ULS logs.

  • If I create a new custom list and attempt to reproduce the issue by adding two date columns and creating the calendar view, everything works as expected.

  • The schema.xml file defining the list is fairly large, with close to 25 fields.

  • I am using custom templates for the new, edit, and display forms.

  • I have defined a new custom view showing a subset of the columns in schema.xml

Does anyone know of any "gotchas" or things to look for in my list definition that could be related to this issue at all?

Has anyone encountered this issue before, and know of a way to fix it?

Failing those, what more can I do to debug this?

To avoid overflowing this question with large code blocks, you can view my list definition here:

Elements.xml - http://pastebin.com/97ucAedZ

Schema.xml - http://pastebin.com/2brpMJgT

ListInstance Elements.xml - http://pastebin.com/gnCXVpmh

like image 476
Kyle Trauberman Avatar asked Feb 20 '26 08:02

Kyle Trauberman


1 Answers

I agree with moontear. I think your Content Type ID is invalid. If you are building off a Custom List template, I would expect your Content Type ID to be:

<ContentType ID="0x0100781A2C74BF4bfd81AE710DB1EACAE745"
                   Name="$Resources:Item"
                   Group="$Resources:List_Content_Types"
                   Description="$Resources:ItemCTDesc"
                   Version="1">

To inherit from Item, you should have 0x01 then 00 followed by a Guid. You have the right number of characters, if you use 00 instead of 70.

For more information, see Content Type IDs.

like image 196
Rich Bennema Avatar answered Feb 22 '26 23:02

Rich Bennema



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!