SAP Knowledge Base Article - Public

1712515 - Failed to store custom resource: WilyHostAgentTemplate.xml

Symptom

Uploading customised WilyHostAgentTemplate.xml file fails with error:

Failed to store custom resource: WilyHostAgentTemplate.xml (detail: The resource
'tc~smd~agent~application~wilyhost|WilyHostAgentTemplate.xml' does not conform
to the rules specified by the 'WilyHost.xsd'schema.)

In the Default trace (not in the Diagnostics Agent UI) of the Diagnostics Agent:

{0}#1#com.sap.smd.server.manager.SMDCheckException: The resource 'tc~smd~agent~application~wilyhost|WilyHostAgentTemplate.xml' does not conform to the rules specified by the 'WilyHost.xsd' schema.

Caused by: org.xml.sax.SAXParseException: Validation error: line: 189; col: 12; @{}:name : Node is declared to be with simple type. It's value 'CIMmetrics' does not match to any of the enumeration facets.

 

Environment

  • SAP Solution Manager 7.1
  • SAP Solution Manager 7.2

Cause

  • When uploading the WilyHostAgentTemplate.xml it is validated against the schema WilyHost.xsd before its stored in the SMD repository and published to agents
  • The WilyHost.xsd was customised and the customisation prevents the change
    Customised WilyHost.jpg
  • There is a mistake in the modified WilyHostAgentTemplate.xml

Resolution


Please note that the blow solution will remove the customisation of the WilyHost.xsd on a global level. Make sure to save the customised WilyHost.xsd if you want to keep it

  1. Logon to Solution Manager
  2. Navigate to Agent Administration -> Application Configuration
  3. In the left tree select com.sap.smd.agent.application.wilyhost
  4. Select the Scope Global
  5. Click "Edit"
  6. Remove the customisation
  7. Now the modified WilyHostAgentTemplate.xml should upload to the Diagnostics Agent
  8. Save
  9. Restart the Diagnostics Agent

Keywords

KBA , SV-SMG-DIA-WLY-HST , Host Adapter , Problem

Product

SAP Business ByDesign all versions

Attachments

metric.limit.per.action.png