Repeating Tag in a message and Group

Imported from previous forum

Hi all,

i’ve found the following in the fix-specification:

  1. A tag number (field) should only appear in a message once. If it appears more than once in the message it should be considered an error with the specification document.

So, i understand a field may be repeated in a repeating group. But can this same Field also appear in the main message itself (if it appears only once)?

Example:
i have a custom repeating group, which contains the tag currency(15).

Is the following valid? (look at the tag currency(15))
8=…9=…34=…35=D…15=EUR… followed by my repeating group, which also contains the tag currency(15).

The tag 15 is not the group delimiter (not the first field in the repeating group).

In other words, is it allowed to include fields, defined within the standard, in custom defined components or groups?

Thanks in advance.

If you use Currency(15) in the repeating group and in the body of the message, then this is considered to be a tag number appearing twice and is hence considered an error. Your tag 15 from the body could also be sent after the repeating group and then your parser would not know whether it is still inside the repeating group or has encountered the first tag outside of it. Custom repeating groups should not carry any standard tags to be on the safe side.