ArgumentException Error when Saving PowerPoint Document

Running this code:

        byte[] binaryFile = new byte[file.ContentLength];
        file.InputStream.Read(binaryFile, 0, binaryFile.Length);

        var doc = new Presentation(new MemoryStream(binaryFile));

        var ms = new MemoryStream();
        doc.Save(ms, Aspose.Slides.Export.SaveFormat.Pptx);

Gives the error message: An entry with the same key already exists.

I have the same PowerPoint translated into different languages, but it’s only Arabic which doesn’t work, I have been working with many Powerpoints and Aspose before and this error message is unique for me.
Is it something wrong my my code or a bug within Aspose.Slides?

I am using Windows 10, Aspose Slides 21.1, 4.8

Arabic.7z (2.8 MB)

Thank you for the issue description.
I’ve reproduced the problem with saving the presentation and added a ticket with ID SLIDESNET-43021 in our issue tracking system. Our development team will investigate this case. You will be notified when the issue is resolved.

The issues you have found earlier (filed as SLIDESNET-43021) have been fixed in Aspose.Slides for .NET 22.4 (ZIP, MSI).
You can check all fixes on the Release Notes page.
You can also find the latest version of our library on the Product Download page.