Hi,
I have a CSV file with around 475 characters. The field in the table PO_NARRATION is varchar2(200).
I want only the 1st 200 characters to be inserted in the table.
While trying to insert the data thru SQL Loader, I get the following error:
>>> Record 1: Rejected - Error on table T_TMP_INVOICE_UPLOAD, column PO_NARRATION.
>>> Field in data file exceeds maximum length
The CTL file given below. What can be the issue?
---------------------------
options (skip=1,errors = 1000,rows = 50000)
Load data
INFILE 'narration_issue.csv'
BADFILE 'narr.bad'
DISCARDFILE 'narr.rej'
DISCARDMAX 1000
append
into table t_tmp_invoice_upload
fields terminated by "," optionally enclosed by '"'
trailing nullcols
(PO_NARRATION "SUBSTR(Ltrim(RtrimPO_NARRATION)),1,200)"
)
---------------------------
TIA,
Raj
I have a CSV file with around 475 characters. The field in the table PO_NARRATION is varchar2(200).
I want only the 1st 200 characters to be inserted in the table.
While trying to insert the data thru SQL Loader, I get the following error:
>>> Record 1: Rejected - Error on table T_TMP_INVOICE_UPLOAD, column PO_NARRATION.
>>> Field in data file exceeds maximum length
The CTL file given below. What can be the issue?
---------------------------
options (skip=1,errors = 1000,rows = 50000)
Load data
INFILE 'narration_issue.csv'
BADFILE 'narr.bad'
DISCARDFILE 'narr.rej'
DISCARDMAX 1000
append
into table t_tmp_invoice_upload
fields terminated by "," optionally enclosed by '"'
trailing nullcols
(PO_NARRATION "SUBSTR(Ltrim(RtrimPO_NARRATION)),1,200)"
)
---------------------------
TIA,
Raj