title: XPages | Replication Save Conflict
body: <p>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.  </p>
  
  <p>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? </p>