Hi All,
I am new to Px.I am facing the following problem:
In metadata tehre is 12 fields.In source it is sometimes comimg 11 or 12.When the no of col is 11 then the job is failing.
we r using sequential file stage to read data.
Like ServerJobs is there ny property to set "Missing columns action"?
Pls suggest.
Thanks in advance.
Regards,
rumu
Jobs contain lesser fields than defined in metadata
Moderators: chulett, rschirm, roy
Re: Jobs contain lesser fields than defined in metadata
You can set the Reject Mode option inside the Sequential File stage to "Output" to capture all records that have a mismatch in the defined metadata, in a reject link.rumu wrote: Like ServerJobs is there ny property to set "Missing columns action"?
rumu
If you set this property to "Continue" then the job will simply discard such records and finish to completion.
Aneesh
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Capture the short rows in the reject link as a raw string. Run this through a Column Import stage to parse it into the eleven columns, then through a Column Generator stage to add the twelfth column. Bring both streams together using a Funnel stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 3593
- Joined: Thu Jan 23, 2003 5:25 pm
- Location: Australia, Melbourne
- Contact:
You could also import it as 11 columns and split the 11th and 12th columns in a transformer stage. Not completely sure if this will work!
Certus Solutions
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn
Blog: Tooling Around in the InfoSphere
Twitter: @vmcburney
LinkedIn:Vincent McBurney LinkedIn