Overview
Error loading configuration.- TypeError: Unable to get property 'toString' of undefined or null reference
Solution
The most likely cause for this issue is that a SetValue has been set to NULL or null for some property. Since this really can't be the case, the metadata card configuration breaks. We have seen this if you have a value being used that is then removed.
We are going to have to use the Named Value Manager which is a tool that can reach into the configuration of the M-Files Admin
See a link for the tool below
Web: https://kb.cloudvault.m-files.com/Default.aspx?#3ECA226F-7B54-428B-B539-DE443E6134EC/object/0A8D789B-4E2B-4649-B1A1-AF0755B0C444/latest
See settings for tool below. The NameSpace is going to be
M-Files.Core.MetadataCard.Configuration.RuleSets
Your server and vault name will be different, but the Storage Type and Namespace should match what is below.
1. Click the Load button.
2. Click the primary node
3. Click in the right hand side and hit Ctrl+a to select all
4. Copy/paste the entire text to notepad or Notepad++ and make sure to save a copy somewhere just in case.
5. You are looking for a line that looks similar to this
\t\t\t\"SetValue\": [\t\t\t\tnull\t\t\t]
OR
\t\t\t\tnull\t\t\t
6. You want to remove the above line and any following commas to make sure it then reads as valid JSON.
7. You will then click the primary node on the left and click the Delete button
8. You will then click the Add button
9. Rename the New Named Value Key to primary
10. Paste in your fixed JSON on the right and click Save
