Forum Discussion

saranrajk's avatar
saranrajk
Icon for Helper II rankHelper II
6 years ago

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

 

{
  "@odata.context": "http://servername/reports/api/v2.0/$metadata#ParameterDefinitions",
  "value": []
}
 
But I've set the parameters in the shared dataset

 

How to resolve it

Thanks in advance.

 

5 Replies

  • 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's avatar
      saranrajk
      Icon for Helper II rankHelper 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's avatar
        d_gosbell
        Icon for Super User rankSuper 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.