SharePoint List showed twice

You happen to write a List Definition and of course it Schema.xml file.

I also went a few times :)

But .. What happens that you copy a code that you have before?

It is said that the "copy - paste" is the programmer's best friend (after Google, of course)

I copied DefaultView=true twice, and I see it in "view all site content" the list showed twice (each time for a different view)

<Views>
   ...
   <View>
     ...
     DefaultView = "True"
     ...
   </View>
   <View>
     ...
     DefaultView = "True"
     ...
   </View>
</Views>




All you need to remember is to type only "DefaultView = true" once!

Roi.

 

Comments

  1. Dude, you are king. The only article related to my problem, was yours. Luckily it was enough...

    ReplyDelete

Post a Comment

Popular posts from this blog

A sharepoint list view of the current month

The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters

Export SharePoint 2010 List to Excel with PowerShell