Duplicate Entries in ViewLsts.aspx SharePoint


SharePoint allows you to create custom list definitions and deploy them as Features.  Here are a couple of blog entries that talk about the steps you will need to take to create a custom list definition

http://www.andrewconnell.com/blog/archive/2009/02/08/A-Quicker-Way-to-Create-Custom-SharePoint-List-Templates.aspx

http://stackoverflow.com/questions/441252/in-sharepoint-what-is-the-easiest-way-to-create-a-custom-list-schema-xml-file

However when following these instructions, I noticed that my custom lists were appearing twice in the ViewLsts.aspx page

 

image

After hours of debugging I found the cause of this issue.  In your list definition file, confirm that you have only one view with the “DEFAULTVIEW=TRUE” attribute set.  If you have multiple views with this attribute set, you will see an entry in the ViewLsts.aspx page for each view that you have specified as the Default.

Removing this attribute and re-activating the feature helped fix this issue

%d bloggers like this: