Intermittent Error while Exporting PDF - V9

Posted by: sanish.shaji on 31 October 2018, 3:41 am EST

    • Post Options:
    • Link

    Posted 31 October 2018, 3:41 am EST

    Hi,

    We are facing issues intermittently while starting our reporting service usually after deployment.

    Details:

    System.Collections.Generic.KeyNotFoundException

    We have noted that the issue resolves itself if we re-start the service.

    Do we need to upgrade the component ? Is there a fix available ?

    Please help.

  • Posted 31 October 2018, 3:41 am EST

    Stack Trace:

    Stack Trace : at System.ThrowHelper.ThrowKeyNotFoundException()
    at System.Collections.Generic.Dictionary‌2.get_Item(TKey key) at #mqc.#vbl.#Ali(MemoryStream stream, IList‌1 elements)
    at DataDynamics.DDLib.PdfEngine.PsPage.#Zwd()
    at DataDynamics.DDLib.PdfEngine.PsPages.#hxd(PsPage psPage)
    at GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.#Gsd(IFilteredPage page, Graphics graphics, #aqc outputContext, IEnumerable‌1 bookmarks, IDictionary‌2 pagesMap)
    at GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.#7pk(SectionDocument document, Stream stream, String pageRange, Byte[]& xmpMetadata)
    at GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport.Export(SectionDocument document, Stream stream, String pageRange)
    ...
    
  • Posted 31 October 2018, 4:20 am EST

    Following is the first error recorded in log:

    10/31/2018 3:33:26 AM [Information] DiskCache was not properly cleaned up. ‘20181031-033326-0002.tmp’ must be deleted.

    Exception details:

    System.IO.IsolatedStorage.IsolatedStorageException: Unable to delete file.

    at System.IO.IsolatedStorage.IsolatedStorageFile.DeleteFile(String file)

    at GrapeCity.ActiveReports.Document.Section.ResourceStorage.DiskCache

    2.#bUk()    at GrapeCity.ActiveReports.Document.Section.ResourceStorage.DiskCache
    2.Dispose(Boolean disposing)

    It was followed by an IndexOutOfRangeException, ArgumentException and finally System.Collections.Generic.KeyNotFoundException which repeats until service is re-started .

  • Posted 31 October 2018, 5:49 pm EST

    Hello Sanish,

    Could you please check after setting the “CacheToDisk” property of document of section report to false.

    Thanks,

Need extra support?

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

Learn More

Forum Channels