Overview
When using the M-Files Reporting module to export data, you might encounter this message in a specific circumstance.
Solution
As the error suggests, this is likely related to a server certificate setting and its encryption option.
Open the Data Link properties and check the settings under the Advanced tab. "Connection encryption" = "Strict" is the only option that uses a Server certificate.
If your "Connection encryption" is already something else (for example, "Optional"), go back to the Data Set properties, and check the "OLE DB connection string" for any references to "Server certificate"
Example: …Host Name In Certificate="";Server Certificate=""
If there is one, remove the Server Certificate part from the connection string and retry.
Full sample error stack:
M-Files Online
Reporting and Data Export
Vault: Name {GUID} //redacted
Server Certificate option can only be used with Encryption option set to 'Strict'. (ERROR: 0, SQLSTATE: HY000)
Scheduler.cpp, 158, Server Certificate option can only be used with Encryption option set to 'Strict'. (ERROR: 0, SQLSTATE: HY000) (0x80040E21)
TaskItf.cpp, 83, Server Certificate option can only be used with Encryption option set to 'Strict'. (ERROR: 0, SQLSTATE: HY000) (0x80040E21)
TaskItf.h, 146, Server Certificate option can only be used with Encryption option set to 'Strict'. (ERROR: 0, SQLSTATE: HY000) (0x80040E21)
DatasetExport.cpp, 543, Server Certificate option can only be used with Encryption option set to 'Strict'. (ERROR: 0, SQLSTATE: HY000) (0x80040E21)
OLEDBStorageProvider.cpp, 136, Server Certificate option can only be used with Encryption option set to 'Strict'. (ERROR: 0, SQLSTATE: HY000) (0x80040E21)
DBSession.cpp, 653, Server Certificate option can only be used with Encryption option set to 'Strict'. (ERROR: 0, SQLSTATE: HY000) (0x80040E21)
DBSession.cpp, 593, Server Certificate option can only be used with Encryption option set to 'Strict'. (ERROR: 0, SQLSTATE: HY000) (0x80040E21)
