The short version of my question is: Will I create problems with S/R, project history, or some other operation of the FW database if I manually edit the file “FlexProject.CustomProperties” in my project folder in order to fix a custom field name?
I realize there’s probably a better way to fix this or some other consequences I’m not aware of, so here are a few more details:
I’ve been trying to add my FW database as a data source for a Phonology Assistant (3.5.4) project. When PA tries to load the data it crashes to the green error report dialogue. I’ve suspected that this may be related to a problematic custom field name that has persisted somewhere in the database even though I have changed it through the Custom Fields interface.
One of the clues that makes me think the custom field name is the culprit is a warning that pops up every time I launch an export function: immediately after choosing “Export” from the File menu I’m shown a warning box titled “Punctuation in custom field name” with the message “The custom field name “CustomField-Sense” includes punctuation characters. This may cause export to fail or make the exported file difficult for other programs to use. We recommend that you rename your custom filed and then do the export again.”
I don’t remember ever having made a custom field with that name, but it’s not unlikely that I could have done so for experimenting with something and then changed its name later. In any case, none of my custom fields, as they are currently displayed in the interface accessed through Tools > Configure > Custom Fields, currently have that name.
When I ran the FlexTools “Database Information” report module against my project it reported the same custom field names that the FW interface displays. Running the “Find and fix errors…” utility in FW didn’t offer any clues, either. I was able to track down the offending field, though, by performing a “Full Lexicon” Lift XML export of the project and then importing the Lift file into a new blank project. In the new project, the Custom Fields interface displays one of the custom field names as “CustomField-Sense” instead of the name “Descriptive Definition” that I had changed it to in the original project.
I found that one of the <CustomField> elements in the project’s FLExProject.CustomProperties file includes a “label” attribute with the value “Descriptive Definition” (corresponding to what is displayed in the FW interface), but a “name” attribute with the value “CustomField-Sense”. None of the other <CustomField> elements contain a “label” attribute; all their “name” attributes correspond to what is displayed in the FW interface.
Can I safely manually remove the “label” attribute from the offending element in that file and replace the value of its “name” attribute with the correct contents?
Thanks,
Bruce
Sent from Mail for Windows 10
On 8/26/2016 1:56 PM, bruce_...@sil.org wrote:
The short version of my question is: Will I create problems with S/R, project history, or some other operation of the FW database if I manually edit the file “FlexProject.CustomProperties” in my project folder in order to fix a custom field name?
Can I safely manually remove the “label” attribute from the offending element in that file and replace the value of its “name” attribute with the correct contents?
Hi Bruce,
You shouldn’t edit this file, but edit the project.fwdata file directly. The custom fields are listed near the top of the file. so should be easy to find. It is a good idea to backup this file before you change it in case something goes wrong. Also don’t try to change it if FLEx is open.
Ann
--
You are subscribed to the publicly accessible group "FLEx list".
Only members can post but anyone can view messages on the website.
---
You received this message because you are subscribed to the Google Groups "FLEx list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flex-list+...@googlegroups.com.
To post to this group, send email to flex...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/flex-list/57c0acee.021f9d0a.251c2.6c0c%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.