Category Archives: SharePoint 2010

How to set AvailableWebTemplates to custom WebTemplate created via features

In SharePoint 2010 you can use the new <WebTemplate> element in a feature to create a custom web template (sort of equivalent to site definition). Good overview of how this compares to other methods of creating site template/definition: http://sharepointchick.com/archive/0001/01/01/site-definitions-vs.-webtemplates.aspx. In a … Continue reading

Posted in SharePoint 2010, WebTemplate | Leave a comment

How to force Expiration/Retention policy to execute on SharePoint 2010

The Expiration/Retention policy (part of Information Management Policy) is executed by a couple of timer jobs. In 2007 these jobs are under the PolicyConfigService at the Farm level, and you can modify the schedule of these jobs to run very … Continue reading

Posted in Information Management Policy, SharePoint 2010, Timer Job | 4 Comments

AutoSPInstaller keeps installing SharePoint binary after restart

AutoSPInstaller (http://autospinstaller.codeplex.com/) is a neat tool for unattended SharePoint install and configuration. I ran into an issue where AutoSPInstaller just seems to get stuck in a loop. After SP is installed, it prompted me to restart the server and re-run … Continue reading

Posted in AutoSPInstaller, SharePoint 2010 | Leave a comment

Complex formatting for BCS TypeDescriptor with complex type

I was playing around with specifying ComplexFormatting and FormatString for my BCS model entities. Here are the lessons learnt: The ComplexFormatting property must be specified at the parent TypeDescriptor containing the complex type, not at the complex type TypeDescriptor itself. … Continue reading

Posted in BCS, SharePoint 2010 | Leave a comment

Tip for deploying workflow template with InfoPath task form

Maybe because I’m a newbie, but I ran into a lot of problem trying to deploy a workflow template with an InfoPath task form. The trick is in your feature receiver and your feature properties (in the XML definition). The best … Continue reading

Posted in SharePoint, SharePoint 2010, Workflow | Leave a comment

SharePoint Evil #4: Document Information Panel always defaults to first content type in the library

A SharePoint Evil is an issue/error that is so ambiguous and misleading that Google will shows 50 hits, with 10 different suggested solutions, and none of them work for your particular case. (So the described below may not work for you … Continue reading

Posted in Document Information Panel, SharePoint, SharePoint 2010, SharePoint Evils | 7 Comments

SharePoint Evil #3: Can’t view BCS External List: Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator.

A SharePoint Evil is an issue/error that is so ambiguous and misleading that Google will shows 50 hits, with 10 different suggested solutions, and none of them work for your particular case. (So the described below may not work for you … Continue reading

Posted in BCS, SharePoint 2010, SharePoint Evils | 1 Comment

SharePoint Evil #2: The URL ‘[url]’ is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web – The 2nd Scenario

A SharePoint Evil is an issue/error that is so ambiguous and misleading that Google will shows 50 hits, with 10 different suggested solutions, and none of them work for your particular case. (Eeerr.. so what’s described below may not work for … Continue reading

Posted in SharePoint, SharePoint 2010, SharePoint Evils | 10 Comments

How to “unexpire” an item so that it will be processed again by the Expiration Information Management Policy

In SharePoint, when an Information Management Policy is executed on an item and Expiration is enabled, and that item is deemed to be expired, then the item will not be evaluated for Expiration again at the next evaluation time. When an item … Continue reading

Posted in Information Management Policy, SharePoint, SharePoint 2010 | 6 Comments

“Object reference not set to an instance of an object” when calling SPFarm.Local

If you are getting “Object reference not set to an instance of an object” when calling SPFarm.Local in a stand-alone app (e.g. console app), and you are developing against SharePoint 2010, then check that your project is set to target … Continue reading

Posted in SharePoint 2010 | Leave a comment