0

When I'm issuing a POST request to generate a token for a datasource using a direct query connection: POST https://api.powerbi.com/v1.0/myorg/GenerateToken

I'm receiving the following error:

{ "error": { "code": "InvalidRequest", "message": "Generate token request for the proxy model should include the core model ID" } }

This happens only in cases when sending requests for reports using a direct query connection.

If it is expecting a "Core model Id" in such a scenario, cannot understand what is core model Id and how to pass it in the request body as the request body doesn't mention anything like model or modelId.

For the Request body structure, please refer: https://learn.microsoft.com/en-us/rest/api/power-bi/embed-token/generate-token

Rameshkumar
  • 264
  • 1
  • 12
zed101
  • 193
  • 1
  • 2
  • 10
  • As a workaround, I even tried generating token using another POST request provided: POST https://api.powerbi.com/v1.0/myorg/groups/{groupId}/reports/{reportId}/GenerateToken But got errors like, "Embedding a report with a model which has a Direct Query connection to another model is not supported with V1 embed token" – zed101 Feb 16 '23 at 09:23

0 Answers0