My Oracle Support Banner

When Using the P6 REST API to Update Activity Start and Finish Dates the Duration Is Not Recalculated (Doc ID 3075029.1)

Last updated on MARCH 10, 2025

Applies to:

Primavera P6 Enterprise Project Portfolio Management Cloud Service - Version 24.1 and later
Primavera P6 Enterprise Project Portfolio Management - Version 24.12 and later
Information in this document applies to any platform.

Symptoms

When attempting to change the dates on activities that are Not Started or In Progress the duration is not recalculated. The StartDate and FinishDate are sent in the request and it is expected that the duration will be recalculated. The request completes without error and the start date is updated correctly, but the finish date and duration are not updated correctly.

STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create the following request to update the start and finish dates on an activity that has 10 days duration, a start date of Sept 20th and a finish date of Sept 29th.

PUT {{P6_REST_HOST}}/p6ws/restapi/activity
[
  {
  "FinishDate": "2024-09-29T17:00:00",
  "ObjectId": "3357734",
  "StartDate": "2024-09-23T08:00:00"
  }
]

2. In P6 the activity has a new start date of 2024-09-29T17:00:00, however, the finish date is updated to 2024-10-02T17:00:00. The duration is still 10.

3. Run a similar request using PlannedStartDate and PlannedFinishDate.


PUT {{P6_REST_HOST}}/p6ws/restapi/activity
[
  {
  "PlannedFinishDate": "2024-09-29T17:00:00",
  "ObjectId": "117732",
  "PlannedStartDate": "2024-09-23T08:00:00"
  }
]

4. In P6 the activity has been updated correctly. It has a new start date of 2024-09-29T17:00:00, a finish date of 2024-09-29T17:00:00 and the duration has been recalculated as 7.

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
References


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