IBM Support

修改后引用字段出现错误 "The field "Parent" cannot be modified"

Troubleshooting


Problem

[Simplified Chinese] 当您试图从任何ClearQuest客户端修改或者使用ClearQuest API调用后引用字段的时候,可能会出现错误。(英文错误信息原文)"The field "Parent" cannot be modified because it is a back reference field."

Symptom

当您试图修改后引用字段,您可能会看到如下错误:

(英文错误信息原文)

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

到ClearQuest 7.0.1.11,7.1.1.4 和 7.1.2.1,ClearQuest不再支持您修改后引用字段,因为这可能会引起数据库的崩溃。

这种情况可能发生在挂钩直接试图修改后引用字段,或者当视图列表控件直接添附到具有新建,增加或者删除按钮的后引用字段。到ClearQuest 8.0.0.09 和 8.0.1.02版本为止,由于后引用字段被设为只读,您不能从用户交互界面或者API来修改它(从非Hook文本)。

当以拖拉和释放的方式将后引用字段添加到表单时,这个错误将不会出现。

以下是一个错误信息的示例,也许您在试图修改后引用字段时会出现:

(英文错误信息原文)

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.


这个错误是因为在修复APAR PM22186 的时候对源代码做了修改,当删除后引用字段时,ClearQuest 内核应该能探测到,并且抛出错误或者停止作业。

Resolving The Problem

您可以有选择性的启动允许修改后引用字段的功能,以作为短期的解决方法,直到您修改您的scheme并不在需要修改后引用字段。

请您联系IBM软件支持来指导您如何实现该功能。

Related Information

[{"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;7.1.2.1;7.1.2.10;7.1.2.11;7.1.2.12;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

swg21497782