Forum Discussion
Error: Generate token request for proxy model should include the core model ID
- Anonymous3 years ago
Hi,
i was able to solve it.
a report is using at least one dataset (= proxy model). If that dataset is referring to other datasets (= core model) then these need to be mentioned all in the generate embeded token request.
eg
report1 -> dataset1 (proxy model) -> dataset2 (core model), dataset3 (core model)
then the request should contain dataset1 id, dataset2 id and dataset3 id.
these additional datasets (core models) should be added as a normal dataset (so a separate dataset object iso a modelid inside the existing one)
{ "accessLevel": "View", "allowSaveAs": "false", "datasetId": "<dataset ID>", "identities": [ ... ], "datasets": [ { "id": "<dataset1 ID>", ... },{ "id": "<dataset2 ID>", ... },{ "id": "<dataset3 ID>", ... } ] }Hope this helps
regards
Hi,
No luck so far. The actual problem is how to pass modelId to the request.
You can see modelId in browser while report is loading under Network tab:
So you can find modelId through either conceptual schema or models&Exploration request.
But, can't proceed any further.
BR
Hi,
i was able to solve it.
a report is using at least one dataset (= proxy model). If that dataset is referring to other datasets (= core model) then these need to be mentioned all in the generate embeded token request.
eg
report1 -> dataset1 (proxy model) -> dataset2 (core model), dataset3 (core model)
then the request should contain dataset1 id, dataset2 id and dataset3 id.
these additional datasets (core models) should be added as a normal dataset (so a separate dataset object iso a modelid inside the existing one)
{
"accessLevel": "View",
"allowSaveAs": "false",
"datasetId": "<dataset ID>",
"identities": [ ... ],
"datasets": [
{
"id": "<dataset1 ID>",
...
},{
"id": "<dataset2 ID>",
...
},{
"id": "<dataset3 ID>",
...
}
]
}Hope this helps
regards
- Zed1012 years agoFrequent Visitor
Just to add, core model refers to the upstream datasets
Also, when mentioning datasets under identities in request body, mentioning only the upstream dataset worked without mentioning the direct dataset report is referring to, because Effective identity required only on upsteam dataset in my case - Himanshu_G1 year agoHelper I
I’m also facing the same issue.
We are using the Power BI SDK and have included both dataset IDs in the datasetId list of the GenerateTokenRequestV2 request.
However, we’re still getting the following error:
{"error":{"code":"InvalidRequest","message":"Generate token request for proxy model should include the core model ID"}}