Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
duncfair
Helper IV
Helper IV

Parameter automatically created in Report Builder from stored procedure returns error when run

The report parameter 'RecNum' has a DefaultValue or a ValidValue that depends on the report parameter "RecNum". Forward dependencies are not valid.
----------------------------
The definition of the report '' is invalid.
----------------------------
An error occurred during local report processing.

3 REPLIES 3
ssesham
Helper I
Helper I

@duncfair I am trying to build report using stored proc with parameter. But my report builder throwing error "Procedure or function 'Test' expects parameter '@Dep_Code', which was not supplied."  Report should supposed to create parameter automatically if the stored proc is having one ,but it's not happening in my case.

 

Can i ask you how did you do that?

 

Test -  SP Name

@Dep_Code - Parameter Name.

duncfair
Helper IV
Helper IV

Thanks, but none of that applies.

Anonymous
Not applicable

Hi @duncfair ,

I think you can adjust the order using the up/down arrows in the report designer or by editing the "ReportParameters" section in the RDL file for the report.

 

You can also define default values in stored procedures instead of setting default values at the report level.

 

If you are using the same dataset for multiple parameters, consider creating separate datasets for each parameter to avoid conflicts. You can read this documentation: How to: Add Cascading Parameters to a Report (Reporting Services) | Microsoft Learn

 

I think you can also try recreating the report, which can sometimes solve the problem.

 

 

 

Best Regards

Yilong Zhou

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.