Microsoft KB Archive/946035

= FIX: Error message when you try to save a SQL Server 2005 Reporting Services report in Report Builder: &quot;An error occured while saving your report&quot; =

Article ID: 946035

Article Last Modified on 12/20/2007

-

APPLIES TO


 * Microsoft SQL Server 2005 Reporting Services

-



Bug: #50002101 (SQL Hotfix)



Microsoft distributes Microsoft SQL Server 2005 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 2005 fix release.



SYMPTOMS
Consider the following scenario in Microsoft SQL Server 2005 Reporting Services (SSRS). You use Report Builder to create a report from a report model. You edit the report several times. You delete a text box item or a picture item from the report, and then you close the report. Next, you reopen the report, and you add a text box item or a picture item to the report. Then, you try to save the report in Report Builder. In this scenario, you receive the following error message in the Microsoft Report Builder dialog box:

Unable to save report

An error occured while saving your report.

Note In this error message, the word &quot;occured&quot; is a misspelling for the word &quot;occurred.&quot;

If you click Details in the dialog box, you see the following error information:

System.Web.Services.Protocols.SoapException: More than one report item in the report has the name ‘ ’. Report item names must be unique within a report. --->

Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: More than one report item in the report has the name ‘textbox8’. Report item names must be unique within a report.

at Microsoft.ReportingServices.ReportProcessing.ReportPublishing.CreateIntermediateFormat(CatalogItemContext reportContext, Byte[] definition, CreateReportChunk createChunkCallback, CheckSharedDataSource checkDataSourceCallback, PublishingErrorContext errorContext, AppDomain compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions, String& description, String& language, ParameterInfoCollection& parameters, DataSourceInfoCollection& dataSources, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks)

at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CompileReport(CatalogItemContext reportContext, Byte[] reportDefinition, CreateReportChunk createChunkCallback, CheckSharedDataSource checkDataSourceCallback, PublishingErrorContext errorContext, AppDomain compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions, String& reportDescription, String& reportLanguage, ParameterInfoCollection& parameters, DataSourceInfoCollection& dataSources, UserLocationFlags& userReferenceLocation, ArrayList& dataSetsName, Boolean& hasExternalImages, Boolean& hasHyperlinks)

at Microsoft.ReportingServices.ReportProcessing.ReportProcessing.CreateIntermediateFormat(CatalogItemContext reportContext, Byte[] reportDefinition, CreateReportChunk createChunkCallback, CheckSharedDataSource checkDataSourceCallback, AppDomain compilationTempAppDomain, Boolean generateExpressionHostWithRefusedPermissions)

at Microsoft.ReportingServices.Library.CreateReportAction.ConvertToIntermediate(Byte[] definition, Boolean usePermanentSnapshot, ItemProperties properties, CatalogItemContext reportContext, DateTime currentDate, Boolean checkAccessForSharedDatasources, ReportSnapshot& intermediateSnapshot, ParameterInfoCollection& parameters, Warning[]& warnings, DataSourceInfoCollection& dataSources, PageProperties& pageProperties)

at Microsoft.ReportingServices.Library.SetReportDefinitionAction.Update(CatalogItem item)

at Microsoft.ReportingServices.Library.CreateReportAction.UpdateExistingItem(CatalogItem item)

at Microsoft.ReportingServices.Library.CreateItemAction`1.CreateOverwrite(CatalogItem item)

at Microsoft.ReportingServices.Library.CreateItemAction`1.PerformActionNow

at Microsoft.ReportingServices.Library.RSSoapAction`1.Execute

at Microsoft.ReportingServices.WebServer.ReportingService2005Impl.CreateReport(String Report, String Parent, Boolean Overwrite, Byte[] Definition, Property[] Properties, Warning[]& Warnings)

Additionally, the following error information is logged in the Reporting Services log file:

w3wp!processing!1! - :: e ERROR: Throwing Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Exception of type 'Microsoft.ReportingServices.ReportProcessing.ReportProcessingException' was thrown., ;

Info: Microsoft.ReportingServices.ReportProcessing.ReportProcessingException: Exception of type 'Microsoft.ReportingServices.ReportProcessing.ReportProcessingException' was thrown.



CAUSE
This problem occurs because Report Builder incorrectly generates a duplicate name for the newly added item.



RESOLUTION
The fix for this issue was first released in Cumulative Update 5. For more information about how to obtain this cumulative update package for SQL Server 2005 Service Pack 2, click the following article number to view the article in the Microsoft Knowledge Base:

943656 Cumulative update package 5 for SQL Server 2005 Service Pack 2

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 2005 fix release. Microsoft recommends 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:

937137 The SQL Server 2005 builds that were released after SQL Server 2005 Service Pack 2 was released

Microsoft SQL Server 2005 hotfixes are created for specific SQL Server service packs. You must apply a SQL Server 2005 Service Pack 2 hotfix to an installation of SQL Server 2005 Service Pack 2. By default, any hotfix that is provided in a SQL Server service pack is included in the next SQL Server service pack.



WORKAROUND
To work around this problem, follow these steps:
 * 1) Save the report as a report file (.rdl).
 * 2) Edit the report file to rename the items that contain duplicate names.
 * 3) In Report Builder, open the report file.
 * 4) Save the report that is located on the report server, and then replace the report that is located on the report server.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



MORE INFORMATION
For more information about what files are changed, and for information about any prerequisites to apply the cumulative update package that contains the hotfix that is described in this Microsoft Knowledge Base article, click the following article number to view the article in the Microsoft Knowledge Base:

943656 Cumulative update package 5 for SQL Server 2005 Service Pack 2

