Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 1825
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 Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm
No new posts DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us