API-1019 error on Staffing grid or Project Staff module when adding a Staff member
search cancel

API-1019 error on Staffing grid or Project Staff module when adding a Staff member

book

Article ID: 403387

calendar_today

Updated On:

Products

Clarity PPM On Premise

Issue/Introduction

In Clarity 16.3.0 and 16.3.1 an  API-1019 error can be seen on the following scenarios:

Project Staff module:

  1. Add an OBS field linked to the resource object that has got a default value set into the Project Staff grid
  2. Try to add a Staff member using the Quick Create (+ icon)

Staffing Workspace:

  1. Add the Resource Work Status or Investment Manager to the Staffing Workspace - Staff grid
  2. Try to add a Staff member

You can see the following error:

API-1019 : Could not process the request due to internal error.

Logs show error similar to: 

Caused by: java.util.ConcurrentModificationException
	at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1597)
	at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1620)
	at com.ca.ppm.object.association.OBAUtils.cleanupRequest(OBAUtils.java:2815)
	at com.ca.clarity.projmgr.rest.provider.OBAStaffResourceProvider.doPreCreate(OBAStaffResourceProvider.java:68)
	at com.ca.platform.osf.object.rest.provider.ODFResourceProvider.createEntity(ODFResourceProvider.java:994)

Environment

Clarity 16.3.0 and 16.3.1

Cause

This defect was fixed through DE169047

Resolution

This is fixed in Clarity 16.3.2

Workaround: Remove the offending columns from the grid view