Process BPM-0543 error "'Subject' is too large. Maximum size is 128"
search cancel

Process BPM-0543 error "'Subject' is too large. Maximum size is 128"

book

Article ID: 38574

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

Process fails with error "BPM-0543: An error occurred when sending the action item. Contact your site administrator. 'Subject' is too large. Maximum size is 128" when the action item subject built by Clarity contains more than 128 characters

Steps to Reproduce:

  1. Create a process based on the project object or any other object
  2. On the start step add a manual action item where the subject contains variables as description and name
  3. Create a post condition of 1=2 so the process stops and then link it to the next step, the finish step
  4. Validate and activate the process
  5. Create a project with a quite a long name and a long description too, so together they make more than 128 characters
  6. Start the process and wait until the action item has been sent

Expected result: The action item is sent and the process is on a running status

Actual result: The action item gets sent and the process errors out with BPM-0543

On the bg-ca.log file you will encounter this error:

BPM-0543: An error occurred when sending the action item. Contact your site administrator. 'Subject' is too large. Maximum size is 128.

com.niku.union.odf.exception.ODFValidationException: 'Subject' is too large. Maximum size is 128.
at com.niku.odf.object.AttributeImpl.validateStringLength(AttributeImpl.java:1868)
at com.niku.odf.object.AttributeImpl.validate(AttributeImpl.java:1773)
at com.niku.odf.object.ObjectInstanceImpl.setValue(ObjectInstanceImpl.java:1807)
at com.niku.calendar.service.ActionItemService.createActionItem(ActionItemService.java:241)
at com.niku.calendar.service.ActionItemService.createActionItem(ActionItemService.java:96)
at com.niku.bpm.services.ExecuteManualAction.sendActionItem(ExecuteManualAction.java:433)
at com.niku.bpm.services.ExecuteManualAction.execute(ExecuteManualAction.java:96)
at com.niku.bpm.services.ProcessEngine.executeStepAction(ProcessEngine.java:149)
at com.niku.bpm.engine.rules.ActionExecutionPipeline.processActions(ActionExecutionPipeline.java:141)
at com.niku.bpm.engine.rules.ActionExecutionPipeline.execute(ActionExecutionPipeline.java:71)
at com.niku.bpm.engine.rules.Pipeline.run(Pipeline.java:280)

Environment

Release: 15.3 and higher
Component: Clarity Process Management

Cause

Before 14.3 there was no proper validation for the string type attributes. In 14.3 validation code has been added for string type attributes hence it is giving the ODFValidationException

Resolution

This was analyzed by sustaining Engineering as part of CLRT-79876

This is working as designed after additional validation has been introduced.

The one option would be to reduce the characters in the fields.