My Oracle Support Banner

"System.DivideByZeroException: Attempted to divide by zero" Error Occurs After Setting Scheduled Task Days To Zero (Doc ID 1591961.1)

Last updated on NOVEMBER 26, 2019

Applies to:

Primavera Portfolio Management - Version 9.0SP1 and later
Information in this document applies to any platform.

Symptoms

In OPPM 9.0 SP1, after setting "Import Data" scheduled task to zero, PPM service will not remain in a running status.

ERROR
-----------------------

Could not get task list.
USERID: 2
DEADLOCK DETECTED: False

&ltException&gt
System.DivideByZeroException: Attempted to divide by zero.
  at ProSight.Portfolios.BusinessLogic.Infrastructure.BusinessEntities.Tasks.psTask.calcRunAt()
  at ProSight.Portfolios.BusinessLogic.Infrastructure.BusinessEntities.Tasks.psTask..ctor(IpsDataRow iTaskRow)
  at ProSight.Portfolios.BusinessLogic.Infrastructure.Objects.psTaskObj.getTasksByThreshold(psDateTime iThreshold, psTypedList`1 iTaskTypes)
  at ProSight.Portfolios.BusinessLogic.TS.TransactionalScenario.psTSTask.getTasksByThreshold(Int32 iUserId, psDateTime iThreshold, psTypedList`1 iTaskTypes, psResultContainer oResults)
&lt/Exception&gt


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Launch OPPM Scheduled Task Manager
2. Set interval for scheduled task "Import Data" to zero.
3. Save changes.

BUSINESS IMPACT
-----------------------
The issue has the following business impact:
Due to this issue, prosightservice does not remain in a running status.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.