My Oracle Support Banner

Error "CalendarObjectId should not be null" When Using the P6 REST API to Load Calendar Details or Calendar Hours (Doc ID 3064419.1)

Last updated on DECEMBER 19, 2024

Applies to:

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

Symptoms

When attempting to read calendar data using the P6 REST API, the following error occurs.

ERROR
-----------------------
400 Request
{
"message": "CalendarObjectId should not be null"
}


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a request for any of the following endpoints using the Swagger documentation as a guide.
    p6ws/restapi/calendar/detailedWorkHours
    p6ws/restapi/calendar/standardDetailedWorkHours
    p6ws/restapi/calendar/standardTotalWorkHours
    p6ws/restapi/calendar/totalWorkHours
    p6ws/restapi//calendar/holidayExceptionDates

2. Set the Filter as ObjectId



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.