Forum Discussion

alloowishus's avatar
alloowishus
Helper I
3 days ago

Fabric keeps deleting files!!

THis has happened several times already, a couple of times I didn't have GIT setup yet and lost work. This time at least I had GIT setup in my workspace so I was able to recover the files. What is Fabric deleting files?

4 Replies

  • This is usually a Git sync-direction issue rather than random deletion — "Update from Git" reconciles the workspace to match the connected branch, removing anything not present there.

  • This isn't it. I had setup a new workspace and deployed a semantic model there from Tabular editor and also setup up some folders. I found these items completely deleted and I had NOT setup github (everything was lost). This also happened on another workspace, but I did have github setup so I was able to recover. This also happens to my colleague when setting up new workspaces. It's very frustrating.

    • v-abhinavmu's avatar
      v-abhinavmu
      Community Support

      Hi alloowishus​,

      Thanks for the clarification and for providing the additional context.

      Based on your description, the workspaces were not connected to Git when the items were deleted, so the Git branch-out or branch-switching behavior discussed above would not apply to this scenario.

      Since you've observed the same behavior across multiple newly created workspaces, including for your colleague, it would be helpful to gather some additional details to investigate the behavior further. In particular, the types of items affected, the approximate time when they disappeared, and any workspace or deployment operations performed before the items were deleted could help narrow down what happened.

      If you can reproduce the behavior, sharing the steps leading up to the deletion and any relevant error messages or timestamps would also be useful for further investigation.

      Thank you.

  • v-abhinavmu's avatar
    v-abhinavmu
    Community Support

    Hi alloowishus​,
    Thanks for reaching out to the Microsoft Fabric Community forum.
     
    If the files are disappearing during Git branch-out or branch-switching operations, this behavior is documented by Microsoft.

    When branching out, items that aren't saved to Git can get lost, and Microsoft recommends committing any items you want to keep before branching out. When switching branches, the workspace is synchronized with the new branch. If an item exists in the old branch but not in the new branch, that item is deleted from the workspace.

    If the files are being deleted outside of these Git operations, additional details about the operation performed before the files disappeared would be helpful in determining the cause.

    For more details, please refer to the below Official Microsoft Documentation:
    Overview of Fabric Git integration - Microsoft Fabric | Microsoft Learn
    Development process using Branch-Out experience - Microsoft Fabric | Microsoft Learn

    I hope this helps. Please feel free to reach out if you have any further questions.
    Thank you.