My Oracle Support Banner

23B Release: Add Or Remove Of Child Asset From Parent Asset Via REST API Fails With Error (Doc ID 2950196.1)

Last updated on OCTOBER 12, 2023

Applies to:

Oracle Maintenance Cloud Service - Version 11.13.23.04.0 to 11.13.23.04.0 [Release 1.0]
Information in this document applies to any platform.

Symptoms

 In 23B, While trying to add or remove a child asset from parent asset via REST API by passing parent asset id (ParentAssetId) attribute along with the structure action code (StructureActionCode: ORA_ADD / ORA_REMOVE) in payload the request fails with below error

Error :

Attribute ParentAssetId in view object InstalledBaseAssets cannot be set.

Steps To Reproduce

1. Create a parent asset via API

2. Get the parent asset id

3. Create a child asset by passing the parameter ParentAssetId in the payload. 

Example

Service  : fscmRestApi/resources/version/installedBaseAssets

Payload :

{
"AssetNumber":"TEST_CHILD_ASSET_01",
"Description": "TEST_CHILD_ASSET_01",
"ItemNumber":"CHILD_ASSET_ITEM",
"ParentAssetId":<>,
"StructureActionCode":"ORA_ADD",
"Quantity":1,
"UOMCode":"Ea",
"OperatingOrganizationCode":"MNT ORG",
"CurrentLocationContextCode":"ORA_UNKNOWN",
"MaintainableFlag":"Y"
}

4. Payload fails with above error

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

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.