• Overflow in Excel report when category has more than 32k of docs

    By Olli Kämäräinen 1 decade ago

    Steps to reproduce.

    1. Chart configuration:Excel-report type:Columns Stacked.
    2. X-axis:Category
    3. Y-axis:Count per document



      Collection had 150 k of documents and one category had more than 32k of documents.



      I ran code with debugger and found following way to fix this issue.

      There was still arraycount-variable declared as Integer in virtualTable class. Script is located in Chart-Sublibrary. I changed arrayCount to Long and report ran fine.

      I haven't tested if change breaks any other reports so use it at your own risk :)
    • Thank you - you are a legend Olli!

      By David Jeyachandran 1 decade ago

      Really appreciate your help! You have not only found the bug but fixed.



      Kind Regards

      David