AnsweredAssumed Answered

Updating custom object instance using XOG

Question asked by fabricio.de.marchi on Oct 12, 2010
Latest reply on Aug 21, 2012 by raymharvey
Hi,

I am trying to update an existing custom object instance using XOG.

I have a SDLC Project Question sub-object which the parent is Project object.

I am trying to create a XOG xml code that updates an instance of that object.

I am running that XML code in the following client: http://clarityuat.us.dell.com/niku/app?action=xog.client

Here is the XML I am using:
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_customObjectInstance.xsd">

<Header action="write" objectType="customObjectInstance" externalSource="NIKU" version="7.5"/>

<customObjectInstances objectCode="ID">


<instance instanceCode="5011660" objectCode="dell_sdlc_prj_quest">


<CustomInformation>



<ColumnValue name="dell_sdlc_desc">




<Value>TEST889</Value>



</ColumnValue>




</CustomInformation>


<OBSAssocs/>


</instance>

</customObjectInstances>
</NikuDataBus>
I am getting the following error:
<?xml version="1.0" encoding="UTF-8"?>
<XOGOutput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/status.xsd">
    <Object type="customObjectInstance"/>
    <Status state="SUCCESS"/>
    <Statistics failureRecords="1" insertedRecords="0"
        totalNumberOfRecords="1" updatedRecords="0"/>
    <Records>
        <Record>
            <KeyInformation>
                <column name="ID">5011660</column>
            </KeyInformation>
            <ErrorInformation>
                <Severity>FATAL</Severity>
                <Description>java.lang.NullPointerException</Description>
            </ErrorInformation>
        </Record>
    </Records>
</XOGOutput>
Any ideas of what could be causing this?

Thanks,

Fabricio

Outcomes