IF-Blueprint Blog

SharePoint 2013 – Error in SPJobDefinition.Update()

I discovered the issue during the migration of my SharePoint 2010 solution to SharePoint 2013. I have a custom generic SPJobDefinition that was working perfectly fine in 2010, but in 2013 I got the following Error… Error Page From the call stack you can tell that there is a parameter named FullName in a Stored Procedure named proc_putClass() and the parameter is to long. So I took a look in the Stored Procedure Microsoft.SharePoint.SPStoredProceduresConfig.proc_putClass() which can be found in the ConfigDB of SharePoint. Here is [...]

Read more...

How to enable a list as a catalog in SharePoint 2013 with Powershell

Configure a list as a catalog with PowerShell to automate cross site publishing configuration in SharePoint 2013. $siteUrl = "http://<<Server>>/sites/test" $webUrl = "/sites/test/subtest" $site = get-SPSite -Identity $siteUrl $web = Get-SPWeb -Site $site -Identity $webUrl $list = $web.Lists | where { $_.Title -eq 'Pages' } Adds important Indexed Properties to the List. $list.IndexedRootFolderPropertyKeys.Add("PublishingCatalogSettings") $list.IndexedRootFolderPropertyKeys.Add("IsPublishingCatalog") Enables Anonymous Access to the Catalog. (To disable set to 0.) $list.AnonymousPermMask = 8192 Adds properties to the lists RootFolder to configure the list as catalog. IsPublishingCatalog: sets the checkbox in the configure catalog page PublishingCatalogSettings: configures the [...]

Read more...