CostPlan population errors in both Classic and MUX if a required field exists on the Cost Plan Detail object and the attribute does not have a default value set
STEPS TO REPRODUCE:
1. Go to Administration > Studio > Objects > Cost Plan detail object
2. Create a string type attribute called Cost Center
3. Make the attribute required and do not give a default value
4. In Classic UI, Create a project, Add a team member, Create a Task and an Assignment
5. Go to the Financial Plans and create a Cost Plan
6. Go to the Cost plan details tab > Actions
Run: Populate from Investment Team
Run: Populate from Task Assignments
Actual results: You get an Error 500 - Internal Server Error
7. Perform the same actions in the Modern UX > Go to the Project Financials tab and click on:
Populate from Allocations
Populate from Assignments
Actual results: Error while Populating Cost Plan from Allocations / Error while Populating Cost Plan from Assignments
This is due to having a required field that does not have a default value
To avoid the error, if an attribute is marked as required, set a default value on it.
Log files currently reflect the reason of the error:
ERROR 2021-10-01 00:22:24,990 [http-nio-1593-exec-1579] ppm.rest (clarity:admin:5318237__EDA94C63-FBD1-4A40-9604-28215ABC6622:PPM_REST_API) CostPlanPopulationFunctionResource :: Problem occurred while populating Cost Plan : 5004014com.niku.union.service.ServiceException: Exception in ResourcePlanProcessingService: com.niku.union.odf.exception.ODFValidationException: CMN-0007: Attribute 'ccenter' is required.