Defect HC-8906
Promotion Activation fails when using a REST call
Software
Customer case | Applies to | Corrected in |
---|---|---|
CS0190424 | V8.0.4.24 | 8.0.4.27 |
Observed behavior
When promotions are loaded via API, then externally activated via API, a Null Pointer exception is raised and the promotion is not activated. This does not happen when using Management Center to activate the promotion.
Expected behavior
The promotion should successfully activate using either approach: Management Center or directly via API and there should be no exceptions in the logs.
Resolution
The componentid was not being set correctly when activation was being performed from external API calls, which led to the Null Pointer exception. The logic was updated to set the componentid directly in the query for the promotion and promotion description, avoiding the raising of the Null Pointer exception.