AnsweredAssumed Answered

Help: Filter timesheet records by Resource Name

Question asked by therockrahul on Nov 19, 2011
Latest reply on Nov 28, 2011 by another_martink
Hi,
I want to filter timesheet reocrd by resource name. I am using following Query for XOG. but i am getting following error message. Please help me how to filter timesheet reords based on reosurce name.

XML:
<?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="12.1.1.1208" action="read" objectType="timesheetApproval" externalSource="NIKU"/>
<Query>
<Filter name="resourceDbId" criteria="EQUALS">5008060</Filter>
<Filter name="resourceId" criteria="EQUALS">christinaMartin</Filter>
</Query>
</NikuDataBus>

Error Message:
<?xml version="1.0" encoding="UTF-8"?>
<XOGOutput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/status.xsd">
<Object type="timesheetApproval"/>
<Status 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

Thanks,
Rahul

Outcomes