SQL Server: Unable to locate and update an entity

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
qutesanju
Participant
Posts: 373
Joined: Tue Aug 26, 2008 4:52 am

SQL Server: Unable to locate and update an entity

Post by qutesanju »

I m getting one error for the job

Production_Delay_Insert..TransDelay: Unable to locate and update an entity, when an action of Update Only has been specified. Family: 'Invalid Delay' Search Criteria: INVALID_DELAY_MES_DATAB_CHR = '0' AND INVALID_DELAY_MES_SYSTE_CHR = 'P' AND INVALID_DELAY_MES_DELAY_KEY_NBR = '87402029OGDGNM10Mar 28 2008 7:00:00:000AM'.

what does this error say?

[* Note - Title changed to be more descriptive - Andy *]
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

It says there's no key of that combination of values in your target table, therefore there's no such row that can be updated.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
qutesanju
Participant
Posts: 373
Joined: Tue Aug 26, 2008 4:52 am

Post by qutesanju »

but action set at my target table is insert new or update existing so if in case it's corrosponding entity not found while update so it must insert new record?
nikhilanshuman
Participant
Posts: 58
Joined: Tue Nov 17, 2009 3:38 am

Post by nikhilanshuman »

qutesanju wrote:but action set at my target table is insert new or update existing so if in case it's corrosponding entity not found while update so it must insert new record?
but the error message says ... "an action of Update Only has been specified".. !
Nikhil
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Right, check your setting. What database / stage by the way?
-craig

"You can never have too many knives" -- Logan Nine Fingers
qutesanju
Participant
Posts: 373
Joined: Tue Aug 26, 2008 4:52 am

Post by qutesanju »

database is sql server 2005
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Can you cut-and-paste your DataStage update SQL and try to run it in SQL server?
Post Reply