This is a migrated thread and some comments may be shown as answers.

Invalid Value of Report Parameter

1 Answer 206 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 21 Jul 2015, 05:34 PM

I'm using version 2012 Q2. I'm trying to export a Report object and am getting the following error: "Invalid Value of Report Parameter". I'm getting this error when my string parameter has multiple values, such as: "111,222,333". If the parameter has only one selection, such as "111" (not a comma delimited string) there is no exception raised. Here is the code for rendering/exporting report:

var result = reportProcessor.RenderReport("XLSX", rpt, deviceInfo);

So, in short, when a string parameter that's not a comma delimited list is passed, the report exports. When the string represents a multi-select combobox, and is comma delimited, the "Invalid Value of Report Parameter" exception is raised. Why is this occurring? 

 

 

  

 

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 23 Jul 2015, 01:15 PM
Hi Robert,

Multivalue report parameters are evaluated as array of objects. Please test setting value in code by passing the values in an array instead of a single string.

I hope this information is helpful.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Ben
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or