# BufferOverflowException

**URL:** <https://forum.cloverdx.com/t/bufferoverflowexception/2088>\
**Category:** CloverDX Platform\
**Created:** [May 6, 2020, 12:00am UTC](https://forum.cloverdx.com/t/bufferoverflowexception/2088 "2020-05-06T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![av686165](https://avatars.discourse-cdn.com/v4/letter/a/9e8a1a/32.png) [@av686165](https://forum.cloverdx.com/u/av686165)\
**Post date:** [May 6, 2020, 12:00am UTC](https://forum.cloverdx.com/t/bufferoverflowexception/2088/1 "2020-05-06T00:00:00Z")

</div>

Hi ,

I am getting below error while running my graph,  
Component [UniversalDataReader:UNIVERSAL\_DATA\_READER1] finished with status ERROR. (Out0: 0 recs)  
Error when parsing record #1 field deal\_foreign\_ccy  
Realocation of CloverBuffer failed. Requested capacity is 33554434 and maximum capacity is 33554432.  
java.nio.BufferOverflowException

Kindly help.

---

<div class="post-metadata">

**Author:** ![Vladimir\_Barton](https://yyz1.discourse-cdn.com/flex007/user_avatar/forum.cloverdx.com/vladimir_barton/32/167_2.png) [@Vladimir\_Barton](https://forum.cloverdx.com/u/Vladimir_Barton)\
**Post date:** [May 7, 2020, 6:58am UTC](https://forum.cloverdx.com/t/bufferoverflowexception/2088/2 "2020-05-07T06:58:51Z")

</div>

Hello,  
this error message is quite common and is typically caused by one of the following two conditions:

1. An error in the input file  
For instance, a record delimiter or field delimiter is missing in the input file or there is one more delimiter than it should be. This can corrupt the parsing of the next fields and records and can result in loading a huge chunk of data into a single field/record, thus causing the buffer overflow error.  
2. A valid record or field larger than 32 MB  
In this case, it is the actual size of the data being loaded either into a single field or into a single record that exceeds one of the two limits: Record.RECORD\_LIMIT\_SIZE and Record.FIELD\_LIMIT\_SIZE.​ Worth noting is that this problem does not have anything to do with the size of the input file of the UniversalDataReader. In other words, it is not the number of records (rows, if you will) that makes the difference here so breaking the files up into smaller ones would not be a remedy to the root cause.

Overall, increasing the limits is, in fact, an adequate solution. Since the limit has been overflown only by a relatively low amount, it should be sufficient to double both limits. In other words, add the following lines into your [engine properties](https://doc.cloverdx.com/latest/designer/cloverdx-default-settings.html) and restart CloverDX. More information can be found [in our documentation](https://doc.cloverdx.com/latest/designer/edges-memory.html#ftn.edge-memory-demand-fn04).

```auto
Record.RECORD_LIMIT_SIZE = <U+202D>67108864<U+202C> 
Record.FIELD_LIMIT_SIZE = 67108864<U+202C>

```

Best regards,
