OWB error opening a project: Invalid Value - not in enumerated list
search cancel

OWB error opening a project: Invalid Value - not in enumerated list

book

Article ID: 279329

calendar_today

Updated On:

Products

Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

Users are unable to open some projects in OWB and an error is thrown at opening: Invalid Value - not in enumerated list

The following error can be observed in the OWB Console:
--
ABTError:
ABTAttribute->percent_calc_mode
rangeCheck
Invalid Value - not in enumerated list
Error info:4
New ABTException:Invalid Value - not in enumerated list
Invalid Value - not in enumerated list
com.abtcorp.core.ABTException: Invalid Value - not in enumerated list
    at com.abtcorp.io.repostream.populators.Populator.setPropertyValues(Unknown Source)
    at com.abtcorp.io.repostream.populators.ProjectPopulator.populate(Unknown Source)
    at com.abtcorp.io.repostream.populators.ObjectPopulator.createProject(Unknown Source)
    at com.abtcorp.io.repostream.populators.ObjectPopulator.processDataPackage(Unknown Source)
    at com.abtcorp.io.repostream.populators.ObjectPopulator.populateProject(Unknown Source)
    at com.abtcorp.io.repostream.RepoStreamWorker.populate(Unknown Source)
    at com.abtcorp.io.repostream.RepoStreamWorker.populate(Unknown Source)
    at com.abtcorp.io.repostream.StreamDriver.run(Unknown Source)
    at java.base/java.lang.Thread.run(Unknown Source)
Site: update ChargeCodes property
Site: update ChargeCodes property
back from actual driver call
ABTError:
ABTAttribute->percent_calc_mode
rangeCheck
Invalid Value - not in enumerated list
Error info:4

STEPS TO REPRODUCE:

  1. Login to Clarity
  2. Go to Administration > Data Administration > Lookups
  3. Edit the Percent Compete Calculation Mode (PRJ_PERCENT_CALC_MODE) lookup
  4. Add a new value to the lookup: My custom value (id.4)
  5. Go to a project in Clarity
  6. Add the custom value to the % Complete Calculation method field
  7. Open the project in OWB

Expected results: The project to open in OWB

Actual results: OWB errors out: Invalid Value - not in enumerated list

Cause

The % Complete calculation method field values are also specified on the OWB files and custom lookup values are not expected.

Resolution

  1. Go to the OWB client directory:
  2. C:\Program Files (x86)\Open Workbench\lib
  3. Copy the RuleBase.jar file to your desktop
  4. Rename it to RuleBase.zip
  5. Locate the pmProject_en.xml file
  6. Look at the following section:
  7.  <PropertyData name="percent_calc_mode" caption="% Complete Calculation Method" type="PROP_SHORT" referenceType="" fieldRuleName="PercentComplete" uniqueIndex="false"
                     behaviour="">
                            <ExtendedPropertyData key="PROP_KVISIBLE" valueClass="com.abtcorp.core.ABTBoolean" valueString="true"/>
                            <ExtendedPropertyData key="PROP_KVIRTUAL" valueClass="com.abtcorp.core.ABTBoolean" valueString="false"/>
                            <ExtendedPropertyData key="PROP_KUPDATABLE" valueClass="com.abtcorp.core.ABTBoolean" valueString="true"/>
                            <ExtendedPropertyData key="PROP_KTRANSIENT" valueClass="com.abtcorp.core.ABTBoolean" valueString="false"/>
                            <ExtendedPropertyData key="PROP_KDEFAULTVALUE" valueClass="com.abtcorp.core.ABTShort" valueString="0"/>
                            <ExtendedPropertyData key="PROP_KPOSSIBLEVALUES">
                                    <ExtendedPropertyData key="0" valueClass="com.abtcorp.core.ABTString" valueString="Manual"/>
                                    <ExtendedPropertyData key="1" valueClass="com.abtcorp.core.ABTString" valueString="Effort"/>
                                    <ExtendedPropertyData key="2" valueClass="com.abtcorp.core.ABTString" valueString="Duration"/>
                            </ExtendedPropertyData>
  8. Add the lookup custom value to the same
  9.  <PropertyData name="percent_calc_mode" caption="% Complete Calculation Method" type="PROP_SHORT" referenceType="" fieldRuleName="PercentComplete" uniqueIndex="false"
                     behaviour="">
                            <ExtendedPropertyData key="PROP_KVISIBLE" valueClass="com.abtcorp.core.ABTBoolean" valueString="true"/>
                            <ExtendedPropertyData key="PROP_KVIRTUAL" valueClass="com.abtcorp.core.ABTBoolean" valueString="false"/>
                            <ExtendedPropertyData key="PROP_KUPDATABLE" valueClass="com.abtcorp.core.ABTBoolean" valueString="true"/>
                            <ExtendedPropertyData key="PROP_KTRANSIENT" valueClass="com.abtcorp.core.ABTBoolean" valueString="false"/>
                            <ExtendedPropertyData key="PROP_KDEFAULTVALUE" valueClass="com.abtcorp.core.ABTShort" valueString="0"/>
                            <ExtendedPropertyData key="PROP_KPOSSIBLEVALUES">
                                    <ExtendedPropertyData key="0" valueClass="com.abtcorp.core.ABTString" valueString="Manual"/>
                                    <ExtendedPropertyData key="1" valueClass="com.abtcorp.core.ABTString" valueString="Effort"/>
                                    <ExtendedPropertyData key="2" valueClass="com.abtcorp.core.ABTString" valueString="Duration"/>
                                     <ExtendedPropertyData key="4" valueClass="com.abtcorp.core.ABTString" valueString="My Custom Value"/>
                            </ExtendedPropertyData>
  10. Save the changes to the file, zip folder and set it as RuleBase.jar once again
  11. Replace the original jar with the new one
  12. The projects will now open fine when the custom value is selected for the % Complete Calculation method field