API-1019 error when adding Staff Using Quick Create + button
search cancel

API-1019 error when adding Staff Using Quick Create + button

book

Article ID: 393789

calendar_today

Updated On:

Products

Clarity PPM SaaS

Issue/Introduction

If there is a boolean field on the resource object, with a default set, and this attribute is present in the grid view, adding staff to a project using the + sign (quick create), it causes API-1019 : Could not process the request due to internal error.

Steps to Reproduce

  1. In Studio, on the Resource object, select Open for Time Entry field and make the Default Value a checkbox (for yes)
  2. Make sure you have a value in the Display Mappings for the Checkbox and save the update.
  3. In MUX open a project and go to the Staff Module.
  4. Add the Resource Open for Time Entry column to you view
  5. Use the + sign and add a resource. Choose a resource.

Expected Result: The resource is added

Actual Result: API-1019 : Could not process the request due to internal error and resource is not added.

Note: On the resource object there are 3 OOTB boolean attributes; Open for Time Entry, Active, External.

Any of these will cause the same error

Environment

Clarity 16.3.0, 16.3.1

Cause

This is caused by DE169047

Resolution

This is fixed in Clarity 16.3.2

Workaround:  Remove the column from your view or use the Add Staff button instead.

Additional Information

app-ca.log files shows the following error:

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)