Can''t update custom attribute

book

Article ID: 191968

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management - Usage and Administration DX NetOps

Issue/Introduction

Having a problem in a lab instance of PM to update a custom attribute.

PUT http://xx.xx.xx.xx:8581/rest/devices/customattributes/x8x8x9

BODY:

<DeviceCustomAttributes version="1.0.0">

<Custom_1>XXXX</Custom_3>

</DeviceCustomAttributes>


ERROR:   400 - 

<WebServiceException>

    <LocalizedMessage>The web service request failed because the XML provided in the request’s body did not conform to the defined schema (see the documentation at ‘devices/customattributes/documentation’ for access to the schema definitions).The specific error was: "Error on line 2: The element type "Custom_1" must be terminated by the matching end-tag "

    </Custom_1>".".

</LocalizedMessage>

</WebServiceException>

Cause

The path of the custom attribute file is incorrect

Environment

Release : 3.7

Component : IM Reporting / Admin / Configuration

Resolution

Problem was the path for the Custom Attributes was wrong:

/ca/pm/da/IMDataAggregator/data/custom/certifications/extensions/attributes vs /ca/pm/da/IMDataAggregator/data/certifications/extensions/attributes

Moving the CustAttr*.xml files to the second path fixed the problem.