Skip to content

Replace shortcut location value #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
brainONdata opened this issue Apr 10, 2025 · 2 comments
Closed

Replace shortcut location value #230

brainONdata opened this issue Apr 10, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@brainONdata
Copy link

brainONdata commented Apr 10, 2025

What is the question?

I have a lakehouse shortcut in my repo defined as

  {
    "name": "test_shortcut",
    "path": "/Files",
    "target": {
      "type": "AdlsGen2",
      "adlsGen2": {
        "connectionId": "dev_guid",
        "location": "https://dev.dfs.core.windows.net",
        "subpath": "/some_subpath"
      }
    }
  }

Then in parameter.yml:

- find_value: "dev_guid"     # Storage connection guid
  replace_value:
      ppe: "ppe_guid"
      prod: "prod_guid"
- find_value: "https://dev.dfs.core.windows.net"     # Storage connection location 
  replace_value:
      ppe: "https://ppe.dfs.core.windows.net"
      prod: "https://prod.dfs.core.windows.net"

During deployment, the connectionId is getting replaced, but not the location.

Error from the log:
`2025-04-10 07:25:39,232 - ERROR - fabric_cicd._common.fabricdpoint - Unhandled error occurred calling POST on 'https://api.powerbi.com/v1/workspaces//items//shortcuts?shortcutConflictPolicy=CreateOrOverwrite'.
Message: The caller does not have suffici
t permissions to access the requested resource. [{'errorCode': 'Forbidd***', 'message': 'Error in Stored Credtial Operation - {"error":{"code":"ArtifactConnection_InaccessibleDatasource","pbi.error":{"code":"ArtifactConnection_InaccessibleDatasource","details":[{"code":"ArtifactConnection_InaccessibleDatasource","detail":{"type":1,"value":"A datasource bound to connection is inaccessible to the binding user. DatasourceId: 07af29d6--4c64--e677ae3a251f. ConnectionId: 07af29d6--4c64-***-e677ae3a251f. UserObjectId: . DMTSErrorCode: ."}}],"eceptionCulprit":1}}}.'}]

Additional Info:

URL: https://api.powerbi.com/v1/workspaces/***/items/***/shortcuts?shortcutConflictPolicy=CreateOrOverwrite
Method: POST
Request Body:
{
"name": "test_shortcut",
"path": "/Files",
"target": {
"type": "AdlsG2",
"adlsG
2": {
"connectionId": "07af29d6--4c64--e677ae3a251f", <------ OK
"location": "[https://dev.dfs.core.windows.net",]. <------------------ not replaced
"subpath": "/some_subpath"
}
}
}
Response Status: 403`

Additional context

No response

@brainONdata brainONdata added the question Further information is requested label Apr 10, 2025
@JacobKnightley
Copy link
Collaborator

Can you run this in debug mode? It will tell you explicitly if it's being replaced before deployment.

@JacobKnightley JacobKnightley added bug Something isn't working and removed question Further information is requested labels Apr 11, 2025
@brainONdata
Copy link
Author

my bad, I had type: Notebook added

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants