In this example, I'm using an Azure DevOps - Source Control connection configured with Service Principal authentication as shown on the image below
Using this connection, I'm invoking a interface Git - Connect - REST API (Core) | Microsoft Learn , following the example provided in Connect a workspace to Azure DevOps using configured connection example and implemented using PowerShell script, in the image below you can see how the call is correct, but I'm getting an error "{"requestId":"xxxxxxxx-xxxx-xxxx-xxxxxxxxxx","errorCode":"GitProviderResourceNotFound","message":"The requested operation can't be completed because the Git provider resource could not be found using the provided Git connection details."}"
After a LONG INVESTIGATION following what the error suggested the problem was (e.g. ID of the connection incorrect, lack of permissions, etc) and ruling-out many alternatives, I concluded that it wasn't none of this but the issue was that, on the target branch reference in the example shown "workspace/ws_test-auto-deploy_dev" did not contain "directoryName": "/fabric"
This is why the return error message GitProviderResourceNotFound is very misleading and should be more granular, it would have same me a lot of time something different like "BranchMissingDirectory" instead.
1 Comment
- frithjof_v
Community Champion
I had the same issue when trying to connect a workspace to GitHub using the API. It turns out I had to create the workspace folder in GitHub first (in my case: workspace/engineering, workspace/store, workspace/presentation) before attempting to connect the workspace to GitHub. When we connect a workspace to GitHub in the workspace settings user interface, the GitHub directory gets created if it doesn't already exist. But, when using the API to connect a workspace to GitHub, we need to create the folder in GitHub first before we can make the connection.
Recent ideas
Native Page-Level Security (PLS) or Dynamic Page Visibility based on RLS Roles
Description: Currently, Power BI provides robust Row-Level Security (RLS) to restrict data rows, but it lacks a native mechanism to restrict or hide entire report pages based on user roles or USERPRI...Erick1856 minutes agoNew MemberNew3Views0likes0CommentsAdd standard ADBC search paths for ADBC drivers in Power BI
Considering the benefits of using ADBC drivers for data intensive operations, it would be nice to allow ADBC drivers to be used that are not necessarily packaged with Power BI installations. To mitig...hsadlier-pdx2 hours agoNew MemberNew5Views0likes0CommentsPower BI Subscriptions: Suppress OOO Replies and Improve Sender & Management Options
With the recent changes to Power BI subscription email delivery, Out of Office and other automatic replies can be returned to the individual subscription owner. For automated subscriptions sent to l...svcrowell3 hours agoNew MemberNew14Views2likes0CommentsAbility to change the hover text on the new List filter
It would nice to be able to change the hover / tooltip text on the new List filter (preview) visual. For example, currently if you have more items selected than can fit in the available space it say...EHA_SD8 hours agoAdvocate IVNew4Views0likes0CommentsDisplay the associated Power Automate flow in Power BI
When using a Power Automate visual in Power BI, it is not easy to identify which flow is currently associated with the button. Expected improvement: Display directly in the visual properties: Flo...Olivier-R358 hours agoNew MemberNew4Views0likes0Comments