oracle.jbo.PersistenceException: JBO-26035 while inserting a new row.
Getting the following exception.
oracle.jbo.PersistenceException: JBO-26035: Secondary entity usage DocumentTypeMappings is missing parts of association description.
at oracle.jbo.server.ViewDefImpl.processEntityAssociations(ViewDefImpl.java:7932)
at oracle.jbo.server.ViewAttributeDefImpl.getEntityAssociationReferences(ViewAttributeDefImpl.java:1465)
at oracle.jbo.server.ViewAttributeDefImpl.isJoinFK(ViewAttributeDefImpl.java:1432)
at oracle.jbo.server.ViewObjectImpl.sourceChanged(ViewObjectImpl.java:12627)
at oracle.jbo.server.EntityCache.sendEvent(EntityCache.java:1343)
at oracle.jbo.server.EntityCache.deliverEntityEvent(EntityCache.java:1359)
at oracle.jbo.server.EntityCache.notifyColumnAndBlgChange(EntityCache.java:1415)
at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:6958)
at oracle.jbo.server.EntityImpl.notifyAttributesChanged(EntityImpl.java:6939)
at oracle.jbo.server.EntityImpl.notifyAttributesAndBlgChanged(EntityImpl.java:6948)
at oracle.jbo.server.EntityImpl.setAttributeValue(EntityImpl.java:3284)
at oracle.jbo.server.AttributeDefImpl.set(AttributeDefImpl.java:2984)
at oracle.jbo.server.EntityImpl.setAttributeInternal(EntityImpl.java:1720)
at oracle.apps.snw.schema.server.TransactionTypesImpl.setTransactionTypeId(TransactionTypesImpl.java:123)
at oracle.apps.snw.schema.server.TransactionTypesImpl$AttributesEnum$1.put(TransactionTypesImpl.java:33)
at oracle.apps.snw.schema.server.TransactionTypesImpl.setAttrInvokeAccessor(TransactionTypesImpl.java:158)
at oracle.jbo.server.EntityImpl.setAttribute(EntityImpl.java:1628)
at oracle.jbo.server.ViewRowStorage.setAttributeValue(ViewRowStorage.java:2127)
at oracle.jbo.server.ViewRowStorage.setAttributeInternal(ViewRowStorage.java:1941)
at oracle.jbo.server.ViewRowImpl.setAttributeInternal(ViewRowImpl.java:1383)
at oracle.apps.snw.tpadmin.server.TransactionTypesViewRowImpl.setTransactionTypeId(TransactionTypesViewRowImpl.java:108)
at oracle.apps.snw.tpadmin.webui.TpTransactionManagementHandlers.saveCustomDocumentSettings(TpTransactionManagement
I am trying to insert a row by using following code :
// to insert into snw_transaction_types
TransactionTypesViewImpl transationView= (TransactionTypesViewImpl) am.findObject("TransactionTypesView");
TransactionTypesViewRowImpl tRow= (TransactionTypesViewRowImpl) transationView.createRow();
Number tId= Jbo.stringToNumber("141");
tRow.setTransactionTypeId(tId);