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 : [email protected] , _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)
Release : 16.0.3
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.
This is reported as DE67587 and is under Engineering review to further research and determine a solution.
This is reproducible in 16.1.1