Fix "Incorrect format declaration with XSD" error

Fix “Incorrect format declaration with XSD” error


With the error “The declaration is not in the correct format with XSD” is due to the fact that the new version of HTKK has not been completed. Here Taimienphi.vn will guide you how to fix errors when encountered.


With the feature that there are many types of declarations, there will also be different error messages, depending on each message and warning, there are different remedial options. With this article we just give a few basic errors for everyone to refer to.

Fix “Incorrect format declaration with XSD” error

When encountering an error, the user should:

– Check the version of HTKK to see if it is the latest version (HTKK 3.3.0): If not, download the latest version. HTKK.
– Backup data and reinstall the HTKK software on your computer.
– Convert to PDF format and then submit the test.
– Online declaration and submission.

After trying the above steps and still do not work, you need to edit the source code of the XML file (This way requires the worker to have some knowledge of IT and the computer has software to edit the source code. Here we use Notepad ++ you can download below). And depending on the messages that you have different repair options.

Download Notepad ++ and install

After the installation of Notepad ++ is complete, you must right-click on the XML file after being exported from the HTKK software and select Edit with Notepad ++

Check with the error message on any line then you proceed to fix on that line. Below we would like to summarize some errors that users often encounter, you can refer to.

1) With the message: Incorrect formatted declaration with XSD. Wrong data at line: 21. – Details: cvc-pattern-valid: Value ’01 -10-2014 ‘is not facet-valid with respect to pattern’ ((0?[1-9]|[12][0-9]| 3[01]) / (0?[1-9]| 1[012]) / (19 | 20) dd)? ‘ for type ‘DateType’

Edit: Open Find parameter 01-10-2014 => Edit to October 1, 2014 and save (Edit dashes to slashes, just edit this parameter, don’t edit other parameters). And check by resubmission.

2) With the message: Incorrect formatted declaration with XSD. – Wrong data at line: 156. – Details: cvc-datatype-valid.1.2.1: “is not a valid value for ‘integer’

Cause: Because the declarer left blank line with no data.

Edit: Click on those blank lines and press F6 to delete that blank line.

3) With the message: Incorrect formatted declaration with XSD. Wrong data at line: 92. – Details: cvc-complex-type.2.4.b: The content of element ‘HDonHetGTriSDung’ is not complete. One of ‘{“http://kekhaithue.gdt.gov.vn/TKhaiThue”:ChiTietHoaDon}’ is expected.

With this warning there are 2 causes:
– Check the appendix “Form 3.12: Final reporting period” by the user when making a report on the use of invoice. To edit, you just need to delete this appendix and then output the XML declaration and submit it normally.

– For the way enterprises change their business registration address but still want to use old invoices to save costs, users will have to declare on the appendix “Form 3.12: Final reporting period”. But because the software HTKK 3.3.0 is faulty, it can be fixed in 2 ways:

+ Conduct online declaration Here
+ Proceed to edit the XML file: Add the components between the card pairs as shown below and then save and submit the declaration.

4) With notification: Incorrect formatted declaration with XSD. Wrong data at line: 102. – Details: cvc-complex-type.2.4.b: The content of element ‘HDonDKiTiepSDung’ is not complete. One of ‘{“http://kekhaithue.gdt.gov.vn/TKhaiThue”:ChiTietHoaDon}’ is expected.

Edit:

5) With notification: Incorrect formatted declaration with XSD. – Wrong data at line: 55. – Details: cvc-datatype-valid.1.2.1: ” is not a valid value for ‘date’.

6) With notification: Incorrect form with XSD: -Accurate data at line: 53. – Details: cvc-pattern-valid: Value ” is not facet-valid with respect to pattern ‘1701 | 1704 | 1705 | 0000 | 1761 | 1052 | 1056 | 1057 ‘for type’ tieuMucHT_empty ‘.

Edit: Find the line “tieuMucHachToan” and add the number of accounting targets. However, each type of declaration has a different accounting subsection, so users should note when filling out:
+ 01 / VAT deduction VAT declaration: 1701
+ Special consumption tax declaration 01 / TTĐB: 0000

7) With notification: Incorrect formatted declaration with XSD. – Wrong data at line: 122. – Details: cvc-datatype-valid.1.2.1: ” is not a valid value for ‘integer’.

How to fix: This error usually occurs when a user prepares the PIT finalization return with the item 19 “Deductible PIT” blank. This target must be entered. So if that individual has not deducted PIT, the amount must be 0 (must not be left blank).

8) With notice: Incorrectly formatted declaration with XSD: cvc-pattern-valid: Value’0100691544005 ‘is not facet-valid with respect to pattern “([0-9]{ten})(-[0-9]{3})? for type ‘TINType’.

The reason is that the person declares incorrectly on the invoice, the most common reason is because typing MST with a space in the middle or at the end or typing the tax code of the branch is missing dashes to separate the last 3 digits. just correct it and save it.

9) With notice: Incorrect formatted declaration with XSD. – Wrong data at line: 445. – Details: cvc-datatype-valid.1.2.1: ‘0.00’ is not a valid value for ‘integer’.

How to fix: Open the XML file in Notepad ++, find the error line and correct the value 0.00 to 0 and then save and return the declaration.

10) With notice: Unregistered documents submitted online

This error, although the error message is not the same as the error in the XSD incorrect declaration, but the way to correct the declaration is similar

Reason:
– The user has not registered the type of declaration to be submitted
– User has registered but the wrong type of declaration period (for example, NNT is submitting quarterly declaration but registering monthly): If this is the case, please register to stop the declaration then register more correct. See more article: How to convert VAT declaration period from month to quarter and vice versa on HTKK:
– Due to software error of HTKK: the most common is when the taxpayer declares the invoice cancellation declaration form TB03 / AC. When a taxpayer registers this type of declaration period, this declaration is only for selecting each time it arises. However, HTKK 3.3.0 application has an error. When declaring and outputting this declaration, it will be declared quarterly. Therefore, when submitting the TB03 / AC declaration, the NNT will encounter a warning to support the unsubscribed file online. To fix this error, NNT opens the declaration with Notepad ++ and fixes the following:

So above is a summary of some common error messages of the error “Informed declaration with XSD”. Depending on each error message, you need to correct it correctly, to avoid correcting the wrong message line, leading to the inability to submit the declaration. Good luck!

https://thuthuat.taimienphi.vn/khac-phuc-loi-to-khai-khong-dung-dinh-dang-voi-xsd-3697n.aspx
(Source: chukyso24h)

.

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *