Forum Discussion
Git Integration stuck on "Connection Already Initialized" after deleting GitHub repo
Hi community,
I'm hoping someone from Microsoft can assist with a stuck Git connection state on one of my Fabric workspaces.
Background: I successfully connected a Premium Fabric workspace to a GitHub repo and the initial sync completed perfectly. However one item was failing to sync, so I disconnected the workspace from Git and deleted the GitHub repo intending to start fresh.
Since then I have been unable to reconnect the workspace to any GitHub repo. The workspace Git panel no longer shows committed/uncommitted status and I cannot select any items to sync.
Errors I am seeing:
- "Unable to sync changes — We weren't able to sync your changes between Git and this workspace"
- "Connection already initialized — We weren't able to complete your initialization request because the connection has already been initialized"
- Activity ID: 915d3d3c-9d79-436e-a619-cbdf49a79387
- Request ID: 13a3c5df-3d95-b57f-63d0-5a04e666e141
What I have tried:
- Disconnecting and reconnecting multiple times
- Connecting to the same repo on a new branch
- Connecting to a completely new repo with a different name and branch
- Verifying the PAT has correct permissions (same token works fine on other workspaces)
Key detail: I can cleanly disconnect and reset Git connections on all my other workspaces without issue. This workspace is unique in that it had a previously successful and confirmed sync before the repo was deleted. I believe the stale connection state persisted on Microsoft's backend when the repo was removed.
What I need: A backend reset of the Git connection state for this workspace. I am happy to provide the Workspace ID in a DM.
Thanks in advance.
Hi lundande ,
Can you try using Rest API instead of portal.
1. Check your git connection by using this api
GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/git/connection
Check gitconnection state in your response and if it says it is connectedandinitialised then try the next step
2. Disconnect using api
POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/git/disconnect
if you get 200 status code which means it got disconnected , if you get some other error
Please raise Microsoft support ticket as deborshi_nag suggested.
Reference:
https://learn.microsoft.com/en-us/rest/api/fabric/core/git/get-connection?tabs=HTTP
https://learn.microsoft.com/en-us/rest/api/fabric/core/git/disconnect?tabs=HTTP
Regards,
Srisakthi
2 Replies
- deborshi_nag
Super User
Hello lundande
I would advise you to raise a support ticket with Microsoft to deal with this issue. Please provide the activity ID/request ID you got above on the ticket. Microsoft engineers use internal tooling to remove orphaned Git metadata, clear initialisation logs and/or re-enable git/connect.
- Srisakthi
Super User
Hi lundande ,
Can you try using Rest API instead of portal.
1. Check your git connection by using this api
GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/git/connection
Check gitconnection state in your response and if it says it is connectedandinitialised then try the next step
2. Disconnect using api
POST https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/git/disconnect
if you get 200 status code which means it got disconnected , if you get some other error
Please raise Microsoft support ticket as deborshi_nag suggested.
Reference:
https://learn.microsoft.com/en-us/rest/api/fabric/core/git/get-connection?tabs=HTTP
https://learn.microsoft.com/en-us/rest/api/fabric/core/git/disconnect?tabs=HTTP
Regards,
Srisakthi