Skip to content

Commit 7efdb20

Browse files
authored
Update README.adoc
Include a FAQ section for commonly asked questions. Closes: #97
1 parent 8a276f9 commit 7efdb20

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

spring-batch-excel/README.adoc

+13
Original file line numberDiff line numberDiff line change
@@ -124,3 +124,16 @@ Uses a `BeanWrapper` to convert a given row into an object. Uses the column name
124124
</property>
125125
</bean>
126126
----
127+
128+
== Frequently Asked Questions
129+
130+
=== Not able to open large Excel
131+
When opening large Excel files or Excel files with large amounts of data in a single cell it might fail with an error
132+
133+
```
134+
"Unexpected error Tried to allocate an array of length 162,386,364, but the maximum length for this record type is 100,000,000. If the file is not corrupt or large, please open an issue on bugzilla to request increasing the maximum allowable size for this record type. As a temporary workaround, consider setting a higher override value with IOUtils.setByteArrayMaxOverride()"
135+
```
136+
137+
This is due to the maximum lenght for certain datatypes is limited. To prevent this from happening you can use the `IOUtils.setByteArrayMaxOverride()` method to increase the allowed size. It is however important that this is set before anything POI related has been processed/configured.
138+
139+
Ideally, when using Spring Boot, you can set this before launching the application or by putting this in a `static {}` initializer block of the Spring Batch job configuration.

0 commit comments

Comments
 (0)