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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

BUG: Composite Models Preview Feature errors with Append Queries

There's a frustrating bug with Composit Models. Append Queries are somehow always flagged as direct queries, so you can't do transforms on any append query. You also can't load any append queries when you have the Composit Models preview feature activated.

 

Here's a short walk-through to produce the errors and issue:

  1. Activate the Composite Models preview feature in Power BI Desktop and Restart PBI Desktop to take effect.
  2. Get Data from Excel and Edit 2 spreadsheets that you want to append.
  3. In Power Query, turn off / disable the "Enable Load" on both imported spreadsheets.
  4. Create an Append Query as New and append both spreadsheets to a new query.
  5. Make any transforms you want or none at all.
  6. Apply and load the append query
  7. An error occurs on the load "This query contains transformations that can't be used for DirectQuery."
  8. Even if you remove all other steps except for the 1st step to append, you get the error.

Another realted issue occurs if you turn on the "Manage Aggregations" preview feature. With that option activated, you see the same error in the query as a yellow top warning banner in the append query. It gives you a button option to click to "Switch all tables to import mode" But this does not work at all. If you click it and then select another query and then reselect your append query it's back. Also loads still don't work.

 

To resolve the issue. you have to do the following:

  1. Deactivate both preview features for Manage Aggregations and for Composit Models.
  2. Restart Power BI to take effect.
  3. Open your PBI file and open Power Query
  4. Delete your append query
  5. Recreate your append query
  6. Everything works as expected.

To summarize, the only way to fix the append query is to deactivate preview feature and remake the append query with the feature off.

 

Analysis: Somewhere in the PBI file the modes for the queries are getting switched, and stored to directquery, but are not able to be changed.  This appears to be a bug, as the whole point of doing a composite model is to be able to mix and match directqury and import queries in a single model. However this bug prevens you from using append queries.

Status: Accepted
Comments
v-qiuyu-msft
Community Support

Hi @BryantAvey,

 

The same issue has been reported before, you can view @brianhartman's reply here: https://community.powerbi.com/t5/Issues/Composite-Models-Can-t-append-Tables-with-different-storage/...

 

Best Regards,
Qiuyun Yu 

v-qiuyu-msft
Community Support
Status changed to: Accepted