Hi all,
We're testing ARIS 9.6 and have narrowed a reporting problem to a change in the way the ARIS object model works in this version. Please bear with a bit of explanation -- I'd really appreciate your thoughts.
-
Assume we have an object ‘VARIANT’. Variant has a master ‘MASTER’, but ‘MASTER’ has been removed from the database.
The report needs to remove the relationship between ‘VARIANT’ and the non-existent ‘MASTER’.
This is the code normally used to remove a master/variant relationship:
MASTER.UnlinkVariant(VARIANT);
Because the master is invalid, that method has always failed (even in 7.2).
Previously, there was an good alternative (admittedly, it was a bit of a trick) that could be done with the following two lines of code:
VARIANT.LinkVariant(VARIANT); VARIANT.UnlinkVariant(VARIANT);
In 9.6, however, this fails with the following error message:
“An error occurred in the report object model. Error running Model.LinkVariant(): possible cycle in variant master relation.”
Would anybody know:
- An alternative way to unlink a variant from an invalid master, or
- A way to disable the error when an object is its own master, to allow the previous workaround to work
This impacts an important process for us, so I'd be indebted to anybody who could point us towards a solution!
Thanks!
Tom