Discrepancy In API Behaviour Of GME_PUB_API.CREATE_BATCH And GME_PUB_API.CANCEL_BATCH. (Doc ID 2249118.1)

Last updated on MARCH 29, 2017

Applies to:

Oracle Process Manufacturing Process Execution - Version 12.2.4 and later
Information in this document applies to any platform.

Symptoms

On : 12.2.4 version, API Issues

There is a discrepancy in API behavior of GME_PUB_API.CREATE_BATCH and GME_PUB_API.CANCEL_BATCH. The cancel batch API throws error if UOM conversion between primary and secondary UOM is not available for one or more of the ingredients. The create batch API however does not check this validation and creates the batch. There should be consistent behavior in batch create and batch cancel APIs in terms of validation of setups. Also, when trying to release a batch for the product then it does not give an error, but when trying to transact the line having the ingredient with missing UOM conversion, a conversion error occurs. When cancelling batch via API, the following error occurs:

ERROR
-----------------------
ORA-01403: no data found
UOM conversion between Kg and LB is not defined


STEPS
-----------------------
The issue can be reproduced at will with the following steps:

1. Create batch using GME_PUB_API.CREATE_BATCH API
2. Cancel same batch using GME_PUB_API.CANCEL_BATCH API

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms