Modern Project Staff Replacement Error API-1004
search cancel

Modern Project Staff Replacement Error API-1004

book

Article ID: 255158

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

When replacing a resource on the Project > Staff page, the error is received:
API-1004:  Invalid resource identifier

Steps To Reproduce:

1. Go to Modern Project > Staff page
2. Replace a team member.
3. Update any field, e.g. Request Status

Updating any other field on the allocation (prteam) record after doing the replacement brings up the error.

Expected Result: No error should appear.

Actual Result: Error appears: API-1004: Invalid resource identifier


APP logs show:

ERROR 2022-11-28 12:03:57,470 [https-jsse-nio2-8443-exec-6] rest.validation (clarity:user:session:PPM_REST_API) ODFResourceProvider :: Could not create resource. Object code alias: [ requestUrl: https://server/ppm/rest/v1/projects/5153027/teams?tsvParams=%28workEffortUnit%3Dhours%29 , _restResourceName : teams , _id : null , _parentInfo : com.ca.ppm.rest.RequestContext$ParentInfo@40a51a9 , _apiVersion : v1 , _includeLinksArray : true , _contextId : 5089146 , _hierarchyId : -1]

ERROR 2022-11-28 12:03:57,470 [https-jsse-nio2-8443-exec-6] rest.validation (clarity:user:session:PPM_REST_API) ExceptionInfo ::  Could not create resource. Resource name: teams. Error code: projmgr.TEAM_TO_REPLACE_NOT_FOUND Error message: The allocation to be replaced was not found.


Workaround: Refresh the current page or navigate to another module and come back to update the field(Request Status)

Environment

Release : 16.0.3

Cause

DE67587.  The Modern is trying to reference a removed team member from the original 'prteam' record and not the new record created from doing the replacement action. 

Resolution

This is NOT Reproducible in 16.1.2