My Oracle Support Banner

When Using the P6 REST API to Delete Data the Error "Either ObjectId is not set or is empty" Occurs (Doc ID 3047189.1)

Last updated on SEPTEMBER 16, 2024

Applies to:

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

Symptoms

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

ERROR
-----------------------
400 Bad Request

Either ObjectId is not set or is empty.


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a request to DELETE a Lean task.
METHOD: DELETE

URL: <HOST>/p6ws/restapi/leanTask

BODY:
[{
  "ObjectId":"23"
}]



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.