Overview
Users may encounter an "Unexpected error" from the M-Files Login Service when attempting to log in to an M-Files Cloud vault through the Salesforce add-in (embedded UI). The error appears like the one in the image below. Accessing the same vault directly via M-Files Web in a browser still works without issues.
In such cases, start by reviewing the settings outlined below before further troubleshooting.
Solution
Ensure that the Server URI setting in Salesforce is correctly configured and does not include, for example, an unnecessary trailing slash character. For detailed instructions, refer to Section 4.2, Step 4 of the document Installing and Configuring M-Files Add-in for Salesforce CRM.
Additionally, review the M-Files Salesforce add-in's CORS settings in the Advanced Vault Settings (AVS) and remove any trailing slashes or other extraneous characters. Use the reference image below for guidance.
