Page 1 of 1

Warning:Short input record

Posted: Mon Oct 27, 2008 2:35 pm
by peddidsx
Hi All,
I am using a schema file and RCP enabled to read the data from a sequential file.
My Schema file struncture looks as follows:
record
{final_delim=end, delim='\t', quote=none}
(
ID:nullable int32 {default='NULL'};
NAME:nullable string[]{null_field='',prefix=2};
END:nullable int32 {default='NULL'};
)


i/p file:
ID NAME END
1 XXX 0
2 YYY 0
3 ZZZ 0
4 AAA 0
5 BBB 0


When i run the job all the records are getting rejected with the following warning:
Sequential_File_24,0: Short input record
.
I searched the forums,but could not figure it out.Could you please advise?

Posted: Mon Oct 27, 2008 5:26 pm
by neena
I saw a note in PDF saying, If you have defined columns on the Columns tab, make sure these match the schema file. Could you please recheck this.

Posted: Mon Oct 27, 2008 6:18 pm
by peddidsx
neena wrote:I saw a note in PDF saying, If you have defined columns on the Columns tab, make sure these match the schema file. Could you please recheck this.
I have'nt defined any columns on the columns tab,just enabled RCP in the seq. file.

Posted: Tue Oct 28, 2008 6:12 am
by ArndW
are you certain that your separators are actually "TAB"s and not "SPACE"s?

Posted: Tue Oct 28, 2008 7:30 am
by peddidsx
Yes Andrw.I am pretty much sure that they are TAB'S.

Posted: Tue Oct 28, 2008 7:35 am
by chulett
You need to be more than 'pretty sure', you need to be certain. What does the file look like if you open it in 'vi', type a colon and then "set list"?

Posted: Tue Oct 28, 2008 8:28 am
by peddidsx
chulett wrote:You need to be more than 'pretty sure', you need to be certain. What does the file look like if you open it in 'vi', type a colon and then "set list"?
Chulett,
I am certain that they are TAB's.The file looks like:
ID^INAME^IEND$

1^IRAJESH^I0$

2^INARESH^I0$

3^IRON^I0$

4^ISRINI^I0$

5^IVIVEK^I0$


when i set list on the file.

Posted: Tue Oct 28, 2008 8:31 am
by chulett
There ya go.

Posted: Tue Oct 28, 2008 8:47 am
by peddidsx
chulett wrote:There ya go.
Chulett,
I did not get you.Could you please elaborate?

Posted: Tue Oct 28, 2008 8:50 am
by chulett
All I meant was - there ya go, now you know they are tabs. Scratch that off your list of "things that may be wrong".

Posted: Tue Oct 28, 2008 9:37 am
by ray.wurlod
I wonder whether END might be a reserved word? Can you try it with a different field name?

Posted: Tue Oct 28, 2008 10:07 am
by peddidsx
ray.wurlod wrote:I wonder whether END might be a reserved word? Can you try it with a different field name?
Ray,
I tried with a different filed name,but still the same warning.
Schema file:
record
{final_delim=end, delim='\t', quote=none}
(
ID:nullable int32 {default=NULL};
NAME:nullable string[]{null_field='',prefix=2};
EMPLOYEE:nullable int32 {default=NULL};
)

Posted: Tue Nov 18, 2008 3:08 pm
by dnsjain
Try removing "prefix=2" from the schema file and run again. I was getting the same error and did that and it is working.

Dinesh

Posted: Mon Nov 24, 2008 2:30 pm
by peddidsx
dnsjain wrote:Try removing "prefix=2" from the schema file and run again. I was getting the same error and did that and it is working.

Dinesh

Thanks Dinesh.It was working fine when i removed prefix=2