Instance Creation Fails for Decimal Whole-Number Money Values Higher Than 10000000
search cancel

Instance Creation Fails for Decimal Whole-Number Money Values Higher Than 10000000

book

Article ID: 449178

calendar_today

Updated On:

Products

Clarity FedRAMP Clarity PPM On Premise Clarity PPM SaaS

Issue/Introduction

The REST API throws an Error 500 when entering decimals with value equal 0 to a money attribute for number above 10,000,000 (e.g.: 9999999.00 works, 10000000 works, 10000000.00 fails).

Steps to Reproduce:

  1. Create a suboject of the project object (e.g.: z_my_subproject) and API enable it.
  2. Create a Money attribute for this subobject (e.g.: z_my_money, EUR currency) and API enable it.
  3. Create a new instance of this subobject using a POST REST API request:
    POST http://example.com/ppm/rest/v1/projects/<ProjectID>/custZMySubobjects
    Body:
    {
        "code": "1",
        "name": "my_instance",
        "z_my_money": {
            "amount": 10000000.00,
            "currency": "EUR"
        }
    }

Expected Results: Returns 200 OK, a new my_subobject instance is created.

Actual Results: Returns 500 Error:
{
  "resourceId": null,
  "httpStatus": "500",
  "errorMessage": "An exception occurred while trying to update an object instance z_my_subproject",
  "errorCode": "api.internalError"
}

Other amounts and expected results:

  • 100000.00 works
  • 11000000 works
  • 9999999.0000000000 works
  • 10000000.2000000000 works
  • 11000000.0 fails
  • 11000000.000 fails
  • 11000000.0000 fails
  • 11000000.0000000000 fails
  • 10000000.0000000000 fails

Environment

Clarity 16.3.3-16.4.2

Cause

DE209538

Resolution

This issue is fixed in Clarity 16.5.0.