Hello dears,
I'm trying to write timesheets but not getting the expected response: "XOG-2015: This timesheet can not be saved because it has since been updated by another user. Save your changes in a new file, then retrieve the same timesheet again and re-enter your time."
I'm now stack on this message, I tryed many solutions but not working. Can somebody have a look on my query and tell me the wrong ?
I tryed direct XOG, and SOAPUI, but same result, timesheet not updated
---------------------REQUEST----------------------
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:obj="http://www.niku.com/xog/Object">
<soapenv:Header>
<obj:Auth>
<obj:Username>MyLogin</obj:Username>
<obj:Password>MyPasswrd</obj:Password>
</obj:Auth>
</soapenv:Header>
<soapenv:Body>
<obj:WriteTimeperiod>
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_timeperiod.xsd">
<Header version="14.4.0.234" action="write" objectType="timeperiod" externalSource="NIKU"/>
<TimePeriods>
<TimePeriod finish="2017-01-01T00:00:00" openForTimeEntry="true" start="2016-12-26T00:00:00">
<TimeSheets>
<TimeSheet ID="5392003" lastModified="2017-01-05T13:57:48" resourceID="MyResID" action="replace" status="0" version="5">
<TimeSheetEntries>
<TimeSheetEntry assignmentEstimate="0" assignmentEstimateForTimePeriod="0" assignmentFinish="2016-12-23T17:00:00" assignmentID="5187053" assignmentPendingEstimate="0" assignmentStart="2015-11-18T08:00:00" chargeCodeID="Billable-FixedP" chargeCodeName="Facturable-Forfait" internalTaskID="5108117" projectID="Reporting" projectName="Reporting" roleID="CONS" taskName="Rapports 2015-11" totalActuals="24" typeCodeID="HSTD" typeCodeName="Heures Standards">
<DailyActuals>
<Actual actualDate="2016-12-26" amount="8"/>
<Actual actualDate="2016-12-27" amount="8"/>
<Actual actualDate="2016-12-28" amount="8"/>
<Actual actualDate="2016-12-29" amount="0"/>
<Actual actualDate="2016-12-30" amount="0"/>
<Actual actualDate="2016-12-31" amount="0"/>
</DailyActuals>
</TimeSheetEntry>
</TimeSheetEntries>
</TimeSheet>
</TimeSheets>
</TimePeriod>
</TimePeriods>
</NikuDataBus>
</obj:WriteTimeperiod>
</soapenv:Body>
</soapenv:Envelope>
------------------------------------ RESPONSE ----------------------
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header/>
<soapenv:Body>
<SessionID xmlns="http://www.niku.com/xog">9938240__DEA9963C-F73C-483A-8428-176A61A6B53C</SessionID>
<WriteTimeperiodResponse xmlns="http://www.niku.com/xog/Object">
<XOGOutput xsi:noNamespaceSchemaLocation="../xsd/status.xsd">
<Severity>FATAL</Severity>
<Description>XOG-2015: This timesheet can not be saved because it has since been updated by another user. Save your changes in a new file, then retrieve the same timesheet again and re-enter your time.</Description>
<Object type="timeperiod"/>
<Status elapsedTime="0.013 seconds" state="SUCCESS"/>
<Statistics failureRecords="0" insertedRecords="1" totalNumberOfRecords="1" updatedRecords="0"/>
<Records/>
<DeprecationInformation>
<Severity>WARNING</Severity>
<Description>DEPRECATION MESSAGE</Description>
<Exception type="java.lang.Exception">The action and objectType attributes in the Header have been deprecated.</Exception>
</DeprecationInformation>
</XOGOutput>
</WriteTimeperiodResponse>
</soapenv:Body>
</soapenv:Envelope>
Thanks for your help,
@mos