IBM Support

Reverse Engineering in Rational Rhapsody causes "Failed to open file...cg_info for write" error

Troubleshooting


Problem

Using Reverse Engineering causes "Failed to open file...cg_info for write" error in IBM Rational Rhapsody.

Symptom

The error message is for example:

Failed to open file
C:\wokspace\44872\DefaultComponent\DefaultConfig.cg_info
for write


Cause

This is caused by a desync between the active component directory path (on the left) and the reverse engineering root directory path (on the right) as shown here:




For each reverse engineer operation, a cg_info file is created/modified to store reverse engineering timestamp data. This is created at the root directory of the code that is reversed engineered.

Resolving The Problem

Rational Rhapsody should update this field when reverse engineering is started. However, if the two paths do not match modify the active component directory manually.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.6;7.6.0.1;7.6.1;7.6.1.1;7.6.1.2;7.6.1.3;7.6.1.4;7.6.1.5;8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.5;8.0.6;8.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21675717