FIX: Error "[BC30494] line is too long" occurs when you upload an SSRS report to Reporting Services Report Manager

Symptoms
Assume that you have a large Microsoft SQL Server 2012 Reporting Services (SSRS 2012) or SSRS 2014 report that contains many expressions. When you upload the report to Reporting Services Report Manager, you may receive the following error message:
An unexpected error occurred while compiling expressions. Native compiler return value: '[BC30494] Line is too long.' (rsUnexpectedCompilerError).

Resolution

Cumulative Update information

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

Recommendation: Install the latest cumulative update 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. We recommend that you download and install the latest cumulative updates for SQL Server:
Workaround
To work around this issue, move sections of the report into a separate subreport so that each report uses less than 1000 text boxes.
More information

Cause

Reports that contain many expressions can result in dynamically generated code lines with lengths that surpass the line length limitation enforced by the Visual Basic compiler.
Status
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Properties

Article ID: 3038267 - Last Review: 06/22/2015 14:00:00 - Revision: 4.0

Microsoft SQL Server 2012 Service Pack 2, SQL Server 2012 Reporting Services, Microsoft SQL Server 2014 Service Pack 1, SQL Server 2014 Reporting Services

  • kbqfe kbfix kbexpertiseadvanced kbsurveynew KB3038267
Feedback