SAP Message /ISIDEX/EDEREG_INV166 - Tax amount in bill lines is not consistently specified

Diagnosis
There are lines in the bill for which the tax amount is specified, aswell as lines for which no amount is specified even though thetax indicator is set.
As a result it is not possible to check the sum of all the individualtax amounts against the total tax amount.