I've been developing in Lotus (IBM) Notes/domino for something like 25 years and I've never come across this before.
The application is Notes client based, using Notes 9.
I open a document (DOC A) , which uses FORM A. From this document, there is a button to create a new document which uses FORM B. This opens in a new window. DOC B is not a response of DOC A, but some (a lot) of LotusScript copies fielse from DOC A to DOC B.
So now we have 3 windows open: The original application, the DOC A doc and the DOC B.
I make edits to DOC B, and save it. I close it, leave DOC A open, and navigate to another view where DOC B can be found.
Interrogate the Document Properties field list to see the field I edited ("InvoiceComments" in my case). Yep, my text is there.
Then I run a script agent which gets DOC B and prints up the content of InvoiceComments. It's blank. Write a Web agent to get same doc ... my text can be found in InvoiceComments.
It's definitely the same document, same UNID etc.
So that is: When looking at Document Properties, fields list, I can see myy edits in the field values. When running a script via Notes Client to get that document (either via UnprocessedDocument or from a view), the field has its 'old' value (blank)
The only clue I have as to what's going on is that if I close the DOC A, then all of a sudden the agent that prints "InvoicComments" value starts to honour what's on the disk (ie, it behaves).
Sounds like a bug in the notes client, but I'm at a loss as to how to get around it because people will want to do the process above.