cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tcash
Helper I
Helper I

Composite Models using Power BI datasets, Calculated tables and Scheduled Refresh

I have a composite model that includes a single Power BI dataset. The model also includes calculated tables that refer to tables in the Power BI dataset.  Refresh works in Power BI desktop. In the Power BI service I successfully set all refresh credentials.  However, when I publish and attempt to refresh I receive an error message:

 

"COM error: Microsoft.PowerBI.AS.ConnectionDetailsProvider, Single sign-on (SSO) credential is not provided which is required to execute the current request.. A connection could not be made to the data source with the Name of '<pii>{"protocol":"analysis-services","address":{"server":"powerbi://api.powerbi.com/v1.0/myorg/BI%20Shared%20Datasets","database":"SharedDatasetNameHere"},"authentication":null,"query":null}</pii>'. The database operation was cancelled because of an earlier failure."

 

Note, that when I remove all calculated tables from the model I can successfully refresh in the Power BI service. Is the ability to refresh composite models with calculated tables a current limitation in the Direct Query for PBI datasets feature?

1 ACCEPTED SOLUTION
StefanoGrimaldi
Super User
Super User

theres a actual limitation on this aspect where calculated columns/tables using a compiste model between power BI dataset live in direct query mode and any other source will give you that exact error, it isnt avaible right now, again this a limitation only for power bi dataset in direct query mode. 

 

had the same scenario a few months ago and with the microsoft support team got to this limitation for this scenario, 

 

if this helped give some kudos and mark as solution for others to find, 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




View solution in original post

5 REPLIES 5
casperlow
New Member

Hi Tcash and StefanoGrimaldi!
What's a good workaround on this?

 

Regards,

StefanoGrimaldi
Super User
Super User

theres a actual limitation on this aspect where calculated columns/tables using a compiste model between power BI dataset live in direct query mode and any other source will give you that exact error, it isnt avaible right now, again this a limitation only for power bi dataset in direct query mode. 

 

had the same scenario a few months ago and with the microsoft support team got to this limitation for this scenario, 

 

if this helped give some kudos and mark as solution for others to find, 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




View solution in original post

also note that I forgot to mantion, the limition its for the power BI service, if you run it on power bi desktop it will let you refresh and work fine in msot scenario, the limitation its more on the service part with the authentication part, so thats why you will see you get no error on desktop but a error on service when trying to refresh on the service. 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Thanks Stefano...yes in fact that was our discovery a little too late in the game. We developed a perfectly working model on the desktop only to realize it cannot be refreshed upon publication to the service. I hope they can fix this limitation soon but I'm a bit skeptical as the direct query to a pbi dataset within a composite model has already been in preview for 11 months 😕

you can vote here to see if they consider this idea to modify this so it can work: 

here the idea link: https://community.powerbi.com/t5/Custom-Visuals-Ideas/Allow-Power-BI-Dataset-Direct-Query-composite-... 





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!