Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi All,
I am trying to create report in custom workspace using the dataset present in standard workspace, but when I do this I am getting 403 forbidden error https://wabi-us-north-central-j-primary-redirect.analysis.windows.net/explore/explorations/?name=Tes...
I am using .NETSDK to generate embedded token to create this report dynamically using Java SDK on frontend.
Any help or sample code or any specific workspace configuration to make this work will be of great help!! Thanks
Solved! Go to Solution.
Hey Guys,
Just an update that backend .NET code was all good and no issues but only change we had to make was on the Typescript code on client side SDK , save as overload which accepts targetworkspaceid after using the overloaded method on UI side report is getting saved in custom workspace using the datatset from standard workspace.
I was hoping since embedded URL was generated , had all needed info like target workspace and primary workspace dataset id, so never thought we would have to also modify Save to accept target workspace id on UI side.
Thanks to all for looking and trying to help me on this
Hey Guys,
Just an update that backend .NET code was all good and no issues but only change we had to make was on the Typescript code on client side SDK , save as overload which accepts targetworkspaceid after using the overloaded method on UI side report is getting saved in custom workspace using the datatset from standard workspace.
I was hoping since embedded URL was generated , had all needed info like target workspace and primary workspace dataset id, so never thought we would have to also modify Save to accept target workspace id on UI side.
Thanks to all for looking and trying to help me on this
Hi @rakeshkava
var generateTokenRequestParameters = new GenerateTokenRequestV2
{
Reports = new List<GenerateTokenRequestV2Report>(),
Datasets = new List<GenerateTokenRequestV2Dataset>
{
new GenerateTokenRequestV2Dataset { Id = datasetId }
},
TargetWorkspaces = new List<GenerateTokenRequestV2TargetWorkspace>
{
new GenerateTokenRequestV2TargetWorkspace { Id = workspaceAId }
},
AccessLevel = "Create"
};
var embedToken = await client.EmbedToken.GenerateTokenAsync(generateTokenRequestParameters);
If this response was helpful in any way, I’d gladly accept a 👍much like the joy of seeing a DAX measure work first time without needing another FILTER.
Please mark it as the correct solution. It helps other community members find their way faster (and saves them from another endless loop 🌀.
If this response was helpful in any way, I’d gladly accept a kudo.
Please mark it as the correct solution. It helps other community members find their way faster.
Connect with me on LinkedIn
Hi , we are using the Fabric capacity latest from MS and we have the settings enabled for Use datasets across workspaces at tenant settings level, also service principal has Admin permissions(All Permissions) on dataset.
Also the latest dot not code what we use is not having AccessLevel property, I guess this must not be an issues, we are on Fabric Capacity.
With all above we are still getting 403 error while saving report , we are able to generate token but saving is failing with 403.
https://wabi-us-north-central-j-primary-redirect.analysis.windows.net/explore/explorations/?name=Tes...
Hii @rakeshkava
In Power BI Embedded you can only create a report in Workspace A using a dataset from Workspace B if the dataset in B is exposed as a shared semantic model and the embedding identity has Build permission on that dataset (and the tenant setting allows it). A 403 typically means the embed token/user/service principal does not have Build on the dataset in Workspace B or the dataset isn’t shared for cross-workspace use. Fix: in Workspace B grant the embedding identity Build on the dataset (or add it to a role that has Build), enable “Users can use datasets across workspaces” / shared dataset feature in tenant settings, then generate the embed token including the datasetId from B and target workspace/report in A.
Hi , we are using the Fabric capacity latest from MS and we have the settings enabled for Use datasets across workspaces at tenant settings level, also service principal has Admin permissions(All Permissions) on dataset.
Also the latest dot not code what we use is not having AccessLevel property, I guess this must not be an issues, we are on Fabric Capacity.
With all above we are still getting 403 error while saving report , we are able to generate token but saving is failing with 403.
https://wabi-us-north-central-j-primary-redirect.analysis.windows.net/explore/explorations/?name=Tes...
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 9 | |
| 8 | |
| 8 |
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 20 | |
| 16 | |
| 15 |