BIP5344

Severity

20 : Error

Message

Custom Wire Format output: There is a mismatch between the logical definition and the message tree.
Message: <insert_0>
Element: <insert_1>

Explanation

The CWF writer has been given a message tree that does not match the logical message definition.
The elements may have been added to the message tree in the wrong order - elements in the tree must be in the same order as the message definition.
There may be elements missing from the message tree. All elements are compulsory when writing a CWF message. Each element must be present in the tree, unless a default value is defined for that element.
The message type or message set may be incorrect.

Response

If the output message was assembled in a Compute node, check that the elements were added to the message in the order specified in the logical message definition.
Check that the output message contains all the elements in the logical message definition (perhaps you need to copy the entire input message to the output tree before modifying it).
Check that the output message has the correct message set and message type properties.
Check that the output message does not contain self-defining elements (elements not included in the message definition).
Check that any missing elements have default values defined.
Collect debug-level user trace, which contains information on how the message tree is being matched with the message definition.