Forum Discussion
why parameter definitions is not showing for shared dataset in power BI report server
Hi,
When I'm calling the API for getting parameter definitions I'm getting an empty array,
http://ServerName//reports/api/v2.0/Datasets(dataset_id)/parameterDefinitions
How to resolve it
Thanks in advance.
5 Replies
- d_gosbell
Super User
I just tested this scenario on my local server and this api worked fine and returned the parameter defined on my dataset. This would suggest that maybe something went wrong with the deployment and the version on the server does not match the version in the designer.
When you go to http://[servername]/reports/api/v2.0/Datasets does it say that your dataset has parameters?
- saranrajk
Helper II
Yeah, I'm getting the list of the dataset, I'm getting a response as hasParameter : False,
and I'm using SSDT 2017, SQL Server 2017 and Microsoft Power BI Report Server Version 15.0.1102.646.
- d_gosbell
Super User
saranrajk wrote:
Yeah, I'm getting the list of the dataset, I'm getting a response as hasParameter : False,
So that sounds like the version of the dataset on the server and in SSDT are not the same. Maybe try deleting the one off the server and re-deploying it from SSDT or deploying it into a new location on the server.