Hi Khalid, the tax error occurs when your filing details, particularly the filing schedule, differ from the HMRC records. Let me provide an example to rectify this.
In your case, I suggest checking your filing schedule in QuickBooks and verifying if it matches your schedule in your gateway account. Also, if you're accessing QuickBooks from outside your country, the time zone might be different.
For example, you could be 1 day ahead of the UK time zone. So, when you submit the return, the end date might fall before the current date. In this scenario, you may need to wait for the current date in both your country and the UK to align, or you can use a VPN to synchronize with the UK time zone to fix this.
For careful and detailed instructions, we've got an article that you can look up to resolve VAT submission issues: Fixing MTD (Making Tax Digital) issues in QuickBooks Online.
As a handy guide here are some articles on the process of submitting VAT returns in QBO:
In addition, I've spotted an article that can be helpful for you as a reference when reporting to HMRC to remain accurate and avoid any missed or duplicated VAT: VAT exceptions and reports in QuickBooks Online.
Let us know if you need more assistance with your VAT submissions by hitting the Reply button to leave a comment below. I'll keep my notifications on so I can respond to you sooner. Take care.