BUG: ORM source model or ER source model becomes corrupted after you build the project (317442)



The information in this article applies to:

  • Microsoft Visual Studio .NET (2002), Enterprise Architect Edition
  • Microsoft Visual Studio .NET (2003), Enterprise Architect Edition

This article was previously published under Q317442

SYMPTOMS

An Object Role Modeling (ORM) source model or an Entity Relationship (ER) source model becomes corrupted after you build the project.

CAUSE

If you do not save your source model changes before you build or rebuild, the source model can become unreadable or can be converted to a simple drawing with no underlying model.

RESOLUTION

After you make any change to an ORM source model or an ER source model, be sure to save the model before you build (or rebuild) a project from the model.

Scenario 1: Open a Source Model Before You Add It to a Project

In this scenario, you open an ORM source model or an ER source model that you want to add to a database model project. This may be a new source model that you are working on or an earlier source model that you reopened. If you make any change to the source model, even moving a shape, you must save the most recent state of the model before you add the model to the project.

After you add the source document to the project, Microsoft recommends that you save the project before you build it.

After you build the project, if you make any new changes to the source model, save those changes before you rebuild the project. If you already rebuilt a project without previously saving the changes to the source model, make sure that you save the source model before you quit Visio.

Scenario 2: Open a Project Before You Add a Source Model to It

In this scenario, you create a database model project and then add an existing ORM source model or an ER source model to it. If you make any change to the source model, even moving a shape, you must save the most recent state of the model before you build the project.

After you build the project, if you make any new changes to the source model, save those changes before you rebuild the project. If you already rebuilt a project without previously saving the changes to the source model, make sure that you save the source model before you quit Visio.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

ORM is a high-level, conceptual approach to data modeling that describes the application domain by using intuitive symbols and natural language facts that both users and designers can understand. ORM provides an extensive set of constraints to capture business rules, and ORM allows you to incorporate sample populations to verify your design.

To support database modeling in a team environment, Microsoft Visio includes the ER Source Model template. Using this template, you can create several source models that can be merged into a single, collective model (a database project) that you can map to a physical database.

Modification Type:MinorLast Reviewed:9/21/2005
Keywords:kbvs2002sp1sweep kbpending kbbug KB317442