title: Invalid value of report parameter XXX in Telerik
body: <p>I face the following problem when try to render my report :</p>
  
  <pre><code>Invalid value of report parameter XXX
  </code></pre>
  
  <p>I add the parameters programatically like this :</p>
  
  <pre><code>protected void btn_generate_Click(object sender, EventArgs e)
          {
  
              AddParamToRep();
              rep_attend.Visible = true;
          }
  </code></pre>
  
  <hr>
  
  <pre><code>  protected void AddParamToRep()
          {
              try
              {
                  int campCode = 0;
                  if (ddl_camps != null &amp;&amp; ddl_camps.Items.Count &gt; 0)
                  {
                      if (!string.IsNullOrEmpty(ddl_camps.SelectedValue))
                      {
                          campCode = int.Parse(ddl_camps.SelectedValue);
                      }
                  }
  
                  rep_attend.ReportSource.Parameters.Add(new Telerik.Reporting.Parameter("camp_code", campCode));
                  rep_attend.ReportSource.Parameters.Add(new Telerik.Reporting.Parameter("dep_code", int.Parse(rad_ddl_dep.SelectedValue)));
                  rep_attend.ReportSource.Parameters.Add(new Telerik.Reporting.Parameter("dep_name", rad_ddl_dep.SelectedItem.Text));
                  rep_attend.ReportSource.Parameters.Add(new Telerik.Reporting.Parameter("rep_type", int.Parse(rbl_type.SelectedValue)));
              }
              catch (Exception ee)
              {
              }
  
          }
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;telerik:ReportViewer ID="rep_attend" runat="server" Width="100%" Height="700px"
          Visible="false" ParametersAreaVisible="False" ShowPrintButton="False"&gt; &lt;typereportsource 
          typename="Reports.Det_HR_rep,Reports, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null"&gt;&lt;/typereportsource&gt;
  &lt;/telerik:ReportViewer&gt;
  </code></pre>
  
  <hr>
  
  <p><strong>Stack Details :</strong></p>
  
  <blockquote>
    <p>[Exception: Invalid value of report parameter 'camp_code'.]
    [CancelProcessingException: An error has occurred while processing the
    report. Processing canceled. Check the InnerException for more
    information.] Telerik.Reporting.Processing.Report.ValidateParameters()
    +218 Telerik.Reporting.Processing.Report.ProcessItem() +51 Telerik.Reporting.Processing.ReportItemBase.ProcessElement() +31
    Telerik.Reporting.Processing.Report.ProcessElement() +21
    Telerik.Reporting.Processing.ProcessingElement.Process(DataMember
    dataContext) +112
    Telerik.Reporting.Processing.Report.Process(DataItemState state,
    IEnumerable`1 parameters, Boolean processItemActions, Boolean
    documentMapEnabled) +97
    Telerik.Reporting.Processing.ReportProcessor.ProcessReport(ReportSource
    reportSource, IRenderingContext processingContext) +514
    Telerik.Reporting.Processing.ReportProcessor.ProcessReport(ReportSource
    reportSource, Hashtable deviceInfo, IRenderingContext
    processingContext) +259
    Telerik.ReportViewer.WebForms.ReportRenderOperation.ProcessReport(ReportSource
    reportSource, Hashtable deviceInfo, IRenderingContext
    renderingContext) +308
    Telerik.ReportViewer.WebForms.ReportRenderOperation.PerformOperationOverride()
    +159 Telerik.ReportViewer.WebForms.ReportPageOperation.PerformOperationOverride()
    +83 Telerik.ReportViewer.WebForms.HandlerOperation.PerformOperation(HttpContext
    context, ICacheManager cacheManager) +45
    Telerik.ReportViewer.WebForms.BasicHandler.ProcessRequest(HttpContext
    context) +160
    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
    +399 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +76</p>
  </blockquote>