05 November 2012

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.

 

01 November 2012

Add-SPSolution: Failed to extract the cab file in the solution

Did you happen to get the following error message when you did the command Add-SPSolution at PowerShell (or stsadm -o addsolution ...)?

Add-SPSolution: Failed to extract the cab file in the solution

Add-SPSolution: Failed to extract the cab file in the solution

In my case a file called by graphic artist as q&a.jpg (questions and answers).

Apparently not to use the characters in solution as ~ ! @ # $% ^ & *

Who had written DDF files should know that. I've forgotten :)

Enjoy,
Roi Kolbinger