Clarity

  • 1.  XOG in Timesheet data

    Posted Jun 26, 2013 05:05 AM
    I want to import adjusted timesheets in ClarityV13. We are managing timesheets in another system and we are importing monthly timesheets in Clarity at the end of the month. However, I also need to adjust timesheets of previous months. These adjusted timesheets should be created through XOG. So, I used the following XML to import the timesheet.


    This file gives me an error saying

    FATAL 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

    Can you guys give any suggestions?

    Thanks in advance,


  • 2.  RE: XOG in Timesheet data

    Posted Jun 26, 2013 05:21 AM
    , I used the following XML to import the timesheet.
    Don't see any XML in your post.
    To the message suggest that the timesheet should be read out and the adjustments made on the output which then should be XOGed in.
    You could search the forum for xog adjustment timesheets.


    Martti K.


  • 3.  RE: XOG in Timesheet data

    Posted Jun 26, 2013 06:03 AM
    Hi,

    I am using below XML file to XOG adjusted Timesheet.

    ------------------
    <?xml version="1.0" encoding="UTF-8"?>
    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_timeperiod.xsd">
    <Header action="write" externalSource="NIKU" objectType="timeperiod" version="8.0"/>
    <TimePeriods>
    <TimePeriod finish="2013-03-11T00:00:00" start="2013-03-04T00:00:00">
    <TimeSheets>
    <TimeSheet ID="5012000" action="replace"
    adjustedTimeSheetID="5013000" resourceID="4562895" status="3" version="4">
    <TimeSheetEntries>
    <TimeSheetEntry chargeCodeID="DEFAULT" internalTaskID="12345" projectID="PR-004578" typeCodeID="CODE">
    <DailyActuals>
    <Actual actualDate="2013-03-04" amount="2"/>

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

    </DailyActuals>
    </TimeSheetEntry>
    </TimeSheetEntries>
    </TimeSheet>
    </TimeSheets>
    </TimePeriod>
    </TimePeriods>
    </NikuDataBus>
    ------------------

    Output -
    <?xml version="1.0" encoding="UTF-8"?>
    <XOGOutput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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.014 seconds" state="SUCCESS"/>
    <Statistics failureRecords="0" insertedRecords="1" totalNumberOfRecords="1" updatedRecords="0"/>
    <Records/>
    </XOGOutput>


  • 4.  RE: XOG in Timesheet data

    Posted Jun 27, 2013 03:10 PM
    Hi,

    each timesheet has a version, see the PRTIMESHEET.PRVERSION field in the database or the version attribute in the TimeSheet tag in XOG. When you write a timesheet back to Clarity you have to make sure you use the current version. I remember having to read the timesheet version from the database, if accessible, or having to read the timesheet first over XOG in order to insure that I'm using the right timesheet version.

    Kind regards,

    Sergiu Gavrila

    ------------------
    Real Time Workload Analytics meisterplan.com
    itd Assignment Editor - Effective Multiproject Resource Planning and Capacity Analysis www.itdesign.de/itd-addons/


  • 5.  RE: XOG in Timesheet data

    Posted Jun 27, 2013 05:07 PM
    For more information see

    10044560
    2280197
    98387196

    Martti K.


  • 6.  Re: XOG in Timesheet data

    Posted Nov 07, 2017 04:58 AM

    Thanks Marti, the links from the previous forum are broken, correction is just add the number after '/message/'

    https://communities.ca.com/message/123456

     

    XOG - (adjustment timesheets) 

    XOG adjustment timesheet to the new project 

    XOG Adjusted Timesheets 



  • 7.  Re: XOG in Timesheet data

    Posted Nov 07, 2017 09:59 AM

    Thanks for the tip regarding how to fix one type of jived links.

    At the time of my posting the links must have worked.