My Oracle Support Banner

P6 REST API Error "Invalid Value Provided for Field: CommentText" Occurs When Creating an Activity Comment (Doc ID 3041696.1)

Last updated on AUGUST 16, 2024

Applies to:

Primavera P6 Enterprise Project Portfolio Management Cloud Service - Version 22.1 and later
Primavera P6 Enterprise Project Portfolio Management - Version 22.12 to 22.12.15.0 [Release 22.12]
Information in this document applies to any platform.

Symptoms

When attempting to use P6 REST API to add an Activity Comment, the following error occurs.

ERROR
-----------------------
Invalid value provided for field: CommentText


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create a request to create a new activity comment. For example:
{{P6_REST_HOST}}/p6ws/restapi/activityComment
[
  {
  "ActivityObjectId": 476570,
  "CommentText": "test{",
  "UserObjectId": 954,
  "ReadFlag": "true"
  }
]

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.