Clarity

 View Only
  • 1.  Budget Plan XOG - Autonumbering Error

    Posted Feb 25, 2015 06:28 PM

    Team:

     

    I am attempting to xog in an approved budget plan. The cost plan code has an autonumbering scheme enabled and I am working around it via the override parameter and code="-1". What am I doing wrong? I am getting the following error:

     

    Input:

    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_budgetPlan.xsd">

      <Header action="write" externalSource="NIKU" objectType="budgetPlan" version="13.2.0.472">

       <args name="overrideAutoNumbering" value="false"/>

      </Header>

      <BudgetPlans>

        <BudgetPlan benefitPlanCode="" code="-1" finishPeriod="2015-12" forceReplace="true" investmentCode="STUFF"

          investmentType="project" name="2015 Budget Plan" periodType="MONTHLY" revision="0" sourceCostPlanCode="2015_Initial_Plan" startPeriod="2015-01" status="APPROVED">

          <Description/>

          <GroupingAttributes>

            <GroupingAttribute>cost_type_id</GroupingAttribute>

            <GroupingAttribute>resource_class_id</GroupingAttribute>

            <GroupingAttribute>transaction_class_id</GroupingAttribute>

          </GroupingAttributes>

          <Details>

    <DELETED>

        </BudgetPlan>

      </BudgetPlans>

    </NikuDataBus>

     

    Output:

    <

    <NikuDataBus>

      <Header action="write" externalSource="NIKU" objectType="budgetPlan" version="13.2.0.472" />

    - <XOGOutput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/status.xsd">

      <Object type="budgetPlan" />

      <Status elapsedTime="1.479 seconds" state="SUCCESS" />

      <Statistics failureRecords="1" insertedRecords="0" totalNumberOfRecords="1" updatedRecords="0" />

    - <Records>

    - <Record>

    - <KeyInformation>

      <column name="externalSource">NIKU</column>

      <column name="UNIQUE_NAME">2015 Budget Plan</column>

      </KeyInformation>

    - <ErrorInformation>

      <Severity>ERROR</Severity>

      <Description>com.niku.union.service.ServiceException: Service Exception</Description>

      </ErrorInformation>

      </Record>

      </Records>

      </XOGOutput>

      </NikuDataBus>



  • 2.  Re: Budget Plan XOG - Autonumbering Error

    Posted Feb 26, 2015 02:00 AM

    <args name="overrideAutoNumbering" value="false"/>

    .

    Can you check these ?

     

    https://communities.ca.com/message/14292490#14292490

     

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

     

     

     

    NJ



  • 3.  Re: Budget Plan XOG - Autonumbering Error

    Posted Feb 26, 2015 02:21 AM

    What is the <DELETED> tag for ?

     

    NJ



  • 4.  Re: Budget Plan XOG - Autonumbering Error

    Posted Feb 26, 2015 08:27 AM

    I receieved an email where it was asked if the override flag should be set to true.

     

    I want to utilize the autonumbering scheme and not override, hence the false. The -1 deal works fine in custom object instances. Something weird with the budget object. If anyone notices something wrong in the tags, please chime in.

     

    Also, Joshi, the <DELETED> means I got rid of detail nodes, it was too much to put in. Please ignore it. Would you be interested in looking at the whole xml? I will attach the file in a bit.



  • 5.  Re: Budget Plan XOG - Autonumbering Error
    Best Answer

    Posted Apr 12, 2015 01:16 PM

    I got into a webex with CA and we discovered after 30 min that one transaction was repeating within the same plan, because of a gel script for loop bug. So XOG wasn't able to overwrite the same transaction twice within the same project for the cost plan.