FIX: You may lose data or Visio may quit unexpectedly when you delete an Object Relational Type (321567)



The information in this article applies to:

  • Microsoft Visio for Enterprise Architects (2002), when used with:
    • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition

This article was previously published under Q321567

SYMPTOMS

When you use a Database Model Diagram, if you delete an Object Relational Type in the Type window, and then try to undo the delete, the data is not restored to the Type field as expected.

If you then select the Object Relational Type on the Database Model Diagram drawing grid, press DELETE, and then try to undo the delete, Visio quits unexpectedly.

RESOLUTION

To resolve this problem, you can obtain the latest service release for Microsoft Visio for Enterprise Architects 2002. For additional information, click the article number below to view the article in the Microsoft Knowledge Base:

320765 Visio2002: How to Obtain the Latest Visio for Enterprise Architects 2002 Service Release

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article. This problem was first corrected in Visio for Enterprise Architects 2002 Service Release 1 (SR-1).

MORE INFORMATION

Steps to Reproduce the Behavior

  1. Start Microsoft Visio.
  2. On the File menu, point to New, point to Database, and then click Database Model Diagram.
  3. In the Shapes window, click the Object Relational stencil.
  4. Drag a Type from the Object Relational stencil to the drawing grid.
  5. In the Database Properties window, select the Fields Category. To add a new field name, click Add. By default, the Physical Name for the field is Type1_tField1.
  6. On the Database menu, point to View, and then click Types.
  7. In the Types window, right-click the Type, and then click Delete. Note that the Type is deleted as expected.
  8. On the Edit menu, click Undo Clear.

    The Type is restored in the drawing grid and the Field in the Type on the drawing grid displays the correct Field Name. However, the Field Name is missing from the Database Properties window, in the Fields category.
  9. In the drawing grid, select the Type, and then press DELETE. Note that the Type is deleted as expected.
  10. On the Edit menu, click Undo Delete.

    Notice that Visio quits unexpectedly.

Modification Type:MinorLast Reviewed:9/16/2005
Keywords:kbvs2002sp1sweep kbbug kbfix KB321567