Conclusion: The problem within CNX is triggered by adding IPTC with PM.
Per,
No the problem is CNX handling legitimate IPTC data that just happened to be originally created by Photo Mechanic. It could be another program inserting IPTC data.
First let me reiterate that this file was written by CNX, and if CNX cannot handle a file it created then that is a problem with CNX.
My pardon if I have not been clear in my writing, this is not my first language. I do realize that the problem is within CNX, when it can't save a file it without complaint has written earlier. I have only stated that PM is triggering this bug, not that there necessarily is any error in the way PM works.
So, DON'T put high-bit ASCII in the (sub)location field (and maybe other fields CNX doesn't recognize)!!!
Brilliant!!
Dennis, we now have a description of what (sometimes, not always) makes CNX trip up. Putting 8-bit ASCII in fields CNX does not recognize is not recommended as of now!
For me, the outcome of this is an easy decision: Keep all IPTC/IPTC4XMP data in the sidecar file until this bug is fixed in CNX, then I can batch-import it all again sometime in the future.
The other thing that ought to be done is make sure Nikon knows of this so they can fix it. I am very new to the Nikon world, and have no idea how they respond to reports of this kind. If they are block-headed, they will just claim: "If you use CNX there is no problem, and we don't publish the internal format of NEF-files, and if third-party applications change a NEF-file, it is their problem".
My view, and yours as I can understand, is that NEF-files are based on public standards, and should follow them!
Dennis or somebody else: If you have a good way of making Nikon listen, please try to do so.
I will try to make this a case here in Sweden.
/Per