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/Examples and how to

How to Resolve a Script Error from Editing Filter Conditions in M-Files Admin

Last updated on 14 June 2022

Admin
M-Files Admin

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:

  1. Find a property alias that has been changed lately.
  2. Temporarily re-add the original property alias name for any property definitions in Metadata Structure.
  3. Open a Filter Conditions dialog where you got the error dialog.
  4. Open the "Templates" tab from bottom left corner and remove the favorite that uses the property alias.
  5. 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:

https://kb.cloudvault.m-files.com/Default.aspx?#3ECA226F-7B54-428B-B539-DE443E6134EC/object/0A8D789B-4E2B-4649-B1A1-AF0755B0C444/latest

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:

image.png

This issue has been corrected in M-Files Online June '22 update.

Still need help?

On this page