Does this customer has issues with wrong PDFs (from another company/contact) attached while sending emails via maintenance "create open invoice customer statement".
It sounds very similar to that.
Try to debug FormLinkDocumentFileNames().
Hi, Paul.
Sounds like you're talking about REST API. And that your are overwriting data with older values if B managed to read record before A finished to update it. Classic conflict resolution ...