Document comparison crashes when document contains specific field code

Hello!

We have a document that includes a field code. When compared with a similar version of the same document, the comparison crashes.
117.docx (13.3 KB)
217.docx (13.3 KB)

The problems seems to have something to do with the paragraph break within the field code. If the paragraph break is removed, the comparison works fine.

Comparing the documents produces the following exception:

Unhandled exception. ☻♥: Error occurred while converting document.
   at ►§.☻(List`1 ☻, CompareOptions, ☻♥§ ♣, ☻↨§ ♠, Int32 ♥)
   at ♣§↓.☻(Int32 ☻)
   at ♣§↓.☻()
   at ♣§↓.GetStream()
   at GroupDocs.Comparison.Comparer.Compare(Stream document, SaveOptions saveOptions, CompareOptions compareOptions)

This code was run with GroupDocs.Comparison 24.7.0 in a .NET 6.0 console application on a Windows 11 machine:

using var comparer = new Comparer(loadPath1);
comparer.Add(loadPath2);
comparer.Compare(outputPath);

When comparing the documents with the online tool we get the following error:

Error
Something went wrong
Server is not available

I suppose this is because of the same crash

@lars.olsson

Hello

we have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): COMPARISONNET-4086

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@lars.olsson
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): COMPARISONNET-4086

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

1 Like