none
integer parametervalue causing error RRS feed

  • Question

  • hello

    i am using the reportexecution webservice to render report as PDF programmatically.
    the problem seems to be with the first parameter which should be an integer, but the parametersIdea.Value only accepts strings,so i use :
                parameters[0].Value = geosplit.ToString() ;

    here is the error mesage

    System.Web.Services.Protocols.SoapException was unhandled by user code
      Message="System.Web.Services.Protocols.SoapException: An attempt was made to set a report parameter 'GeoSplit' that is not defined in this report. ---> Microsoft.ReportingServices.Diagnostics.Utilities.RSException: An attempt was made to set a report parameter 'GeoSplit' that is not defined in this report. ---> Microsoft.ReportingServices.Diagnostics.Utilities.UnknownReportParameterException: An attempt was made to set a report parameter 'GeoSplit' that is not defined in this report.\n   at Microsoft.ReportingServices.ReportProcessing.ParameterInfoCollection.Combine(ParameterInfoCollection oldParameters, ParameterInfoCollection newParameters, Boolean checkReadOnly, Boolean ignoreNewQueryParams, Boolean isParameterDefinitionUpdate, CultureInfo culture)\n   at Microsoft.ReportingServices.Library.RSService.InternalGetReportParametersForRendering(CatalogItemContext reportContext, Guid reportID, Guid linkID, DateTime snapshotExecutionDate, Int32 executionOption, ReportSnapshot compiledDefinition, ReportSnapshot snapshotData, String savedParametersXml, NameValueCollection values, RuntimeDataSourceInfoCollection allDataSources)\n   at Microsoft.ReportingServices.Library.ProcessReportParametersCancelableStep.Execute()\n   at Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()\n   --- End of inner exception stack trace ---\n   at Microsoft.ReportingServices.Diagnostics.CancelablePhaseBase.ExecuteWrapper()\n   at Microsoft.ReportingServices.Library.RSService.GetReportParametersForRendering(CatalogItemContext reportContext, Guid reportID, Guid linkID, DateTime snapshotExecutionDate, Int32 executionOption, ReportSnapshot compiledDefinition, ReportSnapshot snapshotData, String savedParametersXml, NameValueCollection values, RuntimeDataSourceInfoCollection allDataSources, JobType jobType)\n   at Microsoft.ReportingServices.Library.GetDataForExecutionAction._GetDataForExecution(CatalogItemContext reportContext, ClientRequest session, String historyID, DataSourcePromptCollection& prompts, ExecutionSettingEnum& execSetting, DateTime& snapshotExecutionDate, ReportSnapshot& snapshotData, Int32& pageCount, Boolean& hasDocMap, PageSettings& reportPageSettings)\n   at Microsoft.ReportingServices.Library.GetDataForExecutionAction.ExecuteStep(CatalogItemContext reportContext, ClientRequest session, DataSourcePromptCollection& prompts, ExecutionSettingEnum& execSetting, DateTime& executionDateTime, ReportSnapshot& snapshotData, Int32& pageCount, Boolean& hasDocMap, PageSettings& reportPageSettings)\n   at Microsoft.ReportingServices.Library.SetExecutionParametersAction.Save()\n   at Microsoft.ReportingServices.WebServer.ReportExecution2005Impl.SetExecutionParameters(ParameterValue[] Parameters, String ParameterLanguage, ExecutionInfo& executionInfo)\n   --- End of inner exception stack trace ---\n   at Microsoft.ReportingServices.WebServer.ReportExecution2005Impl.SetExecutionParameters(ParameterValue[] Parameters, String ParameterLanguage, ExecutionInfo& executionInfo)\n   at Microsoft.ReportingServices.WebServer.ReportExecutionService.SetExecutionParameters(ParameterValue[] Parameters, String ParameterLanguage, ExecutionInfo& executionInfo)"
      Source="System.Web.Services"
      Actor="http://localhost/reportserver/ReportExecution2005.asmx"
      Lang=""
      Node="http://localhost/reportserver/ReportExecution2005.asmx"
      Role=""
      StackTrace:


    Monday, March 26, 2007 2:36 PM

Answers