Rejected audit file by the NRA. Common causes and solutions

In this post
This is a common problem in the community of online stores that have chosen the NRA alternative mode for submitting an XML audit file, and especially when submitting the audit file for the first time. The reasons can be many and different, but with some plugins they are quite common.
In this post, we'll take a look the most common cases of a rejected audit file by the NRA after its submission. The good thing is that there is always feedback, what exactly is the reason for the rejection itself. Let's look at the most common cases
Your submitted standardized audit file has been REJECTED
This heading appears whenever there is a problem with the file, and although the explanation below it is in red and looks incomprehensible and scary, it's actually nothing to worry about. Everything can be fixed. Let's get started!
The file was not accepted due to a mismatch between the values in the E_SHOP_N and DOMAIN_NAME elements
The message then looks like this:
Your submitted standardized audit file has been REJECTED
File not accepted due to mismatch of values in E_SHOP_N and DOMAIN_NAME elements. Please check the correctness of the elements E_SHOP_N and DOMAIN_NAME...
The most common reason for this message is incorrectly entered data in the software, which you use to generate an XML audit file. In the indicated case, there may be only 2 errors, and it always turns out to be the same, namely, an incorrectly entered domain address in the software. Let's look at both options:
Possible error 1 (most common)
C Annex No. 33 of Ordinance N-18 data for the online store is filled in during registration with the National Revenue Agency. In point 4.2, fill in the URL (Internet address) of your online store. In order to receive a message about a rejected audit file from the NRA, there is a discrepancy in the way the domain is spelled in the application and the XML audit file you submitted.
If you have entered your store www.mystore.bg in Appendix No. 33 of Ordinance N-18, and in the audit XML file you enter https://mystore.bg in the field DOMAIN_NAME, then this message is wrapped in a towel for you!
Fix the problem as follows:
Check how the domain information is entered in Appendix #33 and enter your domain in the software field exactly the same way. There should be no difference!
Make sure that the method of submitting your domain in the XML audit file corresponds to the one introduced in Appendix No. 33 of Ordinance N-18!
Possible error 2 (very rare)
Another possible mistake is that you have mistaken the registration number issued for your online store, which looks like this: RFXXXXXX
This error is most common when you use an XML file template from another online store and simply change the data. Don't do it because it's a serious risk!
Make sure that the registration number entered is the correct one that was submitted for your online store by the NRA after registration.
The message shown above is the cause of one of the two errors we've described. That is why we will advise you not to wait for the last day (the 15th of the month) to submit your XML audit files to the National Revenue Agency. With us at NAP Ready, there are no such problems, because our system automatically checks your store after you register it on our platform.
Document XXXXXX is duplicated
This is also a common problem mostly with online stores that are on WooCommerce and use a famous free plugin. If you receive such a message when submitting the XML file to the NRA, you will have to edit the file manually, which can lead to serious problems when going to the National Revenue Agency if it turns out that an order has been omitted or removed.
What should you do in case you have a duplicate document?
Contact the software developer and have them identify which order is associated with which document and correct the error.
Contact the developer to find the error in your XML audit file and attach the correct card payment document that is repeating. No order must be deleted or removed from the XML file to be accepted!
Error validating document to XSD schema
This is another possible reason for a rejected audit file from the NRA, but it is one of the most serious and unpleasant errors you can encounter! This error means that the XML auditor file does not follow the XSD schema it should conform to.
The reason for this can be a manually prepared XML audit file or the use of software that does not meet the requirements of the NRA. If this is your mistake, know that you have a serious problem and you should contact a specialist who will take care of correcting the XML file for the time being so that it can be accepted successfully.
There is also a variant in which the XML file is empty!
This is the best that can happen in this situation. If you don't have a sale in the online store in the previous month, then in the XML audit file there are also entries for them, but the problem is that there is information. The automatic check in the NRA system looks for certain "tags" from the file and, if they are missing, marks the attempt to submit the file with the message "Error validating document to XSD schema".
Check your XML file with our validator
Useful links
The materials are part of the online store resource library. For a question about a specific NAP Ready setup, you can contact the team.
Ask the team

