reject at 0 record

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
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

reject at 0 record

Post by samsuf2002 »

Hi All i am running a parallel job on LINUX my input is sequential file iam getting this warnings

Sequential_File_266,0: Field "ACTIVITY_MAPPING_ID" has import error and no default value; data: {I D}, at offset: 0

Sequential_File_266,0: Import warning at record 0

Sequential_File_266,0: Import unsuccessful at record 0.

but there is no records rejected

thanx in avvance
hi sam here
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi,

Check the data type for the field ACTIVITY_MAPPING_ID.
It is complaining that, the data 'ID' is not accepted for the given data type.
May be a Header line.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Does this field 'ACTIVITY_MAPPING_ID' have any NULL values?

sam
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Import errors are row #0 are typically caused by neglecting to set the First Line is Column Names property to True.

The raw form of the "data" - here { I D } - helps to confirm that this is the case. Clearly "ID" can not be an integer.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
vsi
Premium Member
Premium Member
Posts: 507
Joined: Wed Mar 15, 2006 1:44 pm

Post by vsi »

check the data types
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

thanks for the reply , there are no null values for ket ACTIVITY_MAPPING_ID. My file structure is

ID|ACTIVITYID|MAPPEDACTIVITYID|MODIFIEDBY|LASTMODIFIEDAT
1651|15|-4101||
1652|15|-4007||
1653|15|-4001||
1654|15|-4110||
1077|402|-4107||
-14002|-4102|-4006||

for field ID i am giving name as ACTIVITY_MAPPING_ID since it is a key , data types are same as per source .first 3 are integer , modifiedby is varchar and lastmodifiedat is timestamp. If i change int to varchar for first 3 fields it is giving warning for Lastmodifiedat field.
Ray i am using first line is a column name still iam getting those warnings

thanks
hi sam here
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Are you having any spaces or empty values in that field? What warning message are you getting after changing that field to varchar?

Sam
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

No spaces i am getting the same warning for next fields if i make it as varchar, i think it it taking the header as a records and rejecting it since ID cant be integer but i am using first line as a column name.
hi sam here
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

But are you setting the First Line is Column Names property (on the Stage tab Properties) to True? I suspect not, as noted earlier.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
samsuf2002
Premium Member
Premium Member
Posts: 397
Joined: Wed Apr 12, 2006 2:28 pm
Location: Tennesse

Post by samsuf2002 »

Problem solved , i redesigned the job again and reimported the metadata .

Thanks to all
hi sam here
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What did you do differently?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Mat01
Premium Member
Premium Member
Posts: 50
Joined: Wed Jun 02, 2004 11:12 am
Location: Montreal, Canada

Post by Mat01 »

Hi all,

We encountered the same problem recently after upgrading from v7.5A to 7.5.2 on AIX.

It seems that even if you have set the property "First Line is Column Names" to "True" you will receive a warning for the first line if you are using the file with a lookup stage and there is more that one lookup input. Splitting the lookup stage so you have one stage per input file will make the warning disappear...

It is probably a bug but it might help you save some time.

Mat
Post Reply