Error 500 / BPM-0522 converting ideas to a project when using XOG or process

book

Article ID: 130518

calendar_today

Updated On:

Products

Clarity PPM SaaS Clarity PPM On Premise

Issue/Introduction

Some ideas are unable to be converted to projects if the idea has a cost plan.

If using a process see an error:

BPM-0522: Internal Process Engine Error. Contact your site administrator (Error executing action).

  • It fails on system action: "Convert Idea to Project".
  • The convert process is done via a script using an admin user with the correct access

If the idea was created using XOG, the error seen is:  

Error 500 - Internal Server Error. The server could not retrieve the document due to server-configuration or other technical problems. Contact your site administrator.

Excerpt of Error seen in logs for this issue:

ERROR 2020-01-09 06:25:00,036 [http-nio-14001-exec-42] service.ODFService (clarity:admin:zzz-zzzzzzz-zzz- zzz - zzzzzzzz:projmgr.projectNewPost) processRequest Exception

Caused by: com.niku.union.service.ServiceException: Service Exception

Cause

This is working as designed. When converting an Idea with a Cost Plan to a Project, a Start Date is required on the Idea.

Error referencing date being issue for cost plan:

Caused by: java.lang.NullPointerException

at com.ca.clarity.financial.planning.copy.TemplatePlanCopyHelper.calculateDateShift(TemplatePlanCopyHelper.java:229)

at com.ca.clarity.financial.planning.copy.IdeaPlanProcessingService.copyPlans(IdeaPlanProcessingService.java:268)

at com.ca.clarity.financial.planning.copy.IdeaPlanProcessingService.copy(IdeaPlanProcessingService.java:131) 

OR

Caused by: com.niku.union.service.ServiceException: Service Exception

  at com.ca.clarity.financial.planning.copy.IdeaPlanProcessingService.copy(IdeaPlanProcessingService.java:151)

  at com.ca.clarity.financial.planning.copy.CopyIdeaPlansHandler.postProcess(CopyIdeaPlansHandler.java:78)

Environment

Release: All Supported Releases
Component: Clarity Processes

Resolution

Add a Start Date on the Idea before converting ideas that have cost plans

If using XOG to create the idea, add a line to the XOG similar to the below to the properties on the <Idea> tag:

start="2020-01-08T00:00:00"