AnsweredAssumed Answered

XOG New Timesheet

Question asked by ovelha on Apr 24, 2013
Latest reply on Apr 26, 2013 by navzjoshi00
Hi

I´m trying to put hour in a timesheet by xog


<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_timeperiod.xsd">
<Header action="write" externalSource="NIKU" objectType="timeperiod" version="13.1.0.0248"/>
<TimePeriods>

<TimePeriod finish="2013-03-11T00:00:00" openForTimeEntry="true" start="2013-03-04T00:00:00">

<TimeSheets>


<TimeSheet ID="-1" action="add" resourceID="alexandre.nakamura" status="0" version="1">


<TimeSheetEntries>



<TimeSheetEntry assignmentEstimate="0" assignmentEstimateForTimePeriod="0" assignmentFinish="2013-03-11T00:00:00"



assignmentPendingEstimate="0" assignmentStart="2013-03-04T00:00:00"



projectID="A20130234" projectName="Alteração de layout Logística CD Goiânia - Projetos de Infraestrutura" taskID="~rmw"



taskName="Alteração de layout Logística CD Goiânia - Projetos de Infraestrutura" totalActuals="1">



<DailyActuals>




<Actual actualDate="2013-03-04" amount="1"/>




<Actual actualDate="2013-03-05" amount="0"/>




<Actual actualDate="2013-03-06" amount="0"/>




<Actual actualDate="2013-03-07" amount="0"/>




<Actual actualDate="2013-03-08" amount="0"/>




<Actual actualDate="2013-03-09" amount="0"/>




<Actual actualDate="2013-03-10" amount="0"/>




</DailyActuals>



</TimeSheetEntry>


</TimeSheetEntries>


<Notes/>


</TimeSheet>

</TimeSheets>

</TimePeriod>
</TimePeriods>
</NikuDataBus>

But i received this error:

<XOGOutput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/status.xsd">
<Severity>FATAL</Severity>
<Description>XOG-2012: Insufficient info for TimeSheetEntry: an entry must have at least a chargeCodeID, an assignmentID or a taskID-projectID pair!</Description>
<Object type="timeperiod"/>
<Status elapsedTime="0.202 seconds" state="SUCCESS"/>
<Statistics failureRecords="0" insertedRecords="1" totalNumberOfRecords="1" updatedRecords="0"/>
<Records/>
</XOGOutput>

Can anyone tell me why this error?


When I put hours to another period by Clarity and use XOG READ i received same XOG Write:

<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_timeperiod.xsd">
<Header action="write" externalSource="NIKU" objectType="timeperiod" version="13.1.0.0248"/>
<TimePeriods>
<TimePeriod finish="2013-03-18T00:00:00" openForTimeEntry="true" start="2013-03-11T00:00:00">
<TimeSheets>
<TimeSheet ID="5006283" lastModified="2013-04-24T17:15:30" resourceID="alexandre.nakamura" status="0" version="3">
<TimeSheetEntries>
<TimeSheetEntry assignmentEstimate="40" assignmentEstimateForTimePeriod="0" assignmentFinish="2013-03-08T17:00:00" assignmentID="5011022"
assignmentPendingEstimate="0" assignmentStart="2013-03-04T08:00:00" internalTaskID="5014001" projectID="A20130234"
projectName="Alteração de layout Logística CD Goiânia - Projetos de Infraestrutura" taskID="~rmw"
taskName="Alteração de layout Logística CD Goiânia - Projetos de Infraestrutura" totalActuals="8">
<DailyActuals>
<Actual actualDate="2013-03-11" amount="8"/>
<Actual actualDate="2013-03-12" amount="0"/>
<Actual actualDate="2013-03-13" amount="0"/>
<Actual actualDate="2013-03-14" amount="0"/>
<Actual actualDate="2013-03-15" amount="0"/>
<Actual actualDate="2013-03-16" amount="0"/>
<Actual actualDate="2013-03-17" amount="0"/>
</DailyActuals>
</TimeSheetEntry>
</TimeSheetEntries>
<Notes/>
</TimeSheet>
</TimeSheets>
</TimePeriod>
</TimePeriods>
<XOGOutput>
<Object type="timeperiod"/>
<Status state="SUCCESS"/>
<Statistics failureRecords="0" insertedRecords="0" totalNumberOfRecords="1" updatedRecords="0"/>
<Records/>
</XOGOutput>
</NikuDataBus>

Attachments

Outcomes