CA PPM: Time Slicing job appears to be be hanging or stuck in the Processing status

Document ID : KB000046539
Last Modified Date : 06/08/2018
Show Technical Document Details
Issue:

The Time Slicing job in CA Project & Portfolio Management (PPM) is not completing. It is taking too long to process.

Symptoms:
The Time Slicing job is in the indefinite status of "Processing".
The Administration > Data Administration > Time Slices page > "Last Run" column is not being updated for all time slice ids.
 

 

Cause:
One or more of the following could introduce the issue:
  1. PPM SQL trace is enabled per the properties.xml file (traceEnabled="true")
  2. Refreshing from one environment to another
  3. Cancelling a job that is already 'Processing'
  4. Not cleaning up the job scheduler before and after background service starts.
  5. Database and network issues (timeouts,outages,contention
Resolution:

1. Check if the Time Slicing job instance is progressing via the query (This applies to On Premise customers. For SaaS customers, please contact CA Support if assistance is needed to confirm if the time slicing job is stuck):

select '(1)assignment PRASSIGNMENT' slice_object, count(*), slice_status from 
PRASSIGNMENT where slice_status in (1,2,3,4) group by SLICE_STATUS 
union 
select '(2)availability PRJ_RESOURCES' slice_object,count(*), slice_status from
PRJ_RESOURCES where slice_status in (1,2,3,4) group by SLICE_STATUS 
union 
select '(3)allocation PRTEAM' slice_object, count(*), slice_status from
PRTEAM where slice_status in (1,2,3,4) group by SLICE_STATUS 
union
select '(4)timeentries PRTIMEENTRY' slice_object, count(*), slice_status from
PRTIMEENTRY WHERE SLICE_STATUS IN (1,2,3,4) group by SLICE_STATUS

It should be processing at a steady pace depending on the object being sliced.

If there is no movement, perform the next set of steps.

2. Dedicate all system resources to allow the Time Slicing job to process and complete:
a. Set all jobs that are WAITING to PAUSED;

b. Set all jobs that are SCHEDULED to PAUSED;
c. Set all jobs that are in PROCESSING to CANCELLED
d. Make note of the scheduled jobs and scheduled times as they will need to be re-entered later.
e. Delete all CANCELLED job instances
f.  Run an immediate instance of the Time Slicing job to ensure it completes.
g. Re-enter the jobs that were CANCELLED.

If this does not resolve the issue, please open an issue for investigation.
Additional Information:
KB000027011 - How do I completely check the status of the Time Slicing job? How long will it take my Time Slicing job to complete?
https://communities.ca.com/message/241813795#241813795 - CA PPM Tech Tip: Prevent Job Scheduler Stalls