Hi,
Would you please first check if you maintain values in customizing "Determine Tax Code per Country/Product Category"?
Then I also suggest you check the partners in the invoice to judge the country defined for them.
With such country, corresponding tax code should also be defined in the customizing.
Best regards,
Ivy