NullReferenceException occurred when opening some Excel files

Posted by: yyoshimura on 18 January 2022, 3:54 pm EST

  • Posted 18 January 2022, 3:54 pm EST

    Hi,

    We noticed that when opening some workbooks using the library it will always fail with NullReferenceException. The stack trace is as following. Please refer attachment for reproduction. We are using version V5.0.1 of the library.

    Please help to investigate this issue. Thank you.

    Regards


    at GrapeCity.Documents.Excel.Drawing.ᝌ.ᜀ(᠓ A_0, ៥ A_1)
    at GrapeCity.Documents.Excel.Drawing.ᝌ.ᜀ(᠔ A_0, ៥ A_1)
    at GrapeCity.Documents.Excel.Drawing.ᝌ.ᜀ(ᠢ A_0, ៥ A_1)
    at GrapeCity.Documents.Excel.Drawing.ᝌ.FromOOModel(ឿ t, ៥ cultureProvider)
    at GrapeCity.Documents.Excel.Drawing.ᝎ.ᜀ(ឧ A_0, Boolean A_1, ៥ A_2)
    at GrapeCity.Documents.Excel.Drawing.ᝎ.ᜀ(ឧ A_0, ៥ A_1)
    at GrapeCity.Documents.Excel.Drawing.ᝋ.FromOOModel(ឧ t, ៥ cultureProvider)
    at GrapeCity.Documents.Excel.Drawing.ᜣ.ᜁ(ឮ A_0, ៥ A_1, Boolean A_2)
    at GrapeCity.Documents.Excel.Drawing.ᜣ.FromOOModel(ឹ ooModel, ៥ cultureProvider)
    at GrapeCity.Documents.Excel.Drawing.᝼.ᜁ(᢭ A_0, ៥ A_1, Boolean A_2)
    at GrapeCity.Documents.Excel.Drawing.᝼.FromOOModel(ᢷ anchor, ៥ cultureProvider)
    at GrapeCity.Documents.Excel.Drawing.᜹.ᜀ(ᜊ A_0, ᢷ A_1, ᜣ A_2)
    at GrapeCity.Documents.Excel.Drawing.ព.ᜁ(៥ A_0)
    at GrapeCity.Documents.Excel.ᮯ.᳜()
    at GrapeCity.Documents.Excel.Workbook.AfterOpen()
    at GrapeCity.Documents.Excel.Workbook.OpenInternal(Stream fileStream, String password, OpenOptions openOptions, Boolean isMacroEnabled, Boolean digitalSignatureOnly)
    at GrapeCity.Documents.Excel.Workbook.Open(Stream fileStream, OpenFileFormat fileFormat)
    at GrapeCity.Documents.Excel.Workbook.Open(String fileName, OpenFileFormat fileFormat)
    at GrapeCity.Documents.Excel.Workbook.Open(String fileName)


    gcexcelperformance.zip
  • Replied 19 January 2022, 10:38 pm EST

    Hello,

    Thank you for reporting this issue.
    We too can observe the issue and escalated this to the development team for investigation. We will let you know as soon as we get any update on this from their end.
    [Internal Tracking ID: DOCXLS-5418]

    Regards,
    Prabhat Sharma.
  • Marked as Answer

    Replied 6 March 2022, 6:10 am EST

    Hello,

    Your issue has been in the 5.0.4 release of GcExcel. Please update to the latest version to fix this issue.
    https://www.nuget.org/packages/GrapeCity.Documents.Excel/5.0.4

    Regards,
    Prabhat Sharma.
  • Replied 6 March 2022, 11:57 am EST

    Thank you for your support. We confirmed that the issue is fixed in 5.0.4.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels