ARA REST Api - Package Creation with overrides on components

Document ID : KB000124326
Last Modified Date : 25/01/2019
Show Technical Document Details
Issue:
We use the Ara Rest-Api to create Packages with overrides. 
In some cases it is not possible to create a package with overrides on Components 

Use Case: 
Application with more than one Component: 

e.g 
First Component app1 --> Type Tomcat 
Second Component app2 --> Type Tomcat 
 
Rest APi Call: 
POST --> https://<server>/ara/api/data/v1/packages 

Payload: 
{ 
"name": "myFirstPackage", 

"application": { 
"name": "MyApplication" 
}, 
"custom_type": { 
"name": "Deployment" 
}, 
"folder": { 
"name": "PACKAGES_NONPROD" 
}, 

"overrides": { 
"components": { 
"app2" : {} 
} 
} 
} 
The following Error occurs: 
{ 
"code": 100001, 
"error": "The object with Id <someid> cannot be found in property hierarchy.", 
"details": "" 
} 
=======================================================



This error only occurs in some Scenarios. We havent found a rule to understand in which cases this Works or not. 
Environment:
Release.Manager 8.0.1,Release.Manager 9.0.0,Release.Manager 10.0.0 
Cause:
Fix problem not possible to create a package with overrides on Component via REST API
Resolution:
The issue was found and fixed with Release.Manager 9.0.1 in Release Manager. The Package is available for download at the Automic-Support-Zone (https://support.automic.com).
Hotfix-Description: A package with override dynamic property values on a component cannot be created via REST API.
A problem has been fixed where a package containing override dynamic property values on a component could not be created via REST API.I.
The fixes also provided in below version
Release.Manager 8.0.3, Release.Manager 10.0.0, Release.Manager 9.0.1