Page 1 of 1

TD MLOAD truncating 11th character of CHAR(11) input -- why?

Posted: Mon Sep 21, 2009 1:29 pm
by lmoose1
A new Teradata MLOAD parallel job loads one column of a table from a dataset -- the column is of type/size CHAR(11). The TD MLOAD job reads the file, but wants to truncate the data by one character. Everything across the board is CHAR(11). No truncation is needed. The data gets loaded, but is wrong -- it is missing the final 11th character.

WE get the same results with a sequential file as input.

Here is the warning I'm getting:
TW_PAVE_SKUS,0: Warning: At row 1, link "SEQL_PAVE_PP_INTO_E1DW_WORK_PAVE_SKUS", while processing column "SKU"
Value "1000BBA4106" truncated to "1000BBA410"

Argh!!! Any ideas?

Posted: Mon Sep 21, 2009 6:00 pm
by ray.wurlod
1. Verify that it really is Char(11), not Char(10). (I have to ask.)
2. Verify that there are no non-printing characters in the data.

Posted: Mon Sep 21, 2009 6:22 pm
by keshav0307
what is the data format? FASTLOAD or VARTEXT?

Posted: Mon Sep 21, 2009 6:27 pm
by chulett
This sounds... familiar. Perhaps a carefully chosen search would turn something up.

unicode seems to have been the culprit

Posted: Tue Sep 22, 2009 10:02 am
by lmoose1
I had turned unicode on in the column metadata info as I was getting an error about type conversion from string to ustring. When I ran it without the unicode setting on the target columns, it loaded correctly without truncation. Guess there's always more to learn about unicode...

FYI: format was FASTLOAD.

Posted: Tue Sep 22, 2009 10:03 am
by lmoose1
Any thoughts on whether FASTLOAD or VARTEXT would make a difference?