Add a restart at the transaction level
As shown in the x12_val.mtt example type tree, you might want to use a restart attribute on the transaction set component of each functional group you receive. If you are sending out #997s, assign the restart attribute to a transaction set component if you want to acknowledge the valid transaction sets within that functional group.