warnings: No row was found for FETCH, UPDATE or DELETE

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
sreddy
Participant
Posts: 144
Joined: Sun Oct 21, 2007 9:13 am

warnings: No row was found for FETCH, UPDATE or DELETE

Post by sreddy »

Hi

I have a job that is delete the records in the target table.

I am deleting two column records.

Table Name -- It is a Primary Key
Table SRKey -- It is a index key.

When i ran the job it is through warning.
No row was found for FETCH, UPDATE or DELETE; or the result of a query is an empty table. SQLSTATE=02000
What is the problem, any one can send the information.
miwinter
Participant
Posts: 396
Joined: Thu Jun 22, 2006 7:00 am
Location: England, UK

Post by miwinter »

Is that warning returned from the target table (i.e. where you are deleting)? It speaks for itself - it tells you that no rows matched the criterion given.
Mark Winter
<i>Nothing appeases a troubled mind more than <b>good</b> music</i>
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Best to pre-qualify your work with a lookup so you don't tell it to update or delete non-existent records. This is DB2, is it not?
-craig

"You can never have too many knives" -- Logan Nine Fingers
sreddy
Participant
Posts: 144
Joined: Sun Oct 21, 2007 9:13 am

Post by sreddy »

Thank you Hulett

My Target database is DB2.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Thought that one would nag you like that. For better or for worse, Oracle doesn't care.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply