Clarity

 View Only
  • 1.  Autonumbering companies with XOG

    Posted Jul 30, 2014 12:08 PM

    Is it possible to autonumber Company ID when performing a XOG write?

     

     

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

      <Header action="write" externalSource="NIKU" objectType="company" version="13.3.0.286">

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

      </Header>

      <Companies>

        <Company companyId="-1" externalId=" " name="Company Name" status="ACTIVE" type="PROSPECT">

          <CustomInformation>

            <ColumnValue name="partition_code">NIKU.ROOT</ColumnValue>

          </CustomInformation>

        </Company>

      </Companies>

    </NikuDataBus>

     

     

    This code results in the companyID being entered as "-1".

     

    Any ideas?



  • 2.  Re: Autonumbering companies with XOG

    Posted Jul 30, 2014 12:13 PM

    a bit obvious, but you do have an active auto-numbering scheme defined against the "company_id" attribute?



  • 3.  Re: Autonumbering companies with XOG

    Posted Jul 30, 2014 12:15 PM

    Yes, autonumbering is defined and enabled for company_id.



  • 4.  Re: Autonumbering companies with XOG

    Posted Jul 30, 2014 12:37 PM

    A quick test in a local v13.0 system gets the same results as you do - I recall there were various issues** with autonumbering when 13 came out - you might need to check your version against the knowledge base? Sorry, not much help.

     

    (** Search for "overrideAutoNumbering" in the search box to see some of these)