Quantcast
Viewing all articles
Browse latest Browse all 92

prim16911:Exception error when creating a calendar

Solution ID: prim16911
Exception error when creating a calendar
Status: Reviewed
Version(s): 3.x, 4.0, 4.1, 5.0



Problem:

When creating any type of calendar, the following error occurs:


 *****************************************************


* EXCEPTION REPORT *


*****************************************************


Date: 27-Oct-04


Executable: PM.exe


Application: Primavera Project Management


Event Code: VTFRN-0683-B


Message:


TCVirtualTable.FindRowNewIndex: Adding row


(CALENDAR – Calendar: 4078 – ZOU YANPING


.) conflicts with existing unique key: (XXXX).


Context:


1: TCArcturusAssignMgr.AssignAndAddNewRowToVDBE


2: TCArcturusAssignMgr.InsertClndrRow


3: TfrmBaseCalendar.cmdAddClick


4: TfrmMain.actConfigureCalendarsExecute


5: TfrmMain.actConfigureResourcesExecute


6: TfrmMain.actReportsReportsExecute


7: TfrmMain.actProjectsExecute


8:


9:


10:


Detail:


Type: Exception


Object Type: TCUltraButton


Components


==========


ORI: ORI Win32 #


ORI/DB: PMDB,0410.0001.0001.0002


IMG: IMG Win32 #1000

Cause: The next calendar incremental number in the NEXTKEY table is lower than the highest calendar ID in the calendar table.
Fix:

Run the following queries against the database:


select max(clndr_id) from calendar;


select key_seq_num from nextkey where key_name=’calendar_clndr_id’;


You will see that the first query returns a number that is higher than the second query. Run the following query to correct this.


NOTE: Replace XXXX to be a higher value than the first query returned.


update nextkey set key_seq_num=XXXX where key_name=’calendar_clndr_id’;


Viewing all articles
Browse latest Browse all 92

Trending Articles