Fix MPP Files Not Opening Directly from SharePoint Online
Question details
The user is unable to open Microsoft Project (.mpp) files directly from the modern SharePoint Online interface due to an Office command error.

- Product
- Microsoft Project 2019 / SharePoint Online
- Device & OS
- Windows
- Scenario
- Clicking on an MPP file within a modern SharePoint Online document library to open it in the desktop client.
- Observed behavior
- The file produces an Office command error in modern SharePoint Online, but opens successfully if downloaded locally or accessed via the classic SharePoint view.
Verify that your Microsoft Project application is fully updated and test if another user on the same computer can open the file successfully to determine if the issue is profile-specific.
Repair Microsoft Project and Reset App Data
Repairing the installation and clearing cached application data can resolve localized command errors preventing SharePoint integration.
Often, the connection between the modern SharePoint environment and the desktop application breaks due to corrupted application files or registry keys specific to your user profile.
Press the Windows key, type 'Control Panel', and navigate to 'Programs' > 'Programs and Features'.
Locate 'Microsoft Project 2019' in the list, right-click it, select 'Change', and choose the 'Online Repair' option.
Press Win + R to open the Run dialog, type '%appdata%\\Microsoft\\Project', and rename the folder (e.g., to 'Project_old') to reset user-specific data.
Restart your computer, navigate back to your modern SharePoint Online library, and try opening the MPP file directly.

Create a New Windows User Profile
If repairing the application fails, creating a new Windows profile provides a clean slate free from profile-level corruption.
Use Classic View or Download the File (Workaround)
Use this temporary workaround to maintain your workflow while troubleshooting the modern SharePoint view errors.
Looking for a Lightweight Alternative to Microsoft Office?
While WPS Office does not natively edit Microsoft Project (.mpp) files, it serves as a powerful, free alternative for your daily document needs. Enjoy a seamless, lightweight office suite that handles Word, Excel, and PowerPoint files with high compatibility and a familiar interface.

Frequently Asked Questions
Why do MPP files open in classic SharePoint but not the modern view?
The modern SharePoint Online experience handles Office URI (Uniform Resource Identifier) schemes differently than the classic view. If your local Project installation or registry keys are damaged, the modern view may fail to trigger the desktop application correctly.
Can I edit MPP files directly in the browser using SharePoint Online?
No, traditional Microsoft Project files (.mpp) require the desktop application (Project Professional or Standard) to be opened and edited. While 'Project for the Web' offers browser-based planning, it does not open traditional .mpp files directly from a SharePoint document library.
Will reinstalling Microsoft Project fix the Office command error?
Reinstalling can fix the error if it is caused by missing or corrupted program files. However, if the issue is tied specifically to corrupted AppData or your Windows user profile, you may need to clear your AppData folder or create a new user account to fully resolve it.




