Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Error resolution

Word or Excel Experienced an Error Trying to Open a Document

Last updated on 7 May 2021

Admin
Microsoft Office Add-ins

Overview

An Office application such as Word or Excel could not open a document in M-Files when opening it via Recent files in a certain scenario.

kuva.png

Impacted Products and Versions

M-Files Online or M-Files 2018 with Office 365.

Symptoms

kuva.png

Opening the Recent view of Word and clicking on a recent document in M-Files results in error "Word experienced an error trying to open the file".

kuva.png

Similarly, Excel stops opening a document due to error "Sorry, we couldn't find…".
 

Solution / Workaround
Log in to the document vault

This error is avoided by first logging in - Using your user credentials - to the document vault where the document resides in. Being logged out prevents Office applications from accessing recent files opened in M-Files. You can check whether you are logged in via the Show Status dialog as illustrated here:

kuva.png

Right click on the M-Files icon on the status bar and select Show Status.

kuva.png

See if you are logged in - It is indicated by your username being displayed on the "Logged In" column. To log in here, select the document vault and click on the "Log In" button which appears.

Unblock your file
Please, follow instructions of this Microsoft support article to unblock your document and add it to a trusted folder location: https://support.microsoft.com/en-us/topic/how-to-resolve-the-problem-word-experienced-an-error-trying-to-open-the-file-when-opening-a-word-2007-2010-file-easy-fix-article-0903bb9b-d8e4-aabd-0364-f832d26ecff7

Disable Protected View options
  1. Click on Word’s File tab.
  2. Next, click Options on the left of the File tab.
  3. Select the Trust Center tab.
  4. Press the Trust Center Settings button.
  5. Click Protected View to open the options window
  6. Deselect all three of the selected Enable Protected View checkboxes.
  7. Press the OK button to close the Trust Center window.
  8. Click OK to exit Word Options.
Repair the document
If the program offers the option to recover or repair the file you can attempt to recover the file by following the instructions given in the dialog. Otherwise do the following:
  1. Open MS Word.
  2. Click Open on Word’s File tab.
  3. Select the Browse option.
  4. Select the Word document the error arises for.
  5. Click the Open button’s small arrow to open the submenu in the shot directly below.
  6. Select the Open and Repair option.

 

Still need help?