Forum Discussion
Access Forbidden When Saving Power BI Project To Github Repo
Hi Em1993 -
Pause OneDrive Sync Temporarily:
Right-click the OneDrive icon in the taskbar.
Select "Pause syncing" for 2 hours (or a suitable duration).
Save the Power BI report file (.pbix) to the GitHub folder manually.
Resume syncing in OneDrive after saving.
Save Locally First:
Instead of saving directly to the GitHub folder, save the .pbix file to a local location outside OneDrive.
Then manually copy the saved file back into the GitHub repository folder.
Check File Permissions:
Ensure your user account has full read/write permissions to the OneDrive folder and subfolders.
Right-click the OneDrive folder → Properties → Security tab → Edit permissions.
Disable OneDrive File-On-Demand:
OneDrive's "Files On-Demand" feature sometimes delays file availability, causing save errors.
To disable it:
Open OneDrive settings.
Go to the Sync and Backup section.
Uncheck "Save space and download files as you use them."
Close Conflicting Processes:
Ensure no other applications (e.g., Git clients, other Power BI sessions, or file viewers) are accessing or locking the .pbix file.
Use Task Manager to close unnecessary processes.
Power BI Permissions:
If Power BI lacks permissions for OneDrive, open it as an administrator:
Right-click Power BI Desktop → Run as Administrator.
GitHub and OneDrive Sync Conflict:
Avoid syncing the GitHub folder directly with OneDrive. Instead, store the .pbix file locally and push it to GitHub using a version control tool (like GitHub Desktop).
https://community.fabric.microsoft.com/t5/Issues/Unable-to-Save-or-Open-pbix-Documents/idi-p/299218
https://community.fabric.microsoft.com/t5/Issues/Error-Access-to-the-path-is-denied/idi-p/498709