Why Does an Error Occur When I Try to Add a Condition to a Multiple Condition AgileShape?

Symptoms

When I add a condition to a Multiple Condition AgileShape, the following error occurs: "System.Runtime.InteropServices.COMException (0x86DB0904): Object name not found."

Cause

This occurs rarely, when the Document stencil drops the Contained Rule condition from its shapes within the context of a process model. The cause is not known.

Resolution

To fix this issue:

  1. In Visio, open your process model where the issue is occurring.
  2. To open Document stencil, click More shapes > Show Document Stencil.
  3. Create a new Generic process model.
  4. In the new process model, click More shapes > Show Document Stencil to open the Document stencil in that file.
  5. Click the Restore button, so that both process models appear side-by-side in the Visio window.
  6. Drag the Contained Rule shape from the Document stencil in the new process model to the one Document stencil to your process model.
  7. Save your process model.
  8. In your process model, add a new condition to a Multiple Condition AgileShape. Verify that an error does not occur.