AnsweredAssumed Answered

XOG Error on Insert to Project Subobject

Question asked by AndreaMcVey on Oct 7, 2010
Latest reply on Oct 8, 2010 by Dave
I am trying to use XOG to insert a new record into a project sub-object.

Here is the original 'xog out' (with all the additional Project xog stuff removed.)
<instance instanceCode="00000003"
objectCode="cic_proj_financials" parentObjectCode="project">
<ColumnValue name="cic_apr">1919</ColumnValue>
<ColumnValue name="cic_aug">17</ColumnValue>
<ColumnValue name="cic_dec">0</ColumnValue>
<ColumnValue name="cic_feb">0</ColumnValue>
<ColumnValue name="cic_fiscal_year">5001005</ColumnValue>
<ColumnValue name="cic_jan">10000000</ColumnValue>
<ColumnValue name="cic_jul">0</ColumnValue>
<ColumnValue name="cic_jun">0</ColumnValue>
<ColumnValue name="cic_mar">0</ColumnValue>
<ColumnValue name="cic_may">0</ColumnValue>
<ColumnValue name="cic_nov">0</ColumnValue>
<ColumnValue name="cic_oct">0</ColumnValue>
<ColumnValue name="cic_overwrite">false</ColumnValue>
<ColumnValue name="cic_sep">0</ColumnValue>
<ColumnValue name="cic_type">Baseline</ColumnValue>
<ColumnValue name="code">00000003</ColumnValue>
<ColumnValue name="name">Entry</ColumnValue>
<ColumnValue name="odf_cncrt_parent_id">5002030</ColumnValue>
<ColumnValue name="odf_parent_id">5002030</ColumnValue>
<ColumnValue name="partition_code">cic_cic</ColumnValue>
<OBSAssocs completed="false"/>
rightCode="odf_cst_cic_proj_financials_edit" userName="admin"/>

I need to duplicate this information in a new instance, with a new instanceCode...
The instanceCode attribute is an autonumber and I think that is the choking point...but I want the system to autogenerate this value.
I tried blanking it out and that gave me an error.
I tried writing in a new value it didn't give me an error...but it also didn't write in a new instance.
When I run changes against an existing instance, all is well.