Forum Discussion

satya__6's avatar
satya__6
Icon for Advocate II rankAdvocate II
7 months ago
Solved

How to Create Dynamic Server Parameters in Paginated Reports? Works in Desktop but Fails in Service

Hi Team,

I need help regarding dynamic parameters for switching SQL servers inside a Power BI Paginated Report (RDL).

I created an expression‑based connection string :

 
Show more lines

It works perfectly in Report Builder Desktop, but when I publish the RDL to Power BI Service, I get this error:

“The report definition is not valid or not supported in this version of Report Services.”

My questions:

  1. Is dynamic server switching via parameters supported in Power BI Service for paginated reports?
  2. If not supported, is there any alternative way similar to Power BI datasets where we can change environments dynamically (like Dev → QA → Prod)?
  3. What is the recommended approach for environment‑based connection switching in Fabric Paginated Reports?

Thanks in advance!

  • n Power BI Service, expression-based connection strings / dynamic data source switching is not supported for paginated reports.

     

    Option 1) Use deployment pipelines / CI/CD to swap the data source

    • Store the RDL in source control

    • On deployment, update the report’s data source to the target environment (Dev → QA → Prod)

    • This keeps the report definition consistent while enforcing static connections per environment

     

    Option 2) Use a shared semantic model 
    If your paginated report can use a Power BI dataset / semantic model as its data source, you can handle environment switching at the dataset level (deployment pipelines can rebind / swap connections more cleanly). This is often the most manageable approach in Fabric-centric setups.

4 Replies

  • n Power BI Service, expression-based connection strings / dynamic data source switching is not supported for paginated reports.

     

    Option 1) Use deployment pipelines / CI/CD to swap the data source

    • Store the RDL in source control

    • On deployment, update the report’s data source to the target environment (Dev → QA → Prod)

    • This keeps the report definition consistent while enforcing static connections per environment

     

    Option 2) Use a shared semantic model 
    If your paginated report can use a Power BI dataset / semantic model as its data source, you can handle environment switching at the dataset level (deployment pipelines can rebind / swap connections more cleanly). This is often the most manageable approach in Fabric-centric setups.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi satya__6 ,

    I would also take a moment to thank cengizhanarslan , for actively participating in the community forum and for the solutions you’ve been sharing in the community forum. Your contributions make a real difference.
     

    I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Hi satya__6 ,
      I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions.

  • Hi cengizhanarslan​ ,

    I am also facing similar issue, I am connecting paginated report via power bi semantic model. The report name will remain the same throughout different environments and clients but the workspace will change, somehow i want to make it dynamic.

    We are using API in backend and using embedded analytics approach to render report in our UI.  Also, we are further connecting the paginated report in power bi desktop paginated visual. That also we need to make dynamic because the workspace will be changing throughout the environments and clients. We will be keeping the file name across the environments and clients same. Also, schema will be the exact same.

    Questions -

    How can we make the connection dynamic for rdl - Power bi semantic model

    How can we make the paginated visual connection dynamic in pbix 

    Please share if you have any solution, will be a great help for me.

    Thank you in advance.