# Rejected / Error Record in Reformat

**URL:** <https://forum.cloverdx.com/t/rejected-error-record-in-reformat/674>\
**Category:** CloverDX Platform\
**Created:** [March 9, 2010, 12:00am UTC](https://forum.cloverdx.com/t/rejected-error-record-in-reformat/674 "2010-03-09T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mkutti](https://avatars.discourse-cdn.com/v4/letter/m/a88e4f/32.png) [@mkutti](https://forum.cloverdx.com/u/mkutti)\
**Post date:** [March 9, 2010, 12:00am UTC](https://forum.cloverdx.com/t/rejected-error-record-in-reformat/674/1 "2010-03-09T00:00:00Z")

</div>

Reformat component is failing on a particular record and the graph fails. Is there a way to capture the bad record in Reformat ? Console error msg is not useful - states Record 0 and field name 0 is failing in the transformation due to ArrayOutOfBounds error. It does not show the correct record # or actual bad data to locate it. Thanks…

---

<div class="post-metadata">

**Author:** ![avackova](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@avackova](https://forum.cloverdx.com/u/avackova)\
**Post date:** [March 9, 2010, 7:54am UTC](https://forum.cloverdx.com/t/rejected-error-record-in-reformat/674/2 "2010-03-09T07:54:37Z")

</div>

Hello,  
if you don’t know what is causing the problem, it is not possible to capture bad data. Try to print out (_print\_err_ or _print\_log_ ctl functions) record counter and incoming data. Then you will be able to detect where there is the problem.  
Or, if your transformation function is written in java, you can surround the body of the function with the _try-catch_ clause. Then, in catch part, you can return an error code and set message to the message from error. Thees messages can be sent to error log (see _errorActions_ and _errorLog_ attributes of [Reformat](http://wiki.clovergui.net/doku.php?id=components:transformers#reformat)).
