Clarity: XOG Write action fails for Percent Attribute Configured with Zero Decimal Places

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

Description:

When a user-defined percent type attribute is configured with zero decimal places, the Clarity XML Open Gateway (XOG) write action fails with the generated error message:

com.niku.union.odf.exception.ODFValidationException: Validation failure. Attribute: pct. Cause: data_type

Steps to Reproduce:

  1. Login to Clarity as an administrator user
  2. Administration > Studio: Objects > Select any Stock or Custom Object
  3. Attributes > Create a New Attribute (Data Type = Percent) > Set Decimal Places = 0
  4. Views > Configure the attribute on a property page
  5. Home > Create some data on instances of the object with a value for the percent attribute
  6. Perform a XOG read action to generate a XOG output file for the object instance data
  7. Modify the XOG XML output file to create a new instance record
  8. Perform a XOG write action to create a new instance record with the XOG XML file.
  9. View the XOG XML output file for success or error messages

Expected Result: The XOG write action should be successful

Actual Result: The XOG write action is not successful, the action failed with the error message: com.niku.union.odf.exception.ODFValidationException: Validation failure. Attribute: pct. Cause: data_type

Solution:

WORKAROUND:
Change the configuration of the Percent Attribute Decimal places from zero (0) to two (2) in the Studio: Object > Attribute properties page.

STATUS/RESOLUTION:
Resolved in Clarity 13.0.1
Resolved in Clarity 13.1.0

Keywords: CLARITYKB, CLRT-25250, clarity13resolved, studio.