title: " Missing or invalid parameter value. Please input valid data for all parameters". Telerik Reporting Rest Web API (.tdmx)
body: <p>I have created Telerik rest web API service. </p>
  
  <p>//Report controller c# code </p>
  
  <pre><code>public ReportsController()
          {
              var appPath = HttpContext.Current.Server.MapPath("~/");
              var reportsPath = Path.Combine(appPath, "Reports");
  
              var resolver = new ReportFileResolver(reportsPath)
                  .AddFallbackResolver(new ReportTypeResolver());
  
              //Setup the ReportServiceConfiguration
              configurationInstance = new ReportServiceConfiguration
              {
                  HostAppId = "Html5App",
                  Storage = new FileStorage(),
                  ReportResolver = resolver,
  
                  // ReportSharingTimeout = 0,
                  // ClientSessionTimeout = 15,
              };
  
              this.ReportServiceConfiguration = configurationInstance;
          }
  </code></pre>
  
  <p>﻿</p>
  
  <p>//Report viewer Code</p>
  
  <pre><code>    $("#reportViewer1")
          .telerik_ReportViewer({
              serviceUrl: "http://localhost:12345/api/Reports",
              reportSource: {
                  report: "Dashboard.trdx",
                  parameters: { ReportYear : 2009 }
              },
              viewMode: telerikReportViewer.ViewModes.INTERACTIVE,
              scaleMode: telerikReportViewer.ScaleModes.SPECIFIC,
              scale: 1.0,
              enableAccessibility: false,
              sendEmail: { enabled: true }
          });
  </code></pre>
  
  <p>﻿</p>
  
  <p>//trdx Code of parameter</p>
  
  <pre><code> &lt;DataSources&gt;
      &lt;SqlDataSource ConnectionString="Telerik.Reporting.Examples.CSharp.Properties.Settings.TelerikConnectionString" SelectCommand="SELECT DISTINCT YEAR(OrderDate) AS Year&amp;#xD;&amp;#xA;FROM         Sales.SalesOrderHeader&amp;#xD;&amp;#xA;ORDER BY Year" Name="yearDataSource" /&gt;
      &lt;SqlDataSource ConnectionString="Telerik.Reporting.Examples.CSharp.Properties.Settings.TelerikConnectionString" SelectCommand="SELECT&amp;#xD;&amp;#xA;&amp;#x9;P.Name AS ProductName&amp;#xD;&amp;#xA;&amp;#x9;, SOD.LineTotal / 1000 AS LineTotal&amp;#xD;&amp;#xA;&amp;#x9;, SOH.OrderDate&amp;#xD;&amp;#xA;&amp;#x9;, SS.Name AS StoreName&amp;#xD;&amp;#xA;&amp;#x9;, C.FirstName + ' ' + COALESCE (C.MiddleName, '') + ' ' + C.LastName AS SalesPersonFullName&amp;#xD;&amp;#xA;FROM&amp;#xD;&amp;#xA;&amp;#x9;Production. Product AS P&amp;#xD;&amp;#xA;&amp;#x9;INNER JOIN Sales.SalesOrderDetail AS SOD ON P.ProductID = SOD.ProductID&amp;#xD;&amp;#xA;&amp;#x9;INNER JOIN Sales.SalesOrderHeader AS SOH ON SOD.SalesOrderID = SOH.SalesOrderID&amp;#xD;&amp;#xA;&amp;#x9;INNER JOIN Sales.Store AS SS             ON SS.CustomerID = SOH.CustomerID&amp;#xD;&amp;#xA;&amp;#x9;INNER JOIN Sales.SalesPerson AS SP       ON SP.SalesPersonID = SOH.SalesPersonID&amp;#xD;&amp;#xA;&amp;#x9;INNER JOIN HumanResources.Employee AS E  ON E.EmployeeID = SP.SalesPersonID&amp;#xD;&amp;#xA;&amp;#x9;INNER JOIN Person.Contact AS C           ON C.ContactID = E.ContactID&amp;#xD;&amp;#xA;WHERE     (YEAR(SOH.OrderDate) = @Year)" Name="mainDataSource"&gt;
        &lt;Parameters&gt;
          &lt;SqlDataSourceParameter DbType="Int32" Name="@Year"&gt;
            &lt;Value&gt;
              &lt;String&gt;=Parameters.ReportYear.Value&lt;/String&gt;
            &lt;/Value&gt;
          &lt;/SqlDataSourceParameter&gt;
        &lt;/Parameters&gt;
        &lt;DefaultValues&gt;
          &lt;SqlDataSourceParameter DbType="Int32" Name="@Year"&gt;
            &lt;Value&gt;
              &lt;String&gt;2001&lt;/String&gt;
            &lt;/Value&gt;
          &lt;/SqlDataSourceParameter&gt;
        &lt;/DefaultValues&gt;
      &lt;/SqlDataSource&gt;
    &lt;/DataSources&gt;
  </code></pre>
  
  <p>﻿</p>
  
  <p>Passing a parameter "ReportYear" and using .trdx file. </p>
  
  <p>﻿</p>
  
  <p>I'm getting an error "Missing or invalid parameter value. Please input valid data for all parameters."</p>
  
  <p>If I'm not passing the parameter then the report will function properly.</p>
  
  <p>What else is needed for getting the parameter value in .trdx file?</p>
  
  <p>I'm really stuck into it. It would be great if someone can help in to it.</p>