Clarity: XOG FATAL [Error] :0:0: attribute "name" has a bad value: the value is not a member of the enumeration.

Document ID : KB000049491
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

We are trying to use a Query Filter in the XOG Resource Object for 'terminationDate' and we get an error message.

Steps to Reproduce:

  1. Create an input XOG Read XML file for obtaining a list of resources with a specific Date of Termination (terminationDate)
    <?xml version="1.0" encoding="UTF-8"?>
    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="../xsd/nikuxog_read.xsd">
    <Header version="13.0.0.7032" action="read" objectType="resource" externalSource="NIKU">
    </Header>
    <Query>
    <Filter name="terminationDate" criteria="EQUALS">2012-05-31</Filter>
    </Query>
    </NikuDataBus>

  2. Perform a XOG read action

  3. Examine the XOG Output
    <?xml version="1.0" encoding="UTF-8"?>
    <XOGOutput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="../xsd/status.xsd">
    <Object type="resource"/>
    <Status elapsedTime="0.0010 seconds" state="FAILURE"/>
    <Statistics failureRecords="0" insertedRecords="0"
    totalNumberOfRecords="0" updatedRecords="0"/>
    <ErrorInformation>
    <Severity>FATAL</Severity>
    <Description>[Error] :0:0: attribute "name" has a bad value: the value is not a member of the enumeration.</Description>
    <Exception type="java.lang.Exception"><![CDATA[java.lang.Exception: Invalid xml data
    at com.niku.xog.service.ObjectHandler.processRequest(ObjectHandler.java:129)
    at com.niku.xog.handler.XOGProcessHandler.postProcess(XOGProcessHandler.java:44)
    at com.niku.xql2.XQLVisitor.postProcess(XQLVisitor.java:1354)
    at com.niku.union.xml.dom.DOMWalker.postProcess(DOMWalker.java:210)
    at com.niku.union.xml.dom.DOMWalker.traverseIntern(DOMWalker.java:94)
    at com.niku.union.xml.dom.DOMWalker.traverseIntern(DOMWalker.java:92)
    at com.niku.union.xml.dom.DOMWalker.traverseIntern(DOMWalker.java:92)
    at com.niku.union.xml.dom.DOMWalker.traverse(DOMWalker.java:36)
    at com.niku.xql2.XQLProcessor.process(XQLProcessor.java:257)
    at com.niku.xql2.XQLProcessor.process(XQLProcessor.java:283)
    at com.niku.xql2.binding.ServiceControlBindingXql.processFile(ServiceControlBindingXql.java:388)
    at com.niku.xql2.binding.ServiceControlBindingXql.getDocument(ServiceControlBindingXql.java:271)
    at com.niku.xql2.binding.ServiceControlBindingXql.processRequest(ServiceControlBindingXql.java:155)
    at com.niku.union.service.ServiceControlImpl.processRequest(ServiceControlImpl.java:749)
    at com.niku.union.service.ServiceControlImpl.processRequest(ServiceControlImpl.java:211)
    at com.niku.union.web.WebServiceAdapter.processRequest(WebServiceAdapter.java:194)
    at com.niku.union.web.PortletController.processServiceRequest(PortletController.java:1393)
    at com.niku.union.web.PortletController.processAuthorizedPortlet(PortletController.java:876)
    at com.niku.union.web.PortletController.processPageActionRequest(PortletController.java:394)
    at com.niku.union.web.PortletController.processRequest(PortletController.java:163)
    at com.niku.union.web.WebActionController.processAction(WebActionController.java:1124)
    at com.niku.union.web.WebActionController.processRequest(WebActionController.java:163)
    at com.ca.clarity.uif.service.vxml.VXMLService.processRequest(VXMLService.java:403)
    at com.ca.clarity.uif.UIServlet.service(UIServlet.java:66)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.niku.union.web.filter.GZIPResponseFilter.doFilter(GZIPResponseFilter.java:130)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at com.niku.union.web.filter.CharsetFilter.doFilter(CharsetFilter.java:56)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:852)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
    at java.lang.Thread.run(Thread.java:619)]]>

Solution:

The attribute is not available for a XOG Read Filter on this object.

The error message is generic. It is not specifying the 'terminationDate' attribute in the error message because this specific attribute is not available as a 'Read Filter' for performing a XOG read action. This error message will occur for any XOG Object attribute that is not available in the 'Read Filter'. For a specific list of available attributes, reference the Clarity XML Open Gateway (XOG) documentation for the version of Clarity you are using.

Keywords: CLARITYKB, how-to, configuration.