• Hi,

    I have a question:

    I see in my reports the following error: “Invalid country, check error log.” This error is visible in MOSS VAT Details.

    In the logs I see this: (one example from five error logs)

    [2021-11-30 14:52:09] wc-aelia-eu-vat-assistant.WARNING: Tax rate contains an in invalid country code {“Country Code”:””,”Rate ID”:1,”Tax Row”:”[object] (stdClass: {\”items_tax_amount\”:9.309999999999999,\”shipping_tax_amount\”:1.12,\”refunded_items_tax_amount\”:0,\”refunded_shipping_tax_amount\”:0,\”items_total\”:44.33,\”shipping_total\”:5.33,\”refunded_items_total\”:0,\”refunded_shipping_total\”:0,\”tax_rate_data\”:{\”label\”:\”VAT\”,\”tax_rate\”:\”21.0000\”,\”tax_rate_country\”:\”\”,\”tax_rate_class\”:\”\”,\”is_moss\”:true}})”,”Tax Rate”:”[object] (stdClass: {\”label\”:\”VAT\”,\”tax_rate\”:\”21.0000\”,\”tax_rate_country\”:\”\”,\”tax_rate_class\”:\”\”,\”is_moss\”:true})”} {“process_id”:20300}

    This is an order from the Netherlands. The Netherlands is also my home based country.

    I can’t see in the MOSS VAT Details report all taxes from orders made from within the Netherlands. The entry NL is not there. I can see other countries and I have setup the onetime tax rules with the setup of this plugin

    How can I fix this ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Diego

    (@daigo75)

    The error indicates that one of the tax rates contains an empty country code. From the error:
    [2021-11-30 14:52:09] wc-aelia-eu-vat-assistant.WARNING: Tax rate contains an in invalid country code “Country Code”:””

    The EU VAT Assistant requires that all tax rates are configured with a valid country code in the “Country” column (see https://prnt.sc/22u8oam). The country code is used to group taxes by country. A “catch all” rule (example: https://prnt.sc/22uh9wh) won’t work, because the country code is empty, and the EU VAT Assistant won’t be able to perform the grouping.

    The solution should be as simple as entering a country code (NL, I guess), for the tax rate that has a blank one. That will allow the EU VAT Assistant to find that information and use it for the reports.

    Thread Starter ritmeester001

    (@ritmeester001)

    Hi Diego,

    Thanks for your answer. I will show you some screenshots with my settings.
    I have also at the end of the coutnty taxes the “catch” rule with * . *

    Or I don’t understand this reports very well.

    https://prnt.sc/23a2ui4

    https://prnt.sc/23a2zf3

    • This reply was modified 2 years, 11 months ago by ritmeester001.
    Plugin Author Diego

    (@daigo75)

    The issue is precisely the “catch all” rule. You can’t have a rule with a “*”, because that’s not a valid country code, and the EU VAT Assistant won’t be able to group the taxes.

    If the catch all rule has an actual rate greater than zero, then you will have to replace it with one entry for each country to which the rate applies. If the rate for the catch all rule is zero, then you can simply remove that rule. WooCommerce won’t apply any taxes if there isn’t a matching rule.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Invalid country, check error log’ is closed to new replies.