Script Debugger automatically adds pipes if necessary. But I’m not sure whether in your case DEVONthink also added pipes. Please check if the meta data identifier in DEVONthink’s preferences also has pipes.
Yes, removing an entry from the preferences only removes it from the UI. Don’t know whether it’s the only reason but it’s done for cases where users share a database (if the actual data were deleted from the records then it would be deleted for all users).
Not sure I understand. DEVONthink does nothing like that, I think.
If you didn’t delete a given custom meta data from a record but only removed it’s entry in DEVONthink’s preferences then you can always get the data from the record. It’s just not accessible thru the UI anymore.
In your case where a identifier that contains a dot is resulting in an error while adding to a MongoDB database you’ll want to delete this identifier’s custom meta data from all records that you’d like to add to the MongoDB database.
Yes I may do that - That was actually my Plan A. Then I figured a more generalized solution might be nice in case I accidentally added an invalid identifier in the future or in case I eventually share this project with others and they have similar issues in their database.