"Too many columns in record" - How to resolve this

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
Shree0410
Participant
Posts: 70
Joined: Tue Nov 29, 2005 7:25 pm

"Too many columns in record" - How to resolve this

Post by Shree0410 »

hi guys:
I have the fiollwoing error when I try to read a file in datastage.

read_delimited() - row 1, too many columns in record

I checked the file layout on the Unix box and it exactly matches the column layout of the Datastage job.

Please advise if this could be for a diff reason.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Whats the delimiter you are specifiying for the file. The data must be containing the delimiter thats why you are getting this kind of warning. Whats the quote character that you have specified?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Shree0410
Participant
Posts: 70
Joined: Tue Nov 29, 2005 7:25 pm

Post by Shree0410 »

Delimiter is pipe and Quote character is 000
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

change the delimiter, its quite possible that the pipe is coming in your data. change it to any strange ascii value.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Dont change the delimiter if the file is delimited as a pipe, That reaquires a lot of work. Change the quote character to ". Dont put 000. See what happens.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ameyvaidya
Charter Member
Charter Member
Posts: 166
Joined: Wed Mar 16, 2005 6:52 am
Location: Mumbai, India

Post by ameyvaidya »

Could you provide some sample lines from the file in question?

I'd include row 1 too (As it is the one mentioned in the error message).
Amey Vaidya<i>
I am rarely happier than when spending an entire day programming my computer to perform automatically a task that it would otherwise take me a good ten seconds to do by hand.</i>
<i>- Douglas Adams</i>
Shree0410
Participant
Posts: 70
Joined: Tue Nov 29, 2005 7:25 pm

Post by Shree0410 »

there is no quote character between columns, so I used 000
kris007
Charter Member
Charter Member
Posts: 1102
Joined: Tue Jan 24, 2006 5:38 pm
Location: Riverside, RI

Post by kris007 »

Did you try using " character as quote character? Give it a shot once.
Kris

Where's the "Any" key?-Homer Simpson
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

cant input data contain pipes? how can you rule out that possibility?
suresh.narasimha
Premium Member
Premium Member
Posts: 81
Joined: Mon Nov 21, 2005 4:17 am
Location: Sydney, Australia
Contact:

This might be the likely solution

Post by suresh.narasimha »

Check for Line Termination option in ur sequential stage whether it is Unix style or DOS style.

Regards,
Suresh N
SURESH NARASIMHA
Shree0410
Participant
Posts: 70
Joined: Tue Nov 29, 2005 7:25 pm

Re: This might be the likely solution

Post by Shree0410 »

Thanks Narasimha, somehow it was defaulted to DOS style, I changed it to Unix style and it worked. :P
oracledba
Premium Member
Premium Member
Posts: 49
Joined: Mon Aug 06, 2012 9:21 am

Re: "Too many columns in record" - How to resolve

Post by oracledba »

Also there is another reason this error could pop up. This happened to me.
When you have a field name in the source file that you forgot to include in the output columns list then the exact same error pops up. :twisted:
Post Reply