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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
DavideBono97
Helper I
Helper I

Embed report error

I have a report that if I open normally from app.powerbi.com everything works

If I embed the report I get this error

 

Errore sottostante: PowerBI service client received error HTTP response. HttpStatus: 503. PowerBIErrorCode: OpenConnectionError
OpenConnectionError: Failed to open the MSOLAP connection.
ID di correlazione: b25800ca-de51-48a1-ab6d-0d5d260cd415
ID attività: 86ea0a8c-08b1-41f4-aaa0-c157f8829c5b
ID richiesta: ebaec16b-3149-410d-997b-1c4af0e696d4
Ora: Tue Dec 13 2022 08:52:49 GMT+0100 (Ora standard dell’Europa centrale)
Versione del servizio: 13.0.19585.64
Versione client: 2211.4.11379-train
URI cluster: https://WABI-NORTH-EUROPE-redirect.analysis.windows.net
ID attività: 86ea0a8c-08b1-41f4-aaa0-c157f8829c5b
ID richiesta: ebaec16b-3149-410d-997b-1c4af0e696d4
Ora: Tue Dec 13 2022 08:52:49 GMT+0100 (Ora standard dell’Europa centrale)
Versione del servizio: 13.0.19585.64
Versione client: 2211.4.11379-train
URI cluster: https://WABI-NORTH-EUROPE-redirect.analysis.windows.net

 

What can I check ?

Thanks in advance

2 REPLIES 2
ibarrau
Super User
Super User

Hi. Can you share more details? for example, what is your data source? how are you embedding? (there are 3  or 4 different methods)

The only thing I can check with the error is that it's using MSOLAP driver that it's usually used for Microsoft Tabular models. I can assume an issue with analysis services or different things.

Regards,


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Happy to help!

LaDataWeb Blog

the data source is a sql server database
On powerbi.com the dataset is set correctly as show 

 

2022-12-13_14-45-19.png

 

 

the report I'm trying to embed is in one workspace while the dataset is in another workspace

to create the embedtoken I use this piece of code :

 

var tokenRequest = new GenerateTokenRequestV2(reports: new List<GenerateTokenRequestV2Report>() { new GenerateTokenRequestV2Report(report.Item1) },
datasets: v2DatasetID.Select(datasetId => new GenerateTokenRequestV2Dataset(datasetId.ToString())).ToList(),
identities: v2rls,
targetWorkspaces: v2WsID
);

// Generate Embed token
var getToken = client.EmbedToken.GenerateToken(tokenRequest);

 

 

My config client side is : 

 

var config = {
                    type: pbiType,
                    tokenType: pbiModels.TokenType.Embed,
                    //theme: { themeJson: getCurrentTheme() },
                    accessToken: options.TOKEN,
                    datasetBinding: {
                        datasetId: options.DATASETID,
                    },
                    embedUrl: options.EMBEDURL,
                    id: options.IDREPORT,
                    layoutType: models.LayoutType.Custom,
                    customLayout: {
                        displayOption: models.DisplayOption.FitToPage
                    },
                    permissions: pbiModels.Permissions.All,
                    viewMode: pbiModels.ViewMode.View,
                    settings: { 
                        panes: {
                            filters: {
                                visible: false
                            },
                            pageNavigation: {
                                visible: false
                            }
                        }
                    },
                };

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.