Forum Discussion
Issue when syncing git to workspace
- 1 year ago
Thanks burakkaragoz and v-pnaroju-msft
Yea, it seems a bit patchy, anyway i have configured it using API's. I wanted a completed one click solution, so deployed github actions to call api, and configured pipelines with ids being fetched using the fabric rest calls.
Thankyou, burakkaragoz, for your response.
Hi rookie111,
We appreciate your question on the Microsoft Fabric Community Forum.
From what I understand, the error happens because of a problem with Fabric Git integration. When new workspaces (especially those with Lakehouse or notebook files) are connected, the workspaceId does not get registered properly during sync. The WorkspaceId <null> error usually means the metadata was not fully set up when binding Git.
Please follow these steps to fix the workspace sync and correct the metadata:
- Disconnect Git by going to the workspace, then Workspace settings > Source control > Disconnect.
- Create an empty branch in your Git repo (for example, name it init-fix-workspace).
- Reconnect the Fabric workspace to this new empty branch and do a manual sync (Update from Git). This will rebuild the necessary .workspace and definition.json files with the correct workspace details.
- After the sync is successful, you can switch back to your original working branch if you want.
Also, please check these helpful links:
Git integration admin settings - Microsoft Fabric | Microsoft Learn
Get started with Git integration - Microsoft Fabric | Microsoft Learn
Git integration workspaces - Microsoft Fabric | Microsoft Learn
https://learn.microsoft.com/en-us/fabric/cicd/troubleshoot-cicd#branching-out-my-new-workspace-wasnt-synced-with-my-git-repository
If you find this answer useful, please mark it as the accepted solution and give kudos. This will help other community members with the same issue.
If you have more questions, feel free to ask the Microsoft Fabric community.
Thank you.