Order of header and body message contents

Imported from previous forum

Is the statement right, that a logon message must contain firstly all tags related to the header and after it the tags of the body message.

So in FIX4.0 it is not possible to mix the tags from header and body message.

A client is sending a logon message with the tags 98 and 108 within the header message. Our engine finally always says that the incoming message number is 0 while expected 1.
I got now the explanation that the tag34 ( header message ) appears after the tags 108 and 98, and therefore the engine doesn’t handle tag 34 anymore. Because it doesn’t handle them, the engine thinks, that the tag was never sent and set the incoming message number to 0.

Thank you very much for feedback.

Cyrill