ASN1Parse emits empty tuples
This can happen if output schema does not conform to the trigger.
Symptoms
The nTuplesSent metric shows higher values than 0 and the output contains empty fields or fields that are filled with default values only. You do not observe any error traces and the metrics does not contain any error information.
Causes
The schema that matches to the trigger "/orders" is part of the Order type. In the sample code below, a sub type orders is given as output schema and in this case the ASN1Parse operator is able to decode the input data, but does not assign the decoded data to the output attributes.
stream<Order orders> Records = ASN1Parse(DataBlocks)
{
param
structureDocument: "etc/grammar.asn";
trigger: "/orders";
}
Resolving the problem
Use the correct output stream type that corresponds to the trigger parameter. Do not create sub types in the output stream definition.
stream<Order> Records = ASN1Parse(DataBlocks)
{
param
structureDocument: "etc/grammar.asn";
trigger: "/orders";
}