Consultor Eletrônico



Kbase P53472: Dynamics object instance master record missing.
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   11/25/2003
Status: Unverified

FACT(s) (Environment):

Dynamics 2.1A

SYMPTOM(s):

Dynamics object instance master record missing.

Cannot run because the master object record is missing for instance (1) on the containing object

CHANGE:

Migrated from 2.0A to 2.1A.

CAUSE:

Missing object instance master record.

FIX:

The error checking has been tightened up in Dynamics 2.1A. This error indicates that the master record for an object instance does not exist.

The following code can be used to locate and remove the the object instance record and stop the errors.

for each ryc_object_instance no-lock:
if not can-find(ryc_smartobject where
ryc_smartobject.smartobject_obj = ryc_object_instance.smartobject_obj) then
do transaction:
find first rycoi where rowid(rycoi) = rowid(ryc_object_instance)
exclusive-lock no-wait no-error.
if locked rycoi then
undo, next.

delete rycoi no-error.
if error-status:error then
undo, next.
end. /* transaction: no associated smartobject */
end. /* each object instance. */