AnsweredAssumed Answered

XOG fail with virtual field

Question asked by Colum on Mar 18, 2016
Latest reply on Mar 18, 2016 by nick_darlington

I am having an issue with xogging out an instance.
I have custom object which is a sub-object of another custom object.
The sub-object has a virtual attribute which is the code of the parent object.

If I try to read an instance of the sub-object with this code

<NikuDataBus xmlns:xsi="" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_read.xsd">
  <Header version="13.3" action="read" objectType="customObjectInstance" externalSource="NIKU"/>
    <Filter name="objectCode" criteria="EQUALS">lm_gbf_gp_bfe_det</Filter>
    <Filter name="instanceCode" criteria="EQUALS">LM00304718</Filter>

I get this error.
<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: attribute "name" has a bad value: the value is not a member of the enumeration: ("instanceCode"/"objectCode")
Invalid attribute in input document. Please remove all instances of attribute from document elements and try again.
[Element : Filter, Attribute : name ].
    <Exception type="java.lang.Exception">Invalid xml data</Exception>

If I try to do a write xog, I get an error.

If I deactivate the virtual field, everything works fine.
Has anyone else run into this issue. Does anybody have a solution other than deactivating the virtual field?