Sharepoint Insight by Namwar Rizvi

Sharepoint Tips, Tricks and inside knowledge from real world experience by Namwar Rizvi

Archive for October, 2008

How to display real Error in Sharepoint web site

Posted by namwar on October 25, 2008


Just perform the following steps to display the real error happened in Sharepoint site instead of a generice Unknow error message.

  1. Backup your web.config of web application
  2. In SafeMode tag under SharePoint change 

              CallStack=”true

              MaxControls=”200

After changing, your SafeMode node will be similar to following

<SafeMode MaxControls=”200″ CallStack=”true” DirectFileDependencies=”10″ TotalFileDependencies=”50″ AllowPageLevelTrace=”false”>

3.  Set  customErrors mode=”Off

 

 

Posted in Configuration, Debugging | Tagged: , | Leave a Comment »

How to fix Script Error in Web File Properties: length’ is null or not an object?

Posted by namwar on October 23, 2008


If you are getting a weired script error “length is null or not an object” while saving the documents from Microsoft Office word, excel etc. then you are not alone:):)

This behaviour occurs without any obvious reason and has been identified as a bug by Microsoft. After wasting a lot of time, I was able to found the hotfix released from Microsoft at

http://support.microsoft.com/default.aspx?scid=kb;EN-US;950292

Please install this hotfix at your own risk and make sure you have taken the backup of your servers before applying this hotfix.

Please post comments and experiences for this bug.

Posted in Bugs | Tagged: , , , , | 1 Comment »

How to crawl Lookup field or column

Posted by namwar on October 5, 2008


Whenever you create a column in your list and want to enable search based on it then you add that column as a Managed Propety in your Shared Service Provider. It works for all type of columns except lookup columns, which actually refers to another list in the site, without needing any further steps. The difference in lookup columns is that they actually save just a reference not the actual value and if you have created a column with the name say Category ( having values Hardware, Software, etc) and add it as a managed property then you will see that you will not get any result if you will try to search by say Hardware,a value from the Category list, because internally only reference was saved and SSP indexed the reference not the actual value.

But don’t worry, there is a simple solution which unfortunately Microsoft has not documented properly. The solution is, just go back and edit your managed property mapping and instead of mapping Category; map ows_Category. This is an internal property generated by the Sharepoint when you created Category and this property saves the actual value.

Now, after doing the crawl, if you will search as before, you will get the expected result.

Posted in Architecture, SSP | Tagged: , , | Leave a Comment »