Problem adding ZZZ segment #6452
-
I have some code where I'm creating new ADT messages from an original message. All seems to work correctly except when I send the new message to another channel and try to remove the ZZZ segment, I get an error that Name() is not found on that segment. I'm creating the segment like this:
The message will look like this at the end:
In the next channel, I need to remove all but certain Segments. My code is this:
I get this error:
It is like ZZZ isn't a real segment so the Name() function can't be used. What am I doing wrong here. Everything else works fine and the delete code works if there isn't a ZZZ segment. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Also tried using createSegment('ZZZ',msg) and got the same problem. |
Beta Was this translation helpful? Give feedback.
-
I doubt that it works when you don't include the ZZZ segment. The function is |
Beta Was this translation helpful? Give feedback.
I doubt that it works when you don't include the ZZZ segment. The function is
name()
(lowercase,) and that's why it can't find it.