Omicron Llama

Coding all day, every day.


A Very Damned-Useful Extension Method

Trying never to use SPList.Items (due to Best Practice), yet needing to grab some items from a list quite often? Here’s an extension method which I use a fair bit.

You can then use regular LINQ queries to get the item or items you need against the object returned by this, for example:


Routing Engine: EvaluateCondition threw an exception.

Scenario: You’ve programmatically provisioned some Content Organizer Rules to send some documents somewhere based on a Managed Metadata Field. When you upload a document and set that field to something matching a condition, it throws an error, and you see this in the event logs:

The thing to watch here is the last bit […]

SharePoint Forms Authentication (FBA) with Apple iOS

Over on my Github project I have finally got round to doing some updates to the code. I’ve added a class that simplifies Forms Authentication, and allows you to issue the same REST API queries against SharePoint. Code samples are on the wiki on the Github site. Doing this wasn’t really that difficult, you basically […]

Creating Custom PerformancePoint Reports in C#

(Concepts here are discussed around SharePoint 2010 but should equally be applicable to SharePoint 2013. All concepts here apply only to full-trust farm solutions, and cannot be done at all with Sandboxed solutions or with the App model)Occasionally you might give given the requirement (as a developer) to provide the ability to insert a chart […]

Get All PerformancePoint Filter Value selections in a Site Collection For the Current User

Here’s some code to get all PerformancePoint filter selections for the current user in a web site. This is a fairly straightforward operation. First you need a collection of strings, each of which is the URL to a PerformancePoint Filter stored in SharePoint. In this code snippet I use SPSiteDataQuery (in the DiscoverFilterUrls() method). You […]

SPSite, FileNotFoundException and the Server Object Model in Console Applications and PowerShell Scripts

For a beginner SharePoint developer, there can be a fair amount of confusion around the seemingly trivial task of building a C# Console Application to connect to a SharePoint site and to learn the object model. You merely include a reference to the Microsoft.SharePoint.dll assembly, instantiate an object, passing in your site URL and you’re […]

Unable to load first class Dao provider type – PerformancePoint Services error code 10201

If you’re doing development against PerformancePoint Services API, whether in a custom ASP.NET site, a Console Application, make sure you have the Bpm configSection within your web.config (or App.config). You want to add the following configSection to your config file:

  And you also want to include this under the root element of your […]

Previous Posts