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

Error while passing parameter to subreport

2 Answers 53 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ashish
Top achievements
Rank 1
Ashish asked on 16 Feb 2017, 03:43 AM

Hi,

I am trying to execute a sub report from my master report. My master report has a datasource which return multiple rows. For each row I want to execute my sub report. So I have a sub report in detail section of my master report. However, when I select sub report source and pass ReceiptGUID parameter as = Fields.ReceiptGUID I am getting following error while trying to preview it:

"An error occurred while processing the report. Processing cancelled. Check the InnerException for more details. Invalid value of report parameter "ReceipGUID".

 

 

Can someone help me with this? I tried checking in forum and existing solutions are not fixing it. 

When I pass a constant string as report parameter, it works fine. I have checked the result set from the master report datasource and it returns ReceiptGUID as expected for each row.

 

2 Answers, 1 is accepted

Sort by
0
Accepted
Ashish
Top achievements
Rank 1
answered on 16 Feb 2017, 04:22 AM
This is fixed. I had to convert GUID to string. I tried this earlier but it did not work (not sure why). Tried again and worked. 
0
Stef
Telerik team
answered on 16 Feb 2017, 12:54 PM
Hi Ashish,

We are glad to hear the issue is resolved.
For anyone interested, please check How to use a Guid as value for report parameter or data source parameter?
Another approach is to convert Guid values to string in the data-retrieval method or add a calculated field that represents the Guid field as a String field. Then you can directly map fields' values to String report parameters' values.

Regards,
Stef
Telerik by Progress
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
Ashish
Top achievements
Rank 1
Answers by
Ashish
Top achievements
Rank 1
Stef
Telerik team
Share this question
or