I am not sure about this. Could you share a test perl script, ddl and mload script?
My first guess would be that all lines need to end with a \n.
But your last line doesn't.
So might be worth to write always "line\n"
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles
can you share the mload log?
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles
can you share the perl code as well?
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles
And pease just try once to add a \n at the last line as well...
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles
"Attempted to access out of range input data in field 'IN_TACTIC_ID'"
Is IN_TACTIC_ID the first column in the file?
Do you have unicode chars in your file? or additional \n within the fields?
So, without sharing the DDL, the file and mload script it remains a lot of guessing.
And:
did you ever try it with a \n at the end of each line?
I attached a very simple test.
test1 loads a file with 6 rows - each has a \n at the end.
test1 succeed.
test2 loads a file with 6 rows - the last one has no \n at the end
test2 is loading only 5 rows.
check the logs...
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles
unformat is likely to create the issue.
check
http://forums.teradata.com/forum/tools/mload-vartext-format
Freds last statement
"UNFORMAT expects no record delimiter; if there is one you can define it as FILLER so it is ignored."
So you can either add a filler with char(1) - at the end or you switch to TEXT
And don't forget to have a \n IN EACH ROW!
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles
Option 1:
remove the \n from all rows and use UNFORMAT
Option 2:
add the \n to ALL rows - in your last LOG you can see the impact of Once missing \n - and use TEXT
Option 3:
add the \n to ALL rows - in your last LOG you can see the impact of Once missing \n - and use UNFORMAT and add a Fille CHAR(1) at the end of the layout definition.
In all three options you need to change your load file!
Der Beginn aller Wissenschaften ist das Erstaunen, dass die Dinge sind, wie sie sind.-Aristoteles

Hi All,
I am creating a text file using perl script and then using that txt file for MLOAD.
While writing the first record, I am writing the line as it is. Aftre that I am writing as"\nline" (so that the new record will start from new line).
During MLOAD, it is assuming one record extra and giving error that Field not found.
I am not finding any special character (new line,EOF etc) at the end of the records.
Can you please let me know how to handle this situation.
Thanks,
Terankit