Forms 038 to 180
Skip information indexForm 171
The filing of form 171 requires identification with an electronic certificate issued in the name of the declarant or electronic DNI .If the taxpayer does not have an electronic certificate, the person filing must be authorised to file returns on behalf of third parties, either by being registered as a social partner or by being authorised to do so.
The filing is made using TGVI online, a system that validates whether the file contains correct and incorrect records, allowing the filing of the correct records, downloading a file with the incorrect records and a file with a list of errors so that, once they have been corrected, they can be sent by means of supplementary returns.
To avoid errors of identification, we recommend that you first purge each company's taxpayer census using the Tax Identification Service
It will be necessary to have a file with the tax return to be sent, with the data adjusted to the published registry design.
Once identified, fill in the NIF of the filing taxpayer and make sure that 171 and 2022 are selected in the "Form" and "Year" fields, respectively.
To send a file, click on "Read File” and then "Select file to validate” to select the file.
From the “Recover” option you can reload the last file validated by the application for that form, financial year and NIF.If you choose to validate a new file by means of the “Read file” option, any previous sending for the selected combination of Form + Financial Year + Period + Taxpaer NIF will be lost, since only the last validation will be recovered.
Make sure that the data is correct and click on "Validate" to send the file.
During the sending, two progress bars will appear informing the validation percentage of both the file and the records.
At the end of the sending, the summary of the validation result is displayed.
N.B.:In this step of the process, only the file is validated.The submission can be formalised in subsequent steps.
If the validation is correct, you will be able to process the submission and obtain the corresponding receipt.If errors are detected, the breakdown of correct and incorrect records will be included and the options "Submit correct records", "Download incorrect records" and "Download error messages" will be available.
Submitting correct records
Select this option to display only the correct records.In the next window, check "OK" and click "Sign and Send".
You will get the submission receipt with only the correct records presented in an embedded PDF, which you can save and print.The document contains the filing information:registration entry number, Secure Verification Code, receipt number, date and time of filing and presenter information.
Incorrect entries that have not been submitted must be corrected and subsequently submitted by means of a supplementary declaration.
Download incorrect records
With this option you can download a text file (adjusted to the published design) with all the incorrect records.
The downloaded file will be updated to be consistent with the number of records included.In addition, the type 1 record (declarant and summary) will already include its own identification number, the complementary mark and the proof of the previous submission.
This file is to be corrected and filed.It does not contain information about the errors detected.
Download error messages
The downloaded text file contains the detail of the errors detected for each type 2 (Taxpayers) incorrect record.Each line will show an incorrect detail record with its corresponding error message.You need to move the scroll bar to the end of the lines in order to display the error codes and descriptions.
This file is for information only.It will be useful to identify the errors detected and correct them before submitting them.