Electronic filing of information returns – Common errors
Electronic Filing of Information Returns
Before submitting information returns through the Canada Revenue Agency's (CRA) Internet File Transfer (IFT) service, ensure you are using the latest versions of the following:
- T619, Electronic Transmittal Record
- XML Schema (download available here)
- XML Specifications (available here)
Common XML errors, their causes, and recommended actions, are presented below.
Validations
XML files that are submitted through Internet File Transfer are subject to validations:
- Validations provide you with warning messages after submitting a file via Internet File Transfer. While you can generally continue to submit the file, it is recommended that all errors are corrected before submission to ensure faster processing. Files that are submitted with errors may still be rejected under certain conditions (e.g., if the errors affect a significant portion of the file). Certain critical errors will prevent you from submitting your file (examples are provided below).
- While most XML files are validated online, larger files can undergo offline validations and may be rejected if formatting issues persist. You will be notified of the results of the offline validations with a Confirmation of Receipt email. You must review the email to confirm whether the submitted information returns were accepted or rejected.
Important: XML files that do not conform to CRA's schema and specifications may be rejected. Use an XML parser to validate your file against the 2025 schema provided by the CRA. Validating parsers are available online.
General Recommendations
- Ensure all fields are completed according to the specifications for the return type (e.g., T4, T4A, T5, etc.). For each field, the specifications may constrain:
- the size and textual content (e.g., 3 alpha, 10 alphanumeric, 9 numeric).
- the permitted values (e.g., alphabetic country codes).
- the formatting (e.g., telephone number, 15-character business number (BN15)).
- Pay special attention to mandatory fields and their specifications. Mandatory fields are identified as required in the XML specifications.
- Verify that all mandatory fields for the return type are present and populated. Ensure all mandatory fields are formatted according to the specifications for the return type.
- If a mandatory field is missing from the XML, the file will be rejected.
- If a mandatory field is left blank, the file will be rejected.
- If a mandatory field is formatted incorrectly, the file will be rejected.
- Ensure that the XML file contains only the mandatory fields associated to the return type.
- Verify that all mandatory fields for the return type are present and populated. Ensure all mandatory fields are formatted according to the specifications for the return type.
- Remove all optional fields for which you have no information to declare from the XML file.
- Do not use blank spaces or null entries to indicate that no data is being declared.
- Ensure all optional fields are formatted according to the specifications for the return type.
- If optional fields are formatted incorrectly, the file may be rejected.
- Correct all errors before submission to avoid rejections and ensure compliance with CRA requirements.
Mandatory Fields and Required Information
A field identifier is defined as mandatory based on the schema. A mandatory field identifier must be present in the XML for that return type. However, in some cases, you will not have information to declare for that field. In these cases, you are still required to provide a value for the field. The value provided must conform to the specifications. Mandatory fields are identified as required in the specifications.
Example 1. The T4 schema defines the Employee social insurance number (SIN) as mandatory for each slip. The <sin></sin> tags must therefore be present in the XML for each T4 slip. The XML specifications provide the following formatting requirements:
- <sin></sin>
- Employee social insurance number (SIN)
- - Required 9 numeric
- - T4 slip, box 12
- - When the employee has failed to provide a SIN, enter zeros in the entire field.
- Note: Omission of a valid SIN results in non-registration of contributions to the Canada Pension Plan.
The field is required, and must be 9 numeric. When the SIN is not available to the filer, the field must be populated with 9 zeros (“000000000”).
Example 2. The T4 schema defines the Payroll Account Number as mandatory in the T4 Summary. The <bn></bn> tags must therefore be present in the XML for each T4 Summary. The XML specifications provide the following formatting requirements:
- <bn></bn>
- Payroll Account Number
- - Required, 15 alphanumeric, 9 digits RP 4 digits, example: 000000000RP0000
- Note: In order to process a return, the complete BN is Required.
The field is required, and must be formatted as 15 alphanumeric, 9 digits RP 4 digits, example: 000000000RP0000. A complete and valid BN is required for a return to be processed.
Example 3. The T4 schema defines the Contact telephone number as mandatory in the T4 Summary. The <cntc_phn_nbr></cntc_phn_nbr> tags must therefore be present in the XML for each T4 Summary. The XML specifications provide the following formatting requirements:
- <cntc_phn_nbr></cntc_phn_nbr>
- Contact telephone number
- - Required, 3 numeric with a (-), followed by 4 numeric.
- - Telephone number of the contact
The field is required, and must be 3 numeric, followed by a hyphen (-), followed by 4 numeric. If a phone number cannot be provided, the field must still be populated. Unlike the SIN, the field cannot be populated exclusively with zeros. Whichever number is provided must adhere to the “###-####” format.
Internet File Transfer Recommendations
Follow the recommendations below to improve processing times:
- Reduce the number of information returns per submission. This will increase processing efficiency, while decreasing the likelihood of a submission being rejected due to non-conformity with the CRA schema and XML specifications.
- Reduce the uncompressed size of the XML files submitted. By keeping XML files under 1 GB (uncompressed size), you will receive information faster about errors identified in the submission.
Before you submit a larger file, or if you have been unsuccessful in submitting a larger file, consider splitting the XML file as per the recommendations above. Attempt to create a very small XML file (e.g., under 2 MB), and submit it. Use the error messages you receive, if any, as guidance to investigate issues in the remaining files you will submit.
Common Errors – T619, Electronic Transmittal Record
Mandatory information that is missing or invalid within a T619 will result in the entire submission being rejected. Correct information must be provided for all required fields on the T619. For example:
- Transmitter Contact Email: the value in this field must be a valid email format (e.g., businessname@domain.ca is a valid format – businessname.on.ca is not a valid email address format).
Submissions will also be rejected if an incorrect Transmitter Account Number is provided on the T619. You must ensure that the account number that was used to access the filing portal is the same account number entered in the T619.
- My Business Account (MyBA)
To access file a return through MyBA, you are required to select a program account for the 15-character business number (BN15) (RP or RZ). Ensure the same BN15 is entered in the T619.
- Represent a Client (RAC)
To access file a return through Represent a Client (RAC), your RAC Identifier (RepID) is required. Ensure the RepID is entered in the T619.
- Web Access Code (WAC)
To access the filing applications using a WAC, only a BN15, Trust account, or non-resident (NR) account number is accepted. Ensure the same account number is entered in the T619.
Common Errors – Rejected Submission
After submitting a file via Internet File Transfer (IFT), you may receive a message on screen or in the Confirmation of Receipt email with the following message indicating that the submission is rejected:
Your submission […] was rejected for one or more of the following reasons:
- Missing or invalid mandatory field identifier(s)
- Invalid sequence of field identifier(s)
- Invalid formatting in mandatory field identifier(s)
- Invalid formatting between field identifier(s)
- File does not meet CRA specifications. Please refer to File information returns electronically (tax slips and summaries) - Canada.ca
Missing or Invalid Mandatory Field Identifier(s)
- Issue
- This error can occur for the following reasons:
- A mandatory tag is missing from the XML file.
- A mandatory tag associated to another return type is included in the XML file.
- This error can occur for the following reasons:
- Recommended Actions
- Ensure that:
- All mandatory tags for the return type are present and populated.
- The XML file contains only the mandatory tags associated to the return type.
- Ensure that:
Invalid Sequence of Field Identifier(s)
- Issue
- This error can occur for the following reasons:
- The sequence of field identifiers does not match the schema.
- Items in the XML files are not enclosed in paired opening and closing field identifiers (tags).
- Opening or closing field identifiers are missing.
- Field identifiers are improperly nested (i.e., tags are not closed in the same order in which they were opened).
- Parent tags are missing expected child tags.
- Empty parent tags.
- This error can occur for the following reasons:
- Recommended Actions
- Ensure that:
- All opening field identifiers have a corresponding closing field identifier.
- Field identifiers are properly nested.
- The sequence of field identifiers matches the schema for the return type.
- All required child tags are provided for a given parent tag.
- Empty parent tags are removed from the XML file.
- Ensure that:
Invalid Formatting in Mandatory Field(s)
- Issue
- This error can occur for the following reasons:
- A mandatory field is left blank.
- A mandatory field is formatted incorrectly.
- This error can occur for the following reasons:
- Recommended Actions
- Ensure that:
- All mandatory fields for the return type are present and populated.
- All mandatory fields are formatted according to the specifications for the return type.
- Ensure that:
- Note
- Optional fields are verified for formatting if present and populated. If the formatting errors affect a significant portion of the file, the submission may be rejected.
Invalid Formatting Between Field Identifier(s)
- Issue
- This error can occur for the following reasons:
- One or more characters is present outside of a field identifier.
- This error can occur for the following reasons:
- Recommended Actions
- Ensure that:
- No characters are present outside of a field identifier.
- Ensure that:
Common Errors – Examples
The PPRTR_SIN parent tag is Present on the Summary but Child Tag is Missing or Invalid
- Issue
- This error can occur for the following reasons:
- The parent tag PPRTR_SIN is present in the XML, but the file is not a T4 or T4A return.
- The PPRTR_SIN tag is only valid for T4 and T4A returns.
- The parent tag PPRTR_SIN is present in the T4 or T4A XML, but the mandatory child tag <pprtr_1_sin> is missing.
- The parent tag PPRTR_SIN is present in the T4 or T4A XML, but the child fields <pprtr_1_sin> or <pprtr_2_sin> are invalid.
- The parent tag PPRTR_SIN is present in the XML, but the file is not a T4 or T4A return.
- This error can occur for the following reasons:
- Recommended Actions
- Ensure that:
- The tag PPRTR_SIN is only present in T4 or T4A files.
- If no value is reported for the PPRTR_SIN child tags, remove them from the XML. Both the parent and associated child tags must be removed.
- The <pprtr_1_sin> and <pprtr_2_sin> fields contain a valid SIN and pass the Mod10 check.
- Ensure that:
Invalid SIN
- Issue
- This error can occur for the following reasons:
- A SIN field contains one or more blank spaces or hyphens (before, in the middle, or after the SIN).
- A SIN is invalid (i.e., does not pass the Mod10 check).
- This error can occur for the following reasons:
- Recommended Actions
- Ensure that:
- No blank spaces or hyphens are present for each SIN.
- Each SIN is valid and passes the Mod10 check.
- Ensure that:
Missing or Invalid Content in One or More Optional Fields
- Issue
- This error can occur for the following reasons:
- A tag contains invalid values. For example:
- A special character in a field that does not allow it.
- A numeric field with an alpha character (e.g., characters in the area code).
- An alpha field with numeric values (e.g., numeric values in the province code).
- A tag contains invalid values. For example:
- This error can occur for the following reasons:
- Recommended Actions
- Ensure that:
- All fields are completed according to the specifications for the type of return being filed (e.g., T4, T4A, etc.).
- Ensure that:
Filer Account Number is Missing or Invalid for this Type of Return
- Issue
- This error can occur for the following reasons:
- The Filer Account Number provided on the Summary is missing or formatted incorrectly for this type of return.
- This error can occur for the following reasons:
- Recommended Actions
- Ensure that:
- The Filer Account Number is provided in the XML file.
- The Filer Account Number is formatted correctly for this type of return.
- Ensure that:
Filer BN in the Summary is Missing or Invalid for this Type of Return
- Issue
- This error can occur for the following reasons:
- The Filer BN provided on the Summary is missing or formatted incorrectly for this type of return. For example, an RC or RT program account was provided for the filer’s BN15, instead of an RP (e.g., for T4 and T4A returns) or RZ (e.g., for T5 and T5007 returns) program account.
- The program account (e.g., RP0001, RZ0001) is closed.
- This error can occur for the following reasons:
- Recommended Actions
- Ensure that:
- The BN is provided in the XML file.
- The BN is formatted correctly for this type of return. For example, an RP program account is provided for T4 and T4A returns, and an RZ program account is provided for T5 and T5007 returns.
- The program account (e.g., RP0001, RZ0001) is not closed.
- Ensure that:
- Note
- Program accounts (RP, RZ) must be in active status in order for the submission to be accepted for all return types. If you do not have an active program account, you can create one by visiting Business Registration Online or contacting the CRA.
- If the BN is formatted correctly and the program account is not closed, please contact the CRA.
Invalid Formatting or Value in One or More Fields
- Issue
- This error can occur for the following reasons:
- A field has been completed with an incorrect format.
- A field contains an invalid value.
- Incorrect Format Example. The XML specifications provide the following formatting requirements for the contract number of a T4RSP slip:
- <ctrct_nbr></ctrct_nbr>
- Contract number
- - Required 12 alphanumeric
- - T4RSP slip box 14
- - the Registered Retirement Savings plan contract number
- If a hyphen is included in the field (e.g., ABC-12345678), the format is considered invalid.
- Invalid Value Example. The XML specifications provide the following formatting requirements for the recipient first name of a T4A slip:
- <gvn_nm></gvn_nm>
- Recipient first name
- - 12 alphanumeric
- - first 12 letters of the recipient’s first given name
- - if only initials are available, provide the recipient’s first initial
- If more than 12 alphanumeric characters are included in the field, the value is considered invalid.
- This error can occur for the following reasons:
- Recommended Actions
- Ensure that:
- All fields are completed according to the specifications for the type of return being filed (e.g., T4, T4A, etc.). Pay special attention to mandatory tags and their required formats.
- All formatting issues are addressed before submission.
- Ensure that:
Invalid Field Identifiers (tags)
- Issue
- This error can occur for the following reasons:
- A field identifier is present in the XML file, but does not exist for that return type in the schema.
- This error can occur for the following reasons:
- Recommended Actions
- Ensure that:
- Only field identifiers that are listed in the schema for the return type are included in the XML file.
- Ensure that none of the following field identifiers are present in the XML file. These field identifiers have been removed from the 2025 schema.
- Report Type Code (<rpt_tcd></rpt_tcd>)
- Transmitter number (<trnmtr_nbr></trnmtr_nbr>)
- Transmitter Type Indicator (<trnmtr_tcd></trnmtr_tcd>)
- Transmitter address (<TRNMTR_ADDR></TRNMTR_ADDR>, <addr_l1_txt></addr_l1_txt> and <addr_l2_txt></addr_l2_txt>)
- Transmitter city (<cty_nm></cty_nm>)
- Transmitter province or territory code (<prov_cd></prov_cd>)
- Transmitter postal code (<pstl_cd></pstl_cd>)
- Transmitter name line 2 (<l2_nm></l2_nm>)
- Ensure that:
Special Characters
If you need to use any of the following special characters, please use a semi-colon after the characters as shown in the chart below:
Special Character | Use |
---|---|
< | < |
" | " |
> | > |
' | ' |
& | & |
Although the special characters in the table above are entered as 4 characters or more, they are considered to be only 1 character when entered in the content area of an XML tag.
Example: "John Smith & Sons" will be entered as: "John Smith & Sons"
The following are the acceptable special characters for the respective fields:
Field | Special Characters |
---|---|
All Financial fields | period (.) comma (,) |
Financial fields (negative amounts only) | hyphen (-) |
Filer Name | hyphen (-) period (.) ampersand (&) apostrophe (‘) quotation marks (“) comma (,) slash (/) number sign (#) parenthesis (()) |
Filer Address (Address Lines 1 and 2; City) | hyphen (-) period (.) ampersand (&) number sign (#) comma (,) apostrophe (') space Postal Code hyphen (-) space |
Contact Information (Filer Contact Name) | hyphen (-) period (.) ampersand (&) apostrophe (‘) quotation marks (“) comma (,) slash (/) number sign (#) parenthesis (()) |
Recipient Name (Surname or Given Name) | hyphen (-) period (.) ampersand (&) apostrophe (') space |
Recipient Business Name | hyphen (-) period (.) ampersand (&) apostrophe (‘) quotation marks (“) comma (,) slash (/) number sign (#) parenthesis (()) |
Recipient Address (Street Address lines 1 and 2 and City) | hyphen (-) period (.) ampersand (&) number sign (#) comma (,) apostrophe (') |
Page details
- Date modified: