Forum Discussion
Paginated reports: getting error that parameter not declared though I properly declared it
- 9 months ago
Solved. In the dataset properties ---> parameters, I typed the parameter name as Anonymous_date and the value as [@to_date]. (This was what Chat GPT told me, unfortunately. :)). Today I luckily saw a web with a screenshot of this property and basedon that, I corrected the name to simply to_date (without the @ sign), and the value kept as before as [@to_date]. This worked.
That is where I posted the image from. When I click dataset properties --> parameters tab, I see Anonymous_date and in the Value (where I typed =Parameters!to_date.Value) it shows [@to_date]. when I press fx button it shows the entire expression as shown in the picture.
If I ignore the error message and still run the report, it does not run but just gives the same error message that the parameter was not declared.
Solved. In the dataset properties ---> parameters, I typed the parameter name as Anonymous_date and the value as [@to_date]. (This was what Chat GPT told me, unfortunately. :)). Today I luckily saw a web with a screenshot of this property and basedon that, I corrected the name to simply to_date (without the @ sign), and the value kept as before as [@to_date]. This worked.