BizTalk Editor: A Field Element or Record with the Same Name Already Exists in the Tree (276979)



The information in this article applies to:

  • Microsoft BizTalk Server 2000

This article was previously published under Q276979

SYMPTOMS

When you use the BizTalk Editor to create records and fields for a file specification, you may receive the following error message:
BizTalk Editor
A field element or record with the name <Record1> already exists in the tree. You cannot rename a field to the same name as an existing field or record. For more information about creating a new node using the same name as an existing node, see Microsoft BizTalk Server 2000 Help.
Do you want to revert back to the original string <Field1>?
NOTE: <Record1> and <Field1> are examples. The actual error message will vary depending on the actual names that you are using.

CAUSE

This error message is caused by a problem in the BizTalk Editor syntax checking.

WORKAROUND

To work around this problem, do the following:
  1. Create the field at the root level of your specification.
  2. Create the record at the level needed by using the same name as the field from step 1.
  3. Drag the field created in step 1 into the record created in step 2.

STATUS

Microsoft has confirmed that this is a problem in BizTalk Server 2000.

MORE INFORMATION

In the BizTalk Editor, you can create fields as either XML elements or XML attributes. If you create fields as attributes, records and fields should be able to have the same name, which would result in valid XML, such as:
 
<ROOTNODE>
    <Name Name="data"/>
</ROOTNODE>
The problem is that the syntax checking is incorrectly flagging records and fields with the same name as invalid. Also, the syntax checking is only performed when the record is created first.

Modification Type:MajorLast Reviewed:10/22/2003
Keywords:kbbug kbpending KB276979