Forum Discussion

dbeavon3's avatar
dbeavon3
Icon for Memorable Member rankMemorable Member
1 year ago
Solved

Power BI Git Integration - Everything is Gone

Story time.  I was trying to extract a couple distinct resources out of a PBI workspace by way of git.  (a notebook and pipeline).   ...  I configured a new git repo, and committed the things I wan...
  • v-veshwara-msft's avatar
    1 year ago

    Hi dbeavon3 ,
    Thanks for posting in Microsoft Fabric Community,
    I completely understand your frustration. Git in Fabric is designed for managing source code, not large datasets, which is why it can sometimes lead to unintended deletion of untracked resources like datasets. Git integration should ideally not affect datasets or important data by default.

    To help prevent something like this in the future, here are a couple of suggestions:

    1. Store Datasets Separately: To avoid losing critical data, try storing datasets and other key resources outside of Git-controlled elements, like in Lakehouses or other dedicated storage solutions.
    2. Use Backup Strategies: Regularly back up your workspace resources, especially datasets, to ensure nothing important gets lost during syncs with Git.

    Just wanted to check in—were you able to restore your workspace through Mindtree? 
    Since the "hot" recycle bin retention is 7 days, I hope you were able to recover everything. Let me know if you need any further assistance!

    Best regards,
    Vinay.

  • Poojara_D12's avatar
    1 year ago

    Hi dbeavon3 

    It seems that while using Git integration in Power BI, you committed some assets (like notebooks and pipelines) to a Git repo and forgot to detach it afterward. This caused Power BI to sync your workspace with the Git repo, likely removing datasets, dataflows, and other assets not tracked in Git. Git doesn’t handle data storage, so it might have overwritten or deleted datasets in the process.

    Since this wasn’t in a production workspace, you should contact Mindtree or Microsoft Support to see if they can restore your lost data. Going forward, always ensure Git is detached after use and back up datasets separately to avoid this issue.

     

    Did I answer your question? Mark my post as a solution, this will help others!
    If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂

    Kind Regards,
    Poojara
    Data Analyst | MSBI Developer | Power BI Consultant
    Consider Subscribing my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS