Overview
When trying to edit any filter condition in M-Files Admin, e.g. in a Compliance Kit Managed Properties configuration, you may end up not getting the filter condition dialog opened, but instead getting an error dialog stating the following:
An error has occured in the script on this page.
Line: 1543
Char: 2
Error: Object doesn't support property or method 'canFollow'
Code: 0
URL: file:///C:/program%20/M-Files/<version>/Bin/ext/Configurator/lib/mfiles/searchconditions/viewmodels/searchconditionviewmodel.js
Solution
This is a known issue (ID 162828) in M-Files Admin, and the reason is that there is a saved filter condition template with an alias for a property in a vault that has been removed or renamed. To resolve the issue, do the following in M-Files Admin:
- Find a property alias that has been changed lately.
- Temporarily re-add the original property alias name for any property definitions in Metadata Structure.
- Open a Filter Conditions dialog where you got the error dialog.
- Open the "Templates" tab from bottom left corner and remove the favorite that uses the property alias.
- Remove the temporarily added property alias from the property in Metadata Structure.
If the changed property alias is not known, it could be tried to find with a Named Value Manager tool. See the following link for the tool:
Run the tool and select MFUserDefinedValue as Storage Type and M-Files.SearchConditions.Templates.<userID> as Namespace. Set <userID> as the numeric id for the user defined the template. Press a Load button and select Favorities from left. Templates and included properties can be seen from a right panel:
This issue has been corrected in M-Files Online June '22 update.
