Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to solve error: This report requires a default or user-defined value for the report parameter '*'
    primarykey
    data
    text
    <p>I'm getting the error:</p> <p><code>This report requires a default or user-defined value for the report parameter '*'. To run or subscribe to this report, you must provide a parameter value.</code></p> <p>very occasionally from my reporting server even when the value '*' is being populated. Any ideas or leads that might allow me to track it down? Some points.</p> <ul> <li>I run the reports 4-way asynchronously (meaning 4 threads generating reports at a time).</li> <li>The reports have 2 provided parameters (always supplied) and one derived parameter.</li> <li>I run 1,000 reports per session with ~250 reports per thread.</li> <li><p>Sometimes the error will hit after a few seconds, sometimes after many hours.</p> <pre><code>using System; using System.Globalization; using System.IO; using Cns.ReportExecution2005; public class PdfGenerator { private readonly ReportExecutionService reportExecutionService; public PdfGenerator(string executionServiceAddress) { // Create a new proxy to the web service this.reportExecutionService = new ReportExecutionService { Credentials = System.Net.CredentialCache.DefaultNetworkCredentials, Url = executionServiceAddress }; } public Stream GenerateReport(string reportName, string format, ReportGeneratorParameter[] parameters) { if (reportName == null) { throw new ArgumentNullException("reportName"); } if (format == null) { throw new ArgumentNullException("format"); } this.reportExecutionService.LoadReport(reportName, null); if (parameters != null) { var executionParameters = new ParameterValue[parameters.Length]; for (int i = 0; i &lt; parameters.Length; ++i) { executionParameters[i] = new ParameterValue { Label = parameters[i].Name, Name = parameters[i].Name, Value = Convert.ToString(parameters[i].Value, CultureInfo.InvariantCulture) }; } this.reportExecutionService.SetExecutionParameters(executionParameters, "en-us"); } string extension; string encoding; string mimeType; Warning[] warnings; string[] streamIDs; byte[] results = this.reportExecutionService.Render(format, null, out extension, out encoding, out mimeType, out warnings, out streamIDs); return new MemoryStream(results); } } </code></pre></li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload