Problem Statement

Receiving an error in reporting service after upgrading the MS SQL server from 2008 to 2012

Error Message

Throwing Microsoft.ReportingServices.Diagnostics.Utilities. InternalCatalogException: Internal error,
Microsoft.ReportingServices.Diagnostics.Utilities. InternalCatalogException: An internal error occurred on the report server.
See the error log for more details. ---> System.UriFormatException: Invalid URI: The Uri string is too long

Solution

Sometimes, after upgrading the MS SQL server from 2008 to 2012/2014, you may receive such issues in reporting service. It is because SQL Server 2008 R2 while using the StringBuilder type does not perform any checks on the size limit but SQL Server 2012 throws an exception when the site is greater than 65520 characters. This can be fixed by a hotfix from here https://support.microsoft.com/en-us/kb/2917531