You are currently offline, waiting for your internet to reconnect

FIX: "System.OverflowException: Value was either too large or too small for an Int32" error message occurs when you try to generate a report in Microsoft SQL Server 2008 R2 Reporting Services

Microsoft distributes Microsoft SQL Server 2008 R2 fixes as one downloadable file. Because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 R2 fix release.
SYMPTOMS
Consider the following scenario:
  • You have a Report Definition Language (RDL) file that contains a Tablix control in Microsoft SQL Server 2008 R2 Reporting Services.
  • You add a row group or a column group to the Tablix control, and then set a group expression to the group data by using a column that has a numeric data type.
  • This column contains a value that is not in the range of the Int32 data type. For example, a value of the column is 9000001777400270.
In this scenario, you receive the following error message when you try to generate the report:
An error occurred during local report processing.
An error has occurred during report processing.
Value was either too large or too small for an Int32.

RESOLUTION

Cumulative update information

SQL Server 2008 R2

The fix for this issue was first released in Cumulative Update 4. For more information about how to obtain this cumulative update package for SQL Server 2008 R2, click the following article number to view the article in the Microsoft Knowledge Base:
2345451 Cumulative Update package 4 for SQL Server 2008 R2
Note Because the builds are cumulative, each new fix release contains all the hotfixes and all the security fixes that were included with the previous SQL Server 2008 R2 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix. For more information, click the following article number to view the article in the Microsoft Knowledge Base:
981356 The SQL Server 2008 R2 builds that were released after SQL Server 2008 R2 was released

WORKAROUND
To work around this issue, convert the numeric data type to the Double data type or to the Int64 data type. To do this, follow these steps:
  1. Double-click the group in the Row Groups or Column Groups pane to open the Group properties.
  2. On the General tab, change the group expression to the following System.Double data type expression:
    CDbl(Fields!<Field Name>.Value)
    Or, change the group expression to the following System.Int64 data type:
    CLng(Fields!<Field Name>.Value)
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.
Properties

Article ID: 2359606 - Last Review: 10/18/2010 19:38:00 - Revision: 1.0

Microsoft SQL Server 2008 R2 Reporting Services

  • kbqfe kbfix kbexpertiseadvanced kbsurveynew KB2359606
Feedback
/html>ta');m.name='ms.dqp0';m.content='true';document.getElementsByTagName('head')[0].appendChild(m);" onload="var m=document.createElement('meta');m.name='ms.dqp0';m.content='false';document.getElementsByTagName('head')[0].appendChild(m);" src="http://c1.microsoft.com/c.gif?"> did=1&t=">