IBM Support

Modifying a back reference field results in "The field "Parent" cannot be modified" error

Troubleshooting


Problem

Attempts to modify a back reference field from any IBM Rational ClearQuest client or when using the ClearQuest API results in the error "The field "Parent" cannot be modified because it is a back reference field.".

Symptom

When you try to modify a back reference field, an error like the following might display:

The field "Parent" cannot be modified because it is a back reference field. This field is automatically updated when this entity is added or removed from the "Child" field of a "Defect" entity.

Cause

As of ClearQuest versions 7.0.1.11, 7.1.1.04, and 7.1.2.01, ClearQuest no longer lets you modify back reference fields because this type of modification can cause database corruption.

The problem can occur when a hook explicitly tries to modify a back reference field, or if a list view control is explicitly attached to a back reference field with the New, Add, or Delete button. As of ClearQuest versions 8.0.0.09 and 8.0.1.02, a back reference field is made to be ReadOnly so it cannot be modified through a user interface client or APIs (from a non-hook context).

The problem has not been observed when creating a back reference control by dragging and dropping the back reference field onto the form.

The error results from code changes applied to resolve APAR PM22186, ClearQuest core should be able to detect when a remove is taking place on a back reference field and throw an exception or no-op.

Resolving The Problem

You can selectively enable the ability to modify a back reference field as a short-term work around until the schema can be changed to no longer rely on modifying a back reference field.

Contact IBM Software Support for guidance on how to do this.

[{"Product":{"code":"SSSH5A","label":"Rational ClearQuest"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Designer - Fields and Lists","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.0.1.11;7.0.1.12;7.1.1.4;7.1.1.5;7.1.1.6;7.1.1.7;7.1.1.8;7.1.1.9;7.1.2.1;7.1.2.10;7.1.2.11;7.1.2.2;7.1.2.3;7.1.2.4;7.1.2.5;7.1.2.6;7.1.2.7;7.1.2.8;7.1.2.9;8.0;8.0.0.1;8.0.0.2;8.0.0.3;8.0.0.4;8.0.0.5;8.0.0.6;8.0.0.7;8.0.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
16 June 2018

UID

swg21469019