Code Generation Errors

One of the most common causes of code generation errors is changing the names of features that are connected to other features. For example, suppose feature A is connected to feature B. If you change the name of feature A and then regenerate the source code for your part, VisualAge displays an error. This can also occur if you change the name of a promoted feature. To correct the error, double-click on the connection and replace the incorrect feature name with the correct one.

If this message appears, the setting that corresponds to the specified attribute is not currently valid:

CPP.GEN.14.e: The X attribute of the Y part cannot be set.

If this message appears, a feature that is not currently valid is either the source or target of a connection:

CPP.GEN.24.e: (connection_number_and_description): The X feature was not found in the part interface for Y.

If this message appears, a feature that is not currently valid is used to supply a parameter value in a connection.:

CPP.GEN.3.e: The X feature of the Y part has changed since this part was developed.


Related concepts
Generated Code

Related procedures
Generating Code

Related references
Visual Composition Messages