Closed imdadareeph closed 3 years ago
Hi imdadareeph, thanks for your report. Reading the exception, in the final part, it seems that the problem is due to a limit in the maximum length of the value of a cell supported by Apache POI. Below is the relevant portion of the exception you reported to us:
** Caused by: java.lang.IllegalArgumentException: The maximum length of cell contents (text) is 32,767 characters **
at org.apache.poi.xssf.streaming.SXSSFCell.setCellValue (SXSSFCell.java:309)
Can you achieve your goal using only plain Apache POI? If the answer is yes, we'll check more exestensively our code base to overcome the problem
Got the following exception while trying to get data from a table having json values as String.
The code works fine. but throws exception when the data size is more. However, there is no means to truncate the data in java level before putting into excel sheet . I had to improvise my query as dirty fix and then only it work
SELECT SUBSTRING(Request,1,32766) as REQ_PART1,SUBSTRING(Request,32766,62081) as REQ_PART2
Code snipeshot: Select Query:
Code snipeshot:
Build excelsheet:
Exception: