Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Error while updating a table-723,SQLCODE "23505"

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
Gopal Tripathi

New User


Joined: 16 Sep 2009
Posts: 15
Location: Hyd,Ind

PostPosted: Mon Jul 04, 2011 4:32 pm    Post subject: Error while updating a table-723,SQLCODE "23505"
Reply with quote

Hi,

We are getting below error in one of our application team-


"File: Data MoverSQL error. Stmt #: 0 Error Position: 0 Return: 8601 - [IBM][CLI Driver][DB2] SQL0723N An error occurred in a triggered SQL statement in trigger "D2UHR01.PAYERN_N". Information returned for the error includes SQLCODE "23505", SQLSTATE "PSRA1VRI,000022520E" and message tokens "2". SQLSTATE=09000
(SQLSTAT
Failed SQL stmt:UPDATE D2UHR01.PS_PAY_EARNINGS SET PAY_LINE_STATUS ='F' WHERE PAY_END_DT < '2011-05-15' AND PAY_LINE_STATUS NOT IN ('F','V')"


This is a probable error in one of the triggers of the table due to which the specified row is not getting inserted into the table.

Please help asap.

Thanks,
Gopal
Back to top
View user's profile Send private message

Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1868
Location: UK

PostPosted: Mon Jul 04, 2011 5:24 pm    Post subject:
Reply with quote

1 - we do not do asap: we do as and when
2- you have been a member for almost 2 years, in that time there have been numerous posts telling members NOT to post attachments. If you are concientious about your job you would be reading all posts and you would have taken notice of this.
Back to top
View user's profile Send private message
Gopal Tripathi

New User


Joined: 16 Sep 2009
Posts: 15
Location: Hyd,Ind

PostPosted: Mon Jul 04, 2011 6:33 pm    Post subject: Reply to: Error while updating a table-723,SQLCODE "235
Reply with quote

Hi Nic,

sorry about the error log.

Thanks,
Gopal.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Mon Jul 04, 2011 9:24 pm    Post subject:
Reply with quote

Quote:
-803 AN INSERTED OR UPDATED VALUE IS INVALID BECAUSE THE INDEX IN INDEX
SPACE indexspace-name CONSTRAINS COLUMNS OF THE TABLE SO NO TWO
ROWS CAN CONTAIN DUPLICATE VALUES IN THOSE COLUMNS. RID OF EXISTING
ROW IS X rid

so see which columns are in index PSRA1VRI (probably PAY_LINE_STATUS)
and if you're lucky you can see which row with
Code:
select * from D2UHR01.PS_PAY_EARNINGS  A
where hex(rid(a)) = '000022520E'
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts FUSE - IBM MQ - CICS integration error Kevin Vaz CICS 1 Mon Sep 18, 2017 4:31 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm
No new posts Reply MQ open error Vignesh Sid COBOL Programming 5 Thu Sep 07, 2017 6:02 pm
No new posts Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us