Rare exceptions when extracting office files

Hello,

These are a few exceptions we observed when extracting office files:


System.FormatException: The input string ‘3%’ was not in a correct format (xlsx files)

   at System.Number.ThrowFormatException[TChar](ReadOnlySpan`1 value)\r\n   at \u0005\u0015\u0019\u000F.\u0005\u0019(String \u0002)\r\n   at \u0006\u0017\u0015\u000F.\u000F\u0019(\u0003\u0018\u0003\u0019 \u0002, \u000F\u0015\u0017\u000F \u0008)\r\n   at \u0006\u0017\u0015\u000F.\u000E\u0019(\u0003\u0018\u0003\u0019 \u0002, \u000F\u0015\u0017\u000F \u0008)\r\n   at \u0006\u0017\u0015\u000F.\u0008\u0016(\u0003\u0018\u0003\u0019 \u0002, \u000F\u0015\u0017\u000F \u0008)\r\n   at \u0006\u0017\u0015\u000F.\u0005\u001B(\u0003\u0018\u0003\u0019 \u0002, Int32 \u0008, Boolean \u0005)\r\n   at \u0006\u0017\u0015\u000F.\u0005\u0005(Boolean \u0002)\r\n   at \u0008\u0016\u0005\u000F.\u000E\u0010(\u0008\u0016\u0017\u000F \u0002, String \u0008, Boolean \u0005)\r\n   at \u0008\u0016\u0005\u000F.\u0006\u0002(\u0008\u0016\u0017\u000F \u0002)\r\n   at \u0008\u0016\u0005\u000F.\u0006\u0019()\r\n   at \u0008\u0016\u0005\u000F.\u000F()\r\n   at \u0008\u0019\u0019\u000F.\u0002(Workbook \u0002, LoadOptions \u0008, Boolean \u0005)\r\n   at \u0003\u000F\u001A.\u0006\u0005(Stream \u0002)\r\n   at \u0003\u000F\u001A.\u0002\u000F(String \u0002, Stream \u0008, LoadOptions \u0005)\r\n   at \u000F\u000F\u001B.\u0002(Stream \u0002, LoadOptions \u0008)\r\n   at \u0005\u000F\u001B.\u000F\u0010\u001A\u0003\u0016\u0002()\r\n   at GroupDocs.Parser.Parser.GetMetadata()\r\n   at \u0008\u001B\u001B.\u0002(Document \u0002, \u0003\u0018\u001B \u0008, String \u0005)

System.ArgumentException: gosid (.one file)


at \u0002\u001B\u0018`1.\u0008(\u0003\u0003\u000F\u0002 \u0002)

at \u000E\u001A\u0005\u0002.\u000F\u0010\u0005\u0002\u0016\u0016\u0002(\u000E\u001A\u0018 \u0002)

at \u0003\u001A\u0005\u0002.\u000F\u0010\u0005\u0002\u0016\u0016\u0002(\u000E\u001A\u0018 \u0002)

at \u000F\u001B\u0018.\u0002(\u0005\u0016\u000F\u0002 \u0002)

at \u000F\u001B\u0018.\u0002(Stream \u0002, String \u0003)

at Aspose.Note.Document.\u0002(Stream \u0002, LoadOptions \u0003)

at \u000F\u0016\u0005.\u0002(Stream \u0002, LoadOptions \u0003)

at \u000E\u0016\u0005.\u0002()

at \u000E\u0016\u0005.\u0008\u0017\u0003\u0017\u0005\u0017\u0015\u0002(Nullable`1 \u0002, TextOptions \u0003)

at GroupDocs.Parser.Parser.GetText(TextOptions options)

at \u0003\u0016\u000F.\u0002(Document \u0002, \u0006\u001A\u000F \u0003, String \u0005)

GroupDocs.Parser.Exceptions.GroupDocsParserException: Object reference not set to an instance of an object (pptx file)


at \u0006\u0018\u0003.\u0002(Stream \u0002, LoadOptions \u0008)

at \u000F\u0003\u0003.\u0002()

at \u000F\u0003\u0003.\u000F\u0010\u001A\u0003\u0016\u0002(Nullable`1 \u0002, TextOptions \u0008)

at GroupDocs.Parser.Parser.GetText(TextOptions options)

at \u0008\u001B\u001B.\u0002(Document \u0002, \u0003\u0018\u001B \u0008, String \u0005)

The given key ‘72d5009f-f615-0616-0d7b-3e7f5b3c2530, 1’ was not present in the dictionary (.one file)


at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

at \u0002\u0010\u0002\u0002`2.\u0008(\u0002 \u0002)

at \u0003\u0018\u0017.\u0002()

at \u0003\u0018\u0017.\u0002\u0015\u0017\u0016\u0016\u0002()

at \u0008\u0015\u0017.\u0002()

at \u0008\u0015\u0017.\u0002\u0015\u0017\u0016\u0016\u0002()

at \u0003\u001B\u0019.\u0002(Stream \u0002, Document \u0003, LoadOptions \u0005)

at Aspose.Note.Document.\u0002(Stream \u0002, LoadOptions \u0003)

at Aspose.Note.Document..ctor(Stream inStream, LoadOptions loadOptions)

at \u0006\u0010\u0003.\u0002(Stream \u0002, LoadOptions \u0008)

at \u0005\u0010\u0003.\u0002()

at \u0005\u0010\u0003.\u000F\u0010\u001A\u0003\u0016\u0002(Nullable`1 \u0002, TextOptions \u0008)

at GroupDocs.Parser.Parser.GetText(TextOptions options)

at \u0008\u001B\u001B.\u0002(Document \u0002, \u0003\u0018\u001B \u0008, String \u0005)

@jamsharp

I’m sorry for the delayed response, may you please attach sample files and share what version of GroupDocs.Search you’re using?

We are using the latest version 25.11.0.

They occurred with files from one of our customers, so I cannot provide them right now, but I asked them whether they could send them to us. Not sure, whether they will do that, because they might contain sensitive information. We hoped, that the call stacks can give hints what the problem might be.

@jamsharp

Having the source files would help us to locate the issues faster but, we’ll try reproducing this issues with our sample files.

1 Like