This doesn't happen in a vanilla installation of 2021 or 2022, only if AvaTax is installed. It was tested w/AvaTax as the only enhancement.
It turns out that the DSD AvaTax connector part of Sage 100 triggers a Pre-Totals event after each line of an invoice import. If a Pre-Totals event reads all lines of, for example, a 5 line invoice import then the event is triggered 5 times and scans 1 + 2 + 3 + 4 + 5 = 15 lines. If AvaTax invoice imports are slow this might be the reason. They've been notified.
------------------------------
Dan Burleson
Software Consultant
Connex Software
------------------------------