FA: SCM: INV: Rest Api for Updating Item Sub-inventory Not Working as Expected
(Doc ID 2658511.1)
Last updated on JULY 26, 2022
Applies to:
Oracle Fusion Inventory Management Cloud Service - Version 11.13.19.10.0 and laterInformation in this document applies to any platform.
Symptoms
REST API for Updating Item Sub-inventory is not working as expected.
When updating subinventory with wrong organization, REST API allows the update. Same when done from UI throws error saying subinventory value is invalid.
Using the below API for updating the Item Subinventory.
/fscmRestApi/resources/11.13.18.05/subinventories/{subinventoriesUniqID}/child/itemSubinventories/{itemSubinventoriesUniqID}
For ex., Below is the payload used to update:
{"SourceType":"1" ,"SourceOrganizationCode":"<OrgXXX>" , "SourceSubinventory":"<SubinvXXX>" }
This payload should ideally result into error because subinventory SubinvXXX doesn't belong to OrgXXX. Instead the payload response is Success and data is updated successfully in UI too.
STEPS to reproduce the issue:
-----------------------
The issue can be reproduced at will with the following steps:
1. Manage Subinventories and Locators - Manage Item Subinventories
2. Run REST API to update subinventory source type with subinventory which doesn't belong to the organization
3. Check the response
This issue is observed in a specific scenario.
- Let us say, Current Source type = Subinventory, Source Org = Org A, Source Subinventory = Sub A
- Using REST API, update Source Type = Organization, Source Org = B, Source Subinventory = Sub A
> Here subinventory A doesn't belong to Org B
> While updating, subinventory value is not changed and only Source Type and Org is updated - REST API allows to update this even when subinventory doesn't belong to the organization
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |