There was a if statement with an inverse boolean meaning, which caused some automated transaction postings to have a null amount.