Forum Discussion

Foxxon28's avatar
Foxxon28
Helper I
7 months ago
Solved

Query Parameter - Different columns between sources results in a failed refresh

Hey! Within our company we want to start using Dev/Test/Production in our Power BI, within their respective workspace. Therefore we now have 3 workspaces with a Deployement Pipeline running betwee...
  • Poojara_D12's avatar
    7 months ago

    Hi Foxxon28 

    What you’re seeing is expected behavior: in the Power BI Service the dataset refresh is schema-validated, so if a column referenced anywhere in the model (Power Query, relationships, measures, or visuals) does not exist in the current source, the entire refresh fails, unlike Desktop which is more forgiving at design time. Query parameters only swap the connection — they do not abstract schema differences — so Dev/Test/Prod must be structurally identical if you want pipelines to work reliably. The only safe workaround is to standardize the schema by exposing views in each environment that always return the same columns (add NULL or default values for missing columns in Prod), or use Power Query to add missing columns with nulls before loading. If the schemas aren’t aligned, deployment pipelines + parameters will keep breaking in the Service.