Troubleshooting
Problem
Attempts to deploy additional snapshots after initially deploying a process application fail with an error.
Symptom
The following error occurs when you attempt to deploy additional snapshots after initially deploying a process application:
[11/5/12 18:24:25:374 EST] 00000054 wle E CWLLG0395E: An exception
occurred in addTimeSchedule com.lombardisoftware.client.delegate.
BusinessDelegateException: PreparedStatementCallback; SQL [insert into
LSW_TIME_SCHEDULE (SCHEDULE_ID,NAME,EXCLUDE_HOLIDAY) values (?,?,?)];
Error for batch element #1: DB2 SQL Error: SQLCODE=-803,
SQLSTATE=23505, SQLERRMC=2;BPMINST.LSW_TIME_SCHEDULE, DRIVER=3.61.65;
This issue occurs when you use the following code:
var tsName = "8AM-8PM M-F";
var ts = new tw.object.TWTimeSchedule();
ts.name = tsName;
ts.excludeHolidays = false;
.........
var added = tw.system.addTimeSchedule(ts);
if (!added) {
var tmpTs = tw.system.findTimeScheduleByName(tsName);
tw.system.removeTimeSchedule(tmpTs.id);
tw.system.addTimeSchedule(ts);
}
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
28 April 2025
UID
swg21625891