Parameter is missing a value ssrs 2008

前端 未结 10 1127
一生所求
一生所求 2021-01-01 16:53

I have a parameter of integer datatype which is hidden. When i run the report, report gives me an error

Parameter X is missing a value

相关标签:
10条回答
  • 2021-01-01 17:30

    Just need to add 1 default value to get around this error (even though that default value will never be used).

    -Under "Report Parameter Properties" for that specific parameter, go to the Default Values page.

    -Toggle "Specify values"

    -Add a value (I added: "just_a_filler_to_get_around_hidden_value_error" so when I look back at it later I remember why I did such a thing)

    -click OK

    0 讨论(0)
  • 2021-01-01 17:31

    If you specify available values from query, then default values must be in list of available values. Default value in (Available) = true.

    0 讨论(0)
  • 2021-01-01 17:38

    There is one other potential here. I have had a situation where the report designer works but the server report object does not. The solution is to delete the server object and then re-save it from the designer.

    0 讨论(0)
  • 2021-01-01 17:41

    Assuming you had the same issue as I had, trying to run the report on a web page using a ReportViewer component, I managed to fix that issue by adding a null parameter before rendering the report:

    C# code:

    var parameters = new List<ReportParameter>();
    parameters.Add(new ReportParameter("ParameterName", (string)null));
    ReportViewer1.ServerReport.SetParameters(parameters);
    

    Hope that will help

    0 讨论(0)
提交回复
热议问题