Hi,
You need to set the invoice rounding account in customer posting group in order to post.
In your invoice check customer and its customer posting group used for that customer and then go to customer posting group page check show all accounts field to be true and then you can see the field invoice rounding account.

If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much.