Shrink log databases on SQL Server

Ran into a problem where my SP2013 ¬†standalone development machine was running out of disk space. The reason turned out to be 61GBs of database log files. Here is small script for shrinking SQL Server databases that start with ‘SP_‘ or ‘WSS_‘. Very handy on a development machine. Make sure that the databases you want […]

Workflow task. Method not supported.

When creating a Workflow in Visual Studio, make sure your created tasks inherit from the content type “Workflow tasks”. If not you might encounter the following error: Exception has been thrown by the target of an invocation. System.NotSupportedException: Specified method is not supported. at Microsoft.SharePoint.Workflow.SPWorkflowTask.SetWorkflowData I always forget this.

Using export translations and import translations.

Introduction Language packs only translate the default SharePoint functionality. Your own lists, content types, fields, etc.. are not translated. Since SharePoint 2010 there is an option in SharePoint to translate elements in the user interface and export them. This export can then be imported again on another server. In my case this is mainly between […]

Customize Content Query Web Part HTML output (Part 1).

In this article I will explain how you can adjust the Content Query Web part so generates exactly the HTML you want. I’m also planning 2 follow-up postings where we will dive a deeper and convert the standard <table> HTML layouts to <UL> HTML layout.¬† And finally explain how to deploy all this to your […]