Kyle Trauberman
Kyle Trauberman

Reputation: 25684

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:

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

Upvotes: 3

Views: 8857

Answers (2)

Rich Bennema
Rich Bennema

Reputation: 10335

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.

Upvotes: 1

Tomas Voracek
Tomas Voracek

Reputation: 5914

In cases like this, i usually take these steps:

  1. Create List/View manually in MOSS.
    Export list as template and try to
    find out what is wrong in my
    template.
  2. Start with clean template, add one field etc at a time, test, repeat until error emerges.

Your xml seems ok, so i think it will be another MOSS 'gotcha' or 'aha' moment.

Upvotes: 0

Related Questions