Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home

M-Files: MDCC Added Properties are Not Searchable via Advanced Search

Last updated on 17 March 2025

Metadata Card Configuration

Overview

    Customer has a class. They add/remove properties to the MD card when a certain VL is chosen with MDCC. The problem comes when they then try to SEARCH against those properties to find documents where that VL is empty. Since it's MDCC, when a property is first added to the MD card, it's just visual. It's not in the DB at all, so M-Files will return only partial results. The VL property only gets added to the DB when both of the following happen:

      1. The MDCC adds the VL property to the MD card
      2. A user inputs some values into this VL property

    Then and only then is the property added to the DB and it will show up in Advanced Searches properly.

    This is because metadata card configurations are only for the Client and only visual changes until they are interacted with (some value is set to them). This then pushes a commit back to the database to add these properties to this object in the database.

    Our product dev team has confirmed that this behavior is by design and how it is supposed to function.

    Solution

    There are several solutions to this problem:

    SOLUTION 1 (SUGGESTED)

    Instead of adding properties to the metadata card and removing them when a value is selected from the property that triggers the metadata card configuration, have properties for *all* of the options already set on the class and just hide/reveal the ones according to the selection of the user.

    SOLUTION 2

    To get the value set into the database, a value needs to be set into the properties that are added to the metadata card. For instance, if the property "Contract Num" is added to the metadata card via metadata card configuration rules, a value needs to be added into that property manually, scripting and other automatic tools will not work. Once a value is added (and possibly removed if the property needs to be blank) the property is then added to the database as it should be.

    Still need help?

    On this page