Overflow in Excel report when category has more than 32k of docs
By Olli Kämäräinen 1 decade ago
Steps to reproduce.
- Chart configuration:Excel-report type:Columns Stacked.
- X-axis:Category
- 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 :)