I am assuming this is an Order or Result type message.
Your variant is mal formed.
At a minimum I think there should be an ORC Group where the second NTE definition properly lives. Maybe like this:
(
[ORC]
OBR
[{NTE}]
{DG1}
{OBX}
}
In most cases, I find the standard variant adequately describes most messages for most vendors (with the obvious exception of the Z segments and User fields). Even thought the vendors’ documentation does not seem to indicate that.
I would be happy to discuss how to work through that. This is part of the discussion I have in my Xlate Class. Just email me if you want to walk through that.
The reason you are getting an issue is both NTE segments in the variant you have are defined at the same address level. BULKCOPY will only use the first instance.
If you insist on keeping the variant as is, then there is a trick but you will have to abandon BULKCOPY. Also the trick may not work with every release of Cloverleaf – so I recommend either altering the variant you have or returning to the base message structure (as a variant) after assuring the structure indeed describes the message you need.
email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.