2

We have been using Power BI dashboards in production embedded in web application for a long time. Suddenly it stopped working in application but in Power BI Cloud the reports are working.

Debugging the code, we are getting the following error.

you have exceeded the amount of embed token that can be generated on a shared or proplus capacity. you need to purchase azure capacities to generate embed tokens. see https://go.microsoft.com/fwlink/?linkid=868976

How can I resolve the issue?

James Z
  • 12,209
  • 10
  • 24
  • 44

2 Answers2

3

Using Pro accounts without a dedicated capacity, or Premium Per User accounts, is not allowed in production scenarios. In this case, the number of embed tokens that can be generated is limited. You ran out of tokens and you must purchase Power BI Embedded (A SKUs) or Power BI Premium (EM or P SKUs).

Development testing

For development testing, you can use embed trial tokens with a Pro license. To embed in a production environment, use a capacity.

The number of embed trial tokens a Power BI service principal or master user (master account) can generate, is limited. Use the Available Features API to check the percentage of your current embedded usage. The usage amount is displayed per service principal or master account.

If you run out of embed tokens while testing, you need to purchase a Power BI Embedded or Premium capacity. There's no limit to the number of embed tokens you can generate with a capacity.

Andrey Nikolov
  • 12,967
  • 3
  • 20
  • 32
  • Andrey, Thanks for your response. We changed from Power BI pro Embedded A1 capacity to A2 capacity in Power BI Pro, Is this what we need to do? https://azure.microsoft.com/en-in/pricing/details/power-bi-embedded/ After changing the capacity also it's throwing the same error – Anitha Letchumi Jul 15 '21 at 12:13
  • 1
    A1 SKU is enough. If you get this error, then the workspace where the report/dataset resides is not attached to the capacity. – Andrey Nikolov Jul 15 '21 at 12:46
1

You can use the Power BI report or dashboard in your web application

  1. Using Azure AD application
  2. Using power BI user credential

if you using 1st approach (Use Azure AD application to retrieve Power BI embed token) then you will receive the sudden error

{"error":{"code":"InvalidRequest","message":"You have exceeded the amount of embed token that can be generated on a shared or ProPlus capacity. You need to purchase Azure capacities to generate embed tokens. See https://go.microsoft.com/fwlink/?linkid=868976"}}

The permanent solution is, you have to purchase Azure capacities to generate embed tokens. it makes more than $700 (Suitable for production)

The temporary solution is, you can create a new Azure AD application and assign the required permission to that application as you did for your existing Azure AD application (Suitable for a Development environment)

lilan silva
  • 1,896
  • 1
  • 14
  • 19