I have a document data source defined in a xPage and I am calling a java class when a file upload control is changed. The java class compresses the image uploaded via the file upload control, then attaches it to the Notes Document. When I click the save button on the xPage (custom javascript, set to save the datasource) it creates a replication or save conflict.
I'm assuming this conflict is being created because I'm saving the data source in SSJS and the document in java. Is there any trick to prevent the save conflict?
concurrencyMode="force"
in your data source? You have to check if the Java/SSJS changes are saved to the document, but in most cases this solves the problems with these conflicts. – Sven Hasselbach