Microsoft KB Archive/320411

= FIX: Visio error message: &quot;The action you executed requires a database model document&quot; =

Article ID: 320411

Article Last Modified on 1/19/2006

-

APPLIES TO


 * Microsoft Visio for Enterprise Architects 2002, when used with:
 * Microsoft Visual Studio .NET 2002 Enterprise Architect

-



This article was previously published under Q320411





SYMPTOMS
If you open a database collective model or a database project file in Microsoft Visio Enterprise Architects, you may receive the following error message:

The action you executed requires a Database Model document.

The database solution is not loaded, and the Database menu does not appear in Visio. Additionally, the database shapes, relationships, and connectors no longer have database properties.



CAUSE
This problem may occur if you click Cancel when you are prompted with the message Do you want to migrate changes back to the source models? in the Migrate Changes dialog box.

Under this condition, the database source models are not saved before they are closed, and the database project file no longer works as the database collection.



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

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

To work around this problem, click Yes or No in the Migrate Changes dialog box, and then save the source model again before you close it.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section. This problem was first corrected in Visio for Enterprise Architects 2002 Service Release 1 (SR-1).



Steps to Reproduce the Problem

 * 1) Start Microsoft Visio Enterprise Architects.
 * 2) On the File menu, point to New,point to Database, and then click Database Model Diagram.
 * 3) On the File menu, click Save, name the Database Model Diagram Database Project, and then click Save.
 * 4) On the Database menu, point to Project, and then click New ER Source Model.
 * 5) In the Save New ER Source Model As dialog box, accept the default name (ERSrcn.vsd), and then click Save.
 * 6) In the Project window, double-click the new ER Source Model that you created in step 4.
 * 7) Drag an Entity shape from the Entity Relationship stencil onto the ER Source Model diagram.
 * 8) Double-click the Entity shape to display the Database Properties task pane.
 * 9) In the Database Properties task window, click Columns under Categories, type Column1 for a Physical Name, and then click to select the PK (Primary Key) check box.
 * 10) On the File menu, click Save.
 * 11) On the Window menu, click Database Project to switch to the Database Project diagram.
 * 12) On the Database menu, point to Project and then click Build.
 * 13) From the Tables and Views task window, drag Table1 to the drawing page.
 * 14) Change the Physical Name of Column1 to Column2.
 * 15) On the File menu, click Save.
 * 16) In the Migrate Changes dialog box, click Cancel.
 * 17) Close the open diagrams and quit Visio.
 * 18) Start Visio, and then reopen the Database Diagram Model named Database Project.vsd.
 * 19) Double-click the Entity shape on the drawing page.

Note that you receive the error message and the other symptoms described in the &quot;Symptoms&quot; section of this article.

Additional query words: visio vso VEA EA orm er db sr1 sr-1

Keywords: kberrmsg kbtshoot kbbug kbfix kbvs2002sp1sweep kbvs2005swept kbvs2005doesnotapply KB320411

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.