Hi together,
- I want to change a object attribute value. The value of this attribute is a reference to another object.
- My Script is working till that line I want to update the Asset
- When executing the script, following error message is thrown:
ValidationInsightException: Validation errors were found: rlabs-insight-attribute-11180: ErrorMessage{i18nKey='rlabs.insight.i18n.constraint.violation.ObjectAttributeValueBean.Invalid.Iql.object', parameters=[C1 (TCG-299383)], additionalMessage=null};
Can anyone support how to solve?
if(objectServerTypeAttribute == 11180){
objectServerAttributeVertraulichkeit_List_referenceId = element_objectServerAttribute.getObjectAttributeValueBeans()
objectServerAttributeVertraulichkeit_List_referenceId.each{
element_ServerVertraulichkeit_ReferenceId ->
objectServerAttributeVertraulichkeit_referenceId = element_ServerVertraulichkeit_ReferenceId.getReferencedObjectBeanId()
if(objectServerAttributeVertraulichkeit_referenceId != objectApplicationAttributeVertraulichkeit_referenceId){
def specificServerObject = Assets.getByKey(objectServer_Key)
specificServerObject.update
{
setAttribute('Vertraulichkeit', objectServerAttributeVertraulichkeit_referenceId)
}
}
}
}