As you may know, the current tax declaration system only accepts declaration forms in XML format. However, HTKK software still has many limitations, primarily due to the numerous errors that occur during its use, including the XSD Declaration Form Error. Due to the variety of declaration forms and differing criteria for errors, the error message for the XSD Declaration Form Error also varies.
Therefore, in this article, Mytour will guide you on how to fix the XSD Declaration Form Error, focusing on the most basic errors.
How to Fix Incorrect Declaration Format with XSD
1. Procedure for Incorrect Declaration Format with XSD Error
Before delving deeper into fixing Incorrect Declaration Format with XSD errors, try following the correct procedure below:
- First, try downloading the latest version of HTKK and use it to see if the Incorrect Declaration Format with XSD error persists. Download HTKK here.
>> Check out the
- Another option is to try online tax declaration, or if that doesn't work, try submitting a hard copy, meaning you print out the report.
- If none of the above options work, we can try backing up the data by accessing the HTKK software > selecting backup data and then uninstalling the HTKK software.
>> After uninstalling, reinstall the software and restore the HTKK data then proceed to export XML again.
- Particularly for VAT declaration forms, if the number of invoices is too large, we need to export the VAT declaration form to an Excel file > Copy data from the exported Excel file to the purchase and sales ledger. Then reinstall the HTKK software > Delete the previously declared declaration data > Reload each appendix > input data then export the XML declaration form and submit it for testing.
2. Fixing the Incorrect Declaration Format with XSD using Notepad ++
If you've tried the above options and still can't fix the Incorrect Declaration Format with XSD error, try fixing the faulty file with a lightweight software called Notepad++. Download Notepad++ here.
Step 1: After installing Notepad++, simply open the faulty file with Notepad++ by right-clicking > selecting Edit with Notepad++.
Step 2: Now we start correcting the errors in the XML file based on the line numbers on the left side.
Note: The example above is for reference only, each file will encounter different errors.
- Error vc-complex-type.2.4.b: The content of element 'HDonHetGTriSDung' is not complete. One of '{'http://kekhaithue.gdt.gov.vn/TKhaiThue':ChiTietHoaDon}' is expected.
>>Steps to fix the XML file:
- Error cvc-complex-type.2.4.b: The content of element 'HDonDKiTiepSDung' is incomplete. One of '{'http://kekhaithue.gdt.gov.vn/TKhaiThue':ChiTietHoaDon}' is expected
>>How to fix the XML file:
- Error cvc-datatype-valid.1.2.1: '' is not a valid value for 'date'.
>>Steps to fix the XML file:
- Error cvc-pattern-valid: The value '' does not conform to the pattern '1701|1704|1705|0000|1761|1052|1056|1057' for the type 'tieuMucHT_empty'
>>How to fix the XML file:
- Error vc-datatype-valid.1.2.1: The value '' is not a valid integer
>>How to fix the XML file:
Above is a method to fix the Incorrect Declaration Format with XSD error, although it's not a one-size-fits-all solution but also depends on the specific case to fix this issue. However, through the above steps, we hope readers know the direction to quickly address the Incorrect Declaration Format with XSD error.
Not only errors related to the Incorrect Declaration Format with XSD error, but even the inability to open HTKK software alone is a problem faced by many users. If you encounter the situation above, try following the method to fix the unable to open HTKK software error to see if the article helps you.
During the use of HTKK, sometimes you will encounter issues that cause your data to be lost, affecting your work. If you have stored previous backups, restoring HTKK data will not be a big problem anymore, refer to the HTKK data recovery guide here to learn more about this issue.