Hello,
I am encountering the java.lang.IllegalStateException: NC sync failed exception when attempting to compare two documents using the aspose words compare method.
I’m using Aspose.Words for Java version 24.2.
Code:
CompareOptions compareOptions = new CompareOptions();
compareOptions.setGranularity(Granularity.WORD_LEVEL);
compareOptions.setIgnoreDmlUniqueId(true);
Document doc1 = new Document(new FileInputStream("C:\\work\\v1_real.docx"));
Document doc2 = new Document(new FileInputStream("C:\\work\\v2_real.docx"));
doc1.compare(doc2, "author", Calendar.getInstance().getTime(), compareOptions);
Files:
v1_real.docx (44.4 KB)
v2_real.docx (30.6 KB)