[QFJ-806] Tag appears more than once Created: 11/Aug/14  Updated: 11/Aug/14  Resolved: 11/Aug/14

Status: Closed
Project: QuickFIX/J
Component/s: None
Affects Version/s: 1.5.3
Fix Version/s: None

Type: Bug Priority: Default
Reporter: Victor Rosenberg Assignee: Unassigned
Resolution: Not a bug Votes: 0
Labels: None


 Description   

The following exception is created when parsing the message: quickfix.FieldException: Tag appears more than once, field=279

The code:
String strMessage =
"8=FIX.4.2|9=196|35=X|49=A|56=B|34=12|52=20100318-03:21:11.364|262=A|268=2|279=0|269=0|278=BID|55=EUR/USD|270=1.37215|15=EUR|271=2500000|346=1|279=0|269=1|278=OFFER|55=EUR/USD|270=1.37224|15=EUR|271=2503200|346=1|10=171|"
.replace('|', (char)1);

Message message = MessageUtils.parse(new DefaultMessageFactory(), null, strMessage);

Also see http://stackoverflow.com/questions/24573883/quickfixj-rejecting-incoming-message-with-tag-appears-more-than-once-where-the



 Comments   
Comment by Victor Rosenberg [ 11/Aug/14 ]

Apologies, seems like the message I've attached indeed contains the tag twice.
The linked question on stack overflow should still be investigated though.

Thanks

Comment by Christoph John [ 11/Aug/14 ]

Please use the quickfixj mailing list to ask such questions.

Moreover, you cannot parse messages with repeating groups without the use of a data dictionary.

Generated at Sat Nov 23 00:45:31 UTC 2024 using JIRA 7.5.2#75007-sha1:9f5725bb824792b3230a5d8716f0c13e296a3cae.