# How do I not write to an output port using the REFORMAT node

**URL:** <https://forum.cloverdx.com/t/how-do-i-not-write-to-an-output-port-using-the-reformat-node/454>\
**Category:** CloverDX Platform\
**Created:** [December 8, 2008, 12:00am UTC](https://forum.cloverdx.com/t/how-do-i-not-write-to-an-output-port-using-the-reformat-node/454 "2008-12-08T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stringer](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@stringer](https://forum.cloverdx.com/u/stringer)\
**Post date:** [December 8, 2008, 12:00am UTC](https://forum.cloverdx.com/t/how-do-i-not-write-to-an-output-port-using-the-reformat-node/454/1 "2008-12-08T00:00:00Z")

</div>

Hi,

I’ve got a more complex filter than I can put in the EXT\_FILTER node so I’m using the REFORMAT node instead. However, it seems to copy all records from the input port onto all output ports even if I do something like outputRecords[0].reset();

Is there a way that I can suppress having null records written to the port so that I can avoid having to use a EXT\_FILTER node afterwards to check for nulls?

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:** [December 8, 2008, 12:59pm UTC](https://forum.cloverdx.com/t/how-do-i-not-write-to-an-output-port-using-the-reformat-node/454/2 "2008-12-08T12:59:52Z")

</div>

Hello,  
this feature was introduced in 2.6 version only. From this version, method transform returns integer value, where specific values means:  
RecordTransform.ALL – send the data record(s) to all the output ports  
RecordTransform.SKIP – skip the data record(s)  
\>= 0 – send the data record(s) to a specified output port  
\< -1 – fatal error / user defined
