@powerbi report
2 TopicsAccessToken-PowerBi not being able to provide a token and get back the report to the backend
Hi all, We are using powerBI embeded reports in our application (angular,.Net), we have a premium per user license. Through backend we are accessing the powerbi account and the reports. We have encoutered a problem with our PowerBi Api and we are getting the error of Forbidden 500. On our backend we are getting the problem with the line : var tokenResponse = await client.Reports.GenerateTokenAsync(workspaceId, reportId, generateTokenRequestParameters); That led me to think that we don't have a problem with accessing the report, but with generating a token that helps us sent it back to the frontend. I started googling and saw that maybe there could be a problem with license, and/or capacity of tokens, but if you have a license PremiumPerUser, don't I have unlimited tokens? If yes, what does error means then ? If no, where can I check my capacity and how can I upgraded to unlimited? Or what can I do to resolve this error? If someone had some similar situation, please let us know. Nothing was changed before, it stopped working really suddenly, we managed to do a temporary workaround to show reports with another account, but we have to solve the problem and use original account because of our clients. Thanks in advance!Solved946Views0likes2CommentsDisplay Options for Power BI Report Configurations (Fit to Width).
Hi, I'm actually working with power bi to embed reports. I'm using the powerbi-client-react library to render the powerbi iframe. I need to add a display option of FitToWidth to my settings inside report configuration. The issue is I've added it, but the report still does not load with the full width. This is how I'm adding the settings in my report configuration object. settings: { customLayout: { displayOption: models.DisplayOption.FitToWidth, }, layoutType: models.LayoutType.Custom, }, And then passing that configuration to the PowerBiEmbed element. <PowerBIEmbed embedConfig={reportConfig} cssClassName={styles.report} /> Any suggestions of what I'm doing wrong? and why is this FitToWidth not working?1.1KViews0likes1Comment