AnsweredAssumed Answered

How to XOG out (read) resource using filter for Termination Date attribute

Question asked by akort on Jun 20, 2012
Latest reply on Jun 29, 2012 by StevenJames
We need to be able to do a filter in a XOG XML read file for Resources with a Termination Date before the current date. Using the following code results in an error:

"<?xml version="1.0" encoding="UTF-8"?>
<NikuDataBus xmlns:xsi="" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_read.xsd">

<Header version="6.0.13" action="read" objectType="resource" externalSource="NIKU">

<args name="include_contact" value="true"/>

<args name="include_management" value="true"/>

<args name="include_custom" value="true"/>

<args name="include_financial" value="true"/>



<Filter name="isActive" criteria="EQUALS">true</Filter>

<Filter name="terminationDate" criteria="BEFORE">2012-6-20</Filter>


Testing with only the first query (isActive) works fine, but the second filter for "terminationDate" is apparently invalid. Here is the text of the resulting error file:

<Description>[Error] :0:0: attribute "name" has a bad value: the value is not a member of the enumeration.
<Exception type="java.lang.Exception"><![CDATA[
java.lang.Exception: Invalid xml data

at com.niku.xog.service.ObjectHandler.processRequest(

at com.niku.xog.service.ObjectHandler.process(

at com.niku.xog.service.XOGDispatch.processMessage(

at com.niku.xog.service.XOGSOAPServlet.processMessage(

at com.niku.xog.service.XOGSOAPServlet.doPost(

at javax.servlet.http.HttpServlet.service(

at javax.servlet.http.HttpServlet.service("

What is the correct way to filter on this attribute?