This is all running on a single Linux box, so the UniData and OS are the same. Here is more info I found:
- I deleted all the txt files from JSON.ARCHIVE.
- I ran the program that writes and deletes (old) txt files - no problem. I ran it again - no problem.
- I added a dummy record with the editor.
- I ran the program that writes and deletes txt files - it no longer writes anything!!!
- I delete the dummy record with the editor.
- I ran the program that writes and deletes txt files - now it works!
WHAT???
The same thing happens if I use CNAME to change the ID of an existing txt file.
It was me doing all of this, so all the txt files had me as the owner and the normal permissions.
It is as if: if anything other than the write/delete program updates anything in the file/dir, the program no longer works (but gives no errors that it didn't).