Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


SQL Loader -Field in data file exceeds max length

SQL Loader -Field in data file exceeds max length

SQL Loader -Field in data file exceeds max length

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'

into table t_tmp_invoice_upload
fields terminated by "," optionally enclosed by '"'
trailing nullcols


RE: SQL Loader -Field in data file exceeds max length


Could manage it by using the below script.

(PO_NARRATION char(2000) "SUBSTR(Ltrim(Rtrim(:PO_NARRATION)),1,200)")

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close