AnsweredAssumed Answered

Removal of Custom object Instances

Question asked by sravan.indupuri on May 2, 2013
Latest reply on May 9, 2013 by fpena

Is there any way to remove custom object instances in clarity.

for example if i create a custom object demo and create a instance demo1 for the custom object demo and if want to remove custom object instance demo1 is there any way we can remove through XOG or we can remove those custom object instances through job but i didn't get any job for these.

I came through a solution some where in CA Communities where we can delete custom object instances through XOG by adding action="delete" attribute to instance tag but when i am trying XOG the write file it is throwing me an Invalid xml Data.

PFB custom object instances write file.

<NikuDataBus xmlns:xsi="" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_customObjectInstance.xsd">
<Header action="write" externalSource="NIKU"
objectType="customObjectInstance" version=""/>
<customObjectInstances objectCode="demo">
<instance instanceCode="demo1" objectCode="demo" action="delete">
<ColumnValue name="code">demo1</ColumnValue>
<ColumnValue name="name">demo1</ColumnValue>
<ColumnValue name="odf_period_end"/>
<ColumnValue name="odf_period_start"/>
<ColumnValue name="page_layout">odf.demoFrame</ColumnValue>
<ColumnValue name="partition_code">NIKU.ROOT</ColumnValue>
<OBSAssocs complete="false"/>
<UserSecurity rightCode="odf_cst_demo_edit" userName="admin"/>
<Object type="customObjectInstance"/>
<Status state="SUCCESS"/>
<Statistics failureRecords="0" insertedRecords="0"
totalNumberOfRecords="1" updatedRecords="0"/>

and the xog output i am getting is:

<?xml version="1.0" encoding="UTF-8"?>
<XOGOutput xmlns:xsi="" xsi:noNamespaceSchemaLocation="../xsd/status.xsd">
<Object type="customObjectInstance"/>
<Status elapsedTime="0.001 seconds" state="FAILURE"/>
<Statistics failureRecords="0" insertedRecords="0" totalNumberOfRecords="0" updatedRecords="0"/>
<Description>[Error] :0:0: unexpected attribute "action"

Invalid attribute in input document. Please remove all instances of attribute from document elements and try again.

[Element : instance, Attribute : action ].
<Exception type="java.lang.Exception">Invalid xml data</Exception>

Thanks & Regards,
Sravan Kumar Indupuri