search cancel

REST API - PATCH - Financial attributes cannot be modified

book

Article ID: 190394

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

  • Unable to modify financial attributes when Cost Plans or Budget Plans exist and Last Updated Date is sent in the Payload
  • Updating a Project using REST API PATCH method fails when there is a cost plan present on the project and last updated date is sent in the Payload

 

STEPS TO REPRODUCE: 
1.      Login to Clarity.
2.      Create a Project.
3.      Associate with Department OBS and Organization OBS.
4.      Note the internal ID of project.
5.      Use Patch REST API Method to update the Project Name with the below Body.

PATCH http://pppmserver.com/ppm/rest/v1/projects/5003004
BODY :- {“name”: ”Test Project Patch”,”lastupdatedate”: "2020-05-08T12:30:21"}

6.      Request is successful and Project Name is changed in Clarity.
7.      Create a Cost plan on the same project.
8.      Use REST API to PATCH the same project again using 

PATCH http://pppmserver.com/ppm/rest/v1/projects/5003004
BODY :- {“name”: ”Test Project Patch 1”,”lastupdatedate”: "2020-05-08T12:30:21"}


Expected Results :- Patch Operation should be successful.
Actual Results :- Patch Operation fails with the below error.
{
    "resourceId": "5003004",
    "httpStatus": "400",
   "errorMessage": "Financial attributes cannot be modified when Cost Plans or Budget Plans exist.",
    "errorCode": "revmgr.cannotModifySimpleBudgetFields"
}

Environment

Release : 15.7.1, 15.8

Resolution

This is DE54937, fixed in Clarity 15.8.1