# DATA\_READER, dataPolicy, and fixed width files

**URL:** <https://forum.cloverdx.com/t/data-reader-datapolicy-and-fixed-width-files/657>\
**Category:** CloverDX Platform\
**Created:** [January 29, 2010, 12:00am UTC](https://forum.cloverdx.com/t/data-reader-datapolicy-and-fixed-width-files/657 "2010-01-29T00:00:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anweston](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@anweston](https://forum.cloverdx.com/u/anweston)\
**Post date:** [January 29, 2010, 12:00am UTC](https://forum.cloverdx.com/t/data-reader-datapolicy-and-fixed-width-files/657/1 "2010-01-29T00:00:00Z")

</div>

Heya,

I am doing some testing where I read in a fixed width file where the last “row” is too short. I expected the last row to get sent to the log port (when dataPolicy is “Controlled”) or cause an error (when dataPolicy is “Strict”). Instead, the graph executes, records the good rows, and acts like the last bit of data never existed - no record of data going to the logging port with “Controlled” mode, no halt of the graph in “Strict” mode. Am I doing something wrong? Or is this correct behaviour?

I am using clover 2.8.0.

My data is:

```auto

001JOE SMITH 12/30/2009 1.56002MARY JONES 11/13/2009 22.74003CARRIE COOKE478.30

```

with a FMT of:

```auto

<?xml version="1.0" encoding="UTF-8"?>
<Record name="RECORD_true_fixed_sample_missing_data_txt_" type="fixed">
   <Field name="FIELD_true_fixed_sample_missing_data_txt_CLOVER_ROW_NUM" type="numeric" nullable="false" size="10" auto_filling="source_row_count" />
   <Field name="FIELD_true_fixed_sample_missing_data_txt_pcl" type="string" nullable="true" size="3" />
   <Field name="FIELD_true_fixed_sample_missing_data_txt_name" type="string" nullable="true" size="20" />
   <Field name="FIELD_true_fixed_sample_missing_data_txt_date" type="string" nullable="true" size="10" />
   <Field name="FIELD_true_fixed_sample_missing_data_txt_amount" type="string" nullable="true" size="15" />
</Record>

```

My result is 2 rows to port 0 (and nothing to port 1 with a dataPolicy of “Controlled”):

```auto

[2010-01-29 15:09:58,348] INFO - INPUT_0 FINISHED_OK
[2010-01-29 15:09:58,348] INFO - %cpu:.. Out:0 2 0 0 0
[2010-01-29 15:09:58,349] INFO - Out:1 0 0 0 0

```

This should be a rare case for me, but it seemed odd…

Thanks,  
Anna

---

<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:** [February 1, 2010, 9:23am UTC](https://forum.cloverdx.com/t/data-reader-datapolicy-and-fixed-width-files/657/2 "2010-02-01T09:23:43Z")

</div>

Hello Anna,  
it’s really not proper behavior :-(. I’ve reported it to our bug tracking system ([http://bug.cloveretl.com/view.php?id=3672](http://bug.cloveretl.com/view.php?id=3672)).
