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="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_read.xsd">
  <Header version="13.3" action="read" objectType="customObjectInstance" externalSource="NIKU"/>
  <CustomObjectInstanceQuery>
    <Filter name="objectCode" criteria="EQUALS">lm_gbf_gp_bfe_det</Filter>
    <Filter name="instanceCode" criteria="EQUALS">LM00304718</Filter>
  </CustomObjectInstanceQuery>
</NikuDataBus>

I get this error.
<XOGOutput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/status.xsd">
  <Object type="customObjectInstance"/>
  <Status elapsedTime="0.001 seconds" state="FAILURE"/>
  <Statistics failureRecords="0" insertedRecords="0" totalNumberOfRecords="0" updatedRecords="0"/>
  <ErrorInformation>
    <Severity>FATAL</Severity>
    <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 ].
</Description>
    <Exception type="java.lang.Exception">Invalid xml data</Exception>
  </ErrorInformation>
</XOGOutput>

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?

Outcomes