Overview
If the Optimize Database Thorough, either manually run or a scheduled job, fails, you might not receive any errors in the Windows Event Viewer, but it will read as failed from the M-Files Admin. Under the Scheduled Jobs à Last Run column you can see that it has failed.
Symptoms can be: incorrect/incomplete searches, indexing of new documents stopping or failing, and the vault refusing to come back online after the scheduled jobs are run (usually on the weekend).
Solution
In several instances, we have seen where the Access data driver has caused this failure. The Access data driver is used to connect value lists or object types to data sources such as CSV, Excel, and other text-formatted data sources.
The Access data driver is no longer supported or generally suggested to be used with the M-Files system because of inconsistencies with the driver and how it interacts with M-Files.
Please see the KB article below for a workaround for this if you are using the Access data drivers.
https://m-files.force.com/s/article/Access-ODBC-driver-not-supported-Solution-available
In addition, you can get more information about external objects, and their refreshes, and provide information to M-File Support with the following article on how to log external object actions.
https://m-files.force.com/s/article/M-Files-External-object-type-logging-onwards-from-version-19-7-8028-4
