dgudipudi

XOG read not returning correct xml

Discussion created by dgudipudi on Oct 12, 2010
Latest reply on Oct 12, 2010 by dgudipudi
Hi,

I have a problem when reading out a xog xml from the xog client.

Input 1:
<?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="8.0" action="read" objectType="contentPack" externalSource="NIKU">
</Header>
<ObjectQuery>
<Filter name="object_code" criteria="EQUALS">change</Filter>
</ObjectQuery>
</NikuDataBus>

Input 2:
<?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="8.0" action="read" objectType="contentPack" externalSource="NIKU">
</Header>
<ObjectQuery>
<Filter name="object_code" criteria="EQUALS">some_custom_object</Filter>
</ObjectQuery>
</NikuDataBus>

The 2 outputs of the xog does not return the correct object specified in the object code, they keep returning some other custom object. However, if I read a custom lookup using Input 3, I get the lookup object returned. Has anyone encountered such a problem? Anyone knows how to resolve this?

Input 3:
<?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="8.0" action="read" objectType="contentPack" externalSource="NIKU">
<!-- the contentType is used to determine which filter goes where -->
<args contentType="job_definition" name="order_by_1" value="code"/>
<args contentType="menu" name="order_by_1" value="code"/>
<args contentType="view" name="order_by_1" value="code"/>
<args contentType="process" name="order_by_1" value="code"/>
<args contentType="object" name="order_by_1" value="code"/>
</Header>
<LookupQuery>
<!-- Dynamic Lookup -->
<Filter name="code" criteria="EQUALS">MER_PROJECT_CODE</Filter>
</LookupQuery>
</NikuDataBus>

Outcomes