FIX: System.NullReferenceException is thrown when an SSRS 2008 R2 or SSRS 2012 report or subscription is opened in SharePoint integrated mode

This hotfix also applies to Microsoft SQL Server 2012 Reporting Services.
Symptoms
Consider the following scenario:
  • You are running an instance of Microsoft SQL Server 2008 R2 Reporting Service (SSRS 2008 R2) or SQL Server 2012 Reporting Service (SSRS 2012) in Microsoft SharePoint integrated mode.
  • You have a report or subscription that was authored by a user who no longer has permissions on the SharePoint site collection.
  • A user who has the appropriate permissions on the SharePoint site collection tries to open the report or subscription.
In this scenario, the user cannot open the report or subscription. Additionally, the user receives the following error message:

Report Server has encountered a SharePoint error. (rsSharePointError)
Object reference not set to an instance of an object.

Additionally, the following exception is logged in the report server log file:

Microsoft.ReportingServices.Diagnostics.Utilities.SharePointException: Report Server has encountered a SharePoint error. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.ReportingServices.SharePoint.Objects.RSSPImpUser.get_LoginName()
at Microsoft.ReportingServices.SharePoint.Utilities.CatalogItemUtilities.GetListItemUserLoginName(RSSPListItem item, String fieldName)
at Microsoft.ReportingServices.SharePoint.Utilities.CatalogItemUtilities.CreateCatalogItem(RSSPFolder folder)
at Microsoft.ReportingServices.SharePoint.Server.SharePointDBInterface.GetParentsForFolderOrFileRecursive(RSSPWeb web, RSSPFolder folder, RSSPDocumentLibrary docLib, Security secMgr, CatalogItemList parents)
at Microsoft.ReportingServices.SharePoint.Server.SharePointDBInterface.GetParentsForFolderOrFileRecursive(RSSPWeb web, RSSPFolder folder, RSSPDocumentLibrary docLib, Security secMgr, CatalogItemList parents)
at Microsoft.ReportingServices.SharePoint.Server.SharePointDBInterface.FindParents(ExternalItemPath objectName, CatalogItemList& parents, Security secMgr, IPathTranslator pathTranslator)

Resolution
The issue was first fixed in the following cumulative update of SQL Server.

Cumulative Update 8 for SQL Server 2012 SP1

Cumulative Update 11 for SQL Server 2012

Cumulative update 9 for SQL Server 2008 R2 SP2

About cumulative updates for SQL Server

Each new cumulative update for SQL Server contains all the hotfixes and all the security fixes that were included with the previous cumulative update. Check out the latest cumulative updates for SQL Server:
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Properties

Article ID: 2878807 - Last Review: 01/20/2014 17:07:00 - Revision: 3.0

Microsoft SQL Server 2008 R2 Service Pack 2, Microsoft SQL Server 2008 R2 Reporting Services, Microsoft SQL Server 2012 Developer, Microsoft SQL Server 2012 Enterprise, Microsoft SQL Server 2012 Standard, Microsoft SQL Server 2012 Web, SQL Server 2012 Enterprise Core

  • kbqfe kbfix kbsurveynew kbexpertiseadvanced KB2878807
Feedback