The error is down to split gifts having a zero (0) amount. To rectify this, create a Gift query outputting the 'Appeal > Split Amount'. If there are any 0 values for this output, remove the split gift.

See here on how to query on split gifts.