OWB: Save fails due to Task Object Auto Start Process with error: An error occurred while trying to save your project: com.niku.union.odf.exception.ODFException

Document ID : KB000019776
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

Auto Start Process using custom Boolean attribute on Task object does not allow save from OWB to Clarity.

Steps to Reproduce:

  1. Go to Task object / Properties / Event Enabled: Checked

  2. Create a custom Boolean attribute on Task object

    1. Attribute Name: Custom Attribute

    2. Attribute ID: custom attribute

    3. Description: test Boolean

    4. Populate Null Values with the Default: checked

  3. Create a project with at least one task

  4. Go to Administration / Data Administration / Processes / Click on 'New'

    1. Process Name: CA - Test

    2. Process ID: ca_test

    3. Content Source: Customer

    4. Click on 'Save and Continue'

  5. Click on Objects tab / Click on 'Add Primary Object'

    1. Object Type: Task

    2. Object Key: thisTask

    3. Available for On-demand Start: No

    4. Select thisTask and click on Add Linked Object

    5. Select Parent in Attribute field and enter "thisProject"in Object Key field

    6. Save and Return

  6. Click on Start Options tab

    1. Start Option: Auto-Start

    2. Start Event: Update

    3. Do not start a new process: Checked

    4. Start Condition: (Task custom attribute = 1)

  7. Start --> Finish

  8. Click on Validation tab / Click on 'Validate All and Activate'

  9. Go to Project created in step #3

  10. Click on 'Open in Scheduler' / Workbench [Read-Write]

  11. Project is loaded correctly

  12. Click on 'Save' button in the top without to do any change

  13. Automatically is shown the following message error

Expected Result: the project to save without an error

Actual Result: You get the following error:

"Unable to save project CA Clarity PPM\project_id. An error occurred while trying to save your project: com.niku.union.odf.exception.ODFException: This should not occur. We will only be using ODFObjectImpl instances at this level"

Solution:

WORKAROUND:

  1. Change from 'Auto-Start' to 'On-Demand'

  2. Remove Start Condition

  3. Change Process Status from 'Active' to 'On-Hold' / 'Draft'

  4. Restart the Clarity 'app' services

STATUS/RESOLUTION:

This documented as issue CLRT-72821 and is currently in review with development.

Keywords: CLARITYKB, CLRT-72821, clarity13open, owb, ODFObjectImpl, save, error, com.niku.union.odf.exception.ODFException.