Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Error: Object instance needs an mx_internal::referencedIds property inorder to be managed: Object

Avatar

Level 1

Hi guys,

We are building an application that is using managed data services. You can find below our data-management-config.xml file.

Everything works fine, except, when doing a fill from  the cache (for instance by re-starting the application offline, we are getting the error Error: Object instance needs an mx_internal::referencedIds property inorder to be managed: Object

This was not the case before, when we did not use the managed one-to-one associations in the assignments destination.

Does anyone have an idea ?

<?xml version="1.0" encoding="UTF-8"?>
<service id="data-service" class="flex.data.DataService">

    <adapters>
        <adapter-definition id="actionscript" class="flex.data.adapters.ASObjectAdapter"/>
        <adapter-definition id="java-dao" class="flex.data.adapters.JavaAdapter" default="true"/>
    </adapters>

  <default-channels>
        <channel ref="my-rtmp"/>
  </default-channels>

<destination id="assignments">
<adapter ref="java-dao" />
<properties>
  <source>AssignmentASS</source>
  <scope>application</scope>
  <item-class>Assignment</item-class>
  <metadata>
   <identity property="orderid" undefined-value="0"/>
   <identity property="activity" undefined-value="0"/>
   <one-to-one property="sold_to" destination="address" lazy="false"/>
            <one-to-one property="ship_to" destination="address" lazy="false"/>
            <one-to-one property="statusProfile" destination="statusProfile" lazy="false"/>
  </metadata>
  <network>
   <paging enabled="false" pageSize="10" />
  </network>
</properties>
</destination>


<destination id="address">
    <adapter ref="java-dao" />
    <properties>
        <source>AddressASS</source>
        <scope>application</scope>
        <item-class>Address</item-class>
        <metadata>
         <identity property="orderid" undefined-value="0"/>
   <identity property="activity" undefined-value="0"/>
   <identity property="partner_function" undefined-value="0"/>
        </metadata>
        <network>
            <paging enabled="false" pageSize="10" />
        </network>
    </properties>
</destination>

<destination id="statusProfile">
   <adapter ref="java-dao" />
    <properties>
        <source>StatusProfileASS</source>
        <scope>application</scope>
        <item-class>StatusProfile</item-class>
        <metadata>
         <identity property="orderid" undefined-value="0"/>
   <identity property="activity" undefined-value="0"/>
   <one-to-many property="statuses" destination="statuses" lazy="false"/>
        </metadata>
        <network>
            <paging enabled="false" pageSize="10" />
        </network>
    </properties>
</destination>

<destination id="statuses">
    <adapter ref="java-dao" />
    <properties>
        <source>StatusASS</source>
        <scope>application</scope>
        <item-class>Status</item-class>
        <metadata>
         <identity property="orderid" undefined-value="0"/>
   <identity property="activity" undefined-value="0"/>
   <identity property="stat_order" undefined-value="0"/>
        </metadata>
        <network>
            <paging enabled="false" pageSize="10" />
        </network>
    </properties>
</destination>

</service>

0 Replies