What Beanflow Checks Before It Generates a T4 XML

Beanflow will not build a T4 XML from incomplete or contradictory payroll data. This guide lists the company, employee, payroll, mapping, year-end, and CPP/EI facts it verifies — and separates the gaps that stop generation from the ones that only warn.

Last updated November 2026

Filing deadline for the 2026 tax year

  • T4 and T4A returns for the 2026 tax year are due by the last day of February 2027. February 28, 2027 is a Sunday, so under the CRA's weekend rule a return received or postmarked by Monday, March 1, 2027 is on time.
  • Employees (T4) and recipients (T4A) must get their slips on or before the same filing due date.

Late filing can lead to penalties; see the CRA's when to file information returns. For T4 slips, see our T4 year-end guide.

At a glance

  • The XML is built from approved payroll only, on a pay-date basis. Draft, voided, and superseded runs are not reportable.
  • Errors and indeterminate results block official generation. Warnings stay visible but do not block.
  • Three layers of checks: core data health, CPP/EI consistency (PIER), and the year-end facts used only by formal T4 generation.
  • Official generation runs from January 1 to the last day of February after the tax year — the normal window for original generation. Controlled late originals and controlled corrections remain possible after the window closes. The current year is preview only.
  • A clean result is not a CRA acceptance. The CRA validates the file again after upload and reports the outcome separately.

Why the check exists

A T4 XML is a filing artifact, not just an internal report. Beanflow generates and validates the file, but generating it does not file the return — the employer still transmits it through CRA Internet File Transfer. It carries employee SINs, employer account numbers, and the amounts used for CPP, EI, and income tax. Correcting it after filing means amended or cancelled slips, so Beanflow checks the source data before it writes the file.

The checks are deliberately layered. Data health catches company, employee, and payroll problems before you reach the generation screen. The CPP/EI preflight catches contradictions in the contribution history. The formal generation path then requires the year-end facts and validates the finished XML against the CRA schema.

A check that passes is not a statement of CRA compliance. It means the specific, in-scope conditions described here were met.

What blocks generation and what only warns

Beanflow reports findings with two severities that behave differently. This is the distinction to understand before you start fixing data: an error prevents official generation, while a warning is advisory.

SeverityEffectExamples
ErrorBlocks official T4 generation until the data is corrected and the checks are re-run.Missing SIN for reportable payroll, missing date of birth for a CPP-exempt employee, an uncovered pay period, duplicate or overlapping approved records, payroll outside the employment window, multi-province payroll.
IndeterminateAlso blocks. Beanflow cannot prove the payroll calendar, so it refuses to treat the result as clean.The expected pay-period series cannot be reconstructed.
WarningVisible and worth fixing, but does not block generation.Incomplete business number, company address or contact details, employee address, or a missing SIN for an employee whose year is zero-only.

A warning can still cost you time after upload if the CRA expects the field on the slip or in the transmitter record. Fix warnings before filing even when Beanflow will let you continue.

Company data

RequirementWhat Beanflow needsIf it is missing
Payroll accountA CRA payroll deductions account in the form 123456789RP0001: nine digits, RP, and four digits.Generation stops. A GST/HST RT account is rejected because it cannot be used as a payroll account.
Filing availabilityThe CRA filing specification for the tax year must be active.Generation stops for that tax year.
Business numberNine digits.Warning. Correct it in company settings.
Employer addressStreet, city, and postal code.Warning. The employer address appears on the return.
Employer contactContact name, area code, phone number, and email.Warning. These fields feed the T619 transmitter contact block.

Employee data

The employee checks apply to employees whose employment window intersects the tax year or who have approved payroll in it. Employees with a year made only of zero amounts do not need a slip.

RequirementWhat Beanflow needsIf it is missing
SINA social insurance number for every employee with reportable payroll. It must decrypt and pass the SIN check digit validation before the slip is built.Error. Generation stops. A T4 slip cannot be issued without a valid SIN.
Date of birthRequired only when the employee is marked CPP exempt, because Box 28 needs it to prove the age-based exemption.Error for a CPP-exempt employee. Not required for other employees.
Province of employmentExactly one province or territory for the tax year, frozen on each approved payroll record.Error. Payroll in more than one province, or a missing frozen province, stops generation. Multi-province employment needs support review.
AddressStreet, city, and postal code.Warning. The slip should still identify the employee's address.
Employment datesHire and termination dates that cover the reportable payroll. Termination cannot be earlier than hire.Error. Reportable payroll outside the employment window, a termination before hire, or a period starting after termination stops generation.

Payroll data

T4 reporting uses the pay date, not the period worked. A payment dated December 31 belongs to that tax year; the same payment dated January 2 belongs to the next one.

RequirementWhat Beanflow needsIf it fails
Approved payroll onlyApproved runs. Draft, voided, and superseded runs are excluded.A missing approved run is a gap, not a zero.
Complete period coverageAn approved run for every expected pay period in the year. A skipped period must exist as an approved, zero-pay run — deleting it creates a gap.Error. The year is not proven complete.
No duplicate or overlapOne approved non-skipped record per employee per pay period, with no overlapping approved periods.Error. Duplicate or overlapping records can double-report income and contributions.
Pay-period configurationThe number of pay periods per year must match the pay frequency. The monthly ten-period salary case is the only exception.Error. The configuration was bypassed or predates the constraint.
No prior-employer YTDPrior-employer CPP, CPP2, and EI carryover amounts must be zero.Error. Beanflow does not support carrying another employer's YTD into the annual calculation. Cover the earlier period with its own catch-up payroll instead.

Earnings and deductions mapped to T4 boxes

A T4 slip reports amounts by box. Each structured earning and deduction in an approved payroll record must map to a verified reporting rule for that tax year. Beanflow uses the frozen snapshot on the approved record, not today's template or picker state, so changing a template later does not rewrite history.

  • System earnings and deductions must have a verified rule for the tax year. Unsupported status, a missing rule, or an unrecognized code stops generation when the amount is non-zero.
  • Custom earning types need a T4 reporting profile that states the box, tax treatment, and CPP/EI treatment. A custom type without a verified profile cannot be guessed.
  • Custom deductions follow the same rule. A non-zero deduction mapped to an unsupported employee box stops generation.
  • Employer taxable benefits need a complete snapshot with a verified employer-benefit classification, consistent CPP/EI flags, and amounts that reconcile.
  • RPP amounts must reconcile between the record-level amount and the structured deduction entries. An inconsistency cannot be resolved into Box 20 automatically.
  • Amounts must be finite numbers. A negative value is not written into the XML: report the corrected amount in the source record rather than a negative difference.

A zero-amount entry is handled differently from a non-zero entry. Beanflow does not block a zero earning just because its rule cannot be resolved, because no amount is being reported for it.

Year-end facts checked only at formal generation

Two year-end facts are outside the data health checks. They are required when the official T4 is generated, so a clean data health result does not prove they exist.

FactWhat Beanflow needsIf it is missing
Box 45 — dental coverageA confirmed December 31 fact for each employee describing the employer-offered dental coverage available to them.Official generation stops. Preview slips can show the field blank, but an official slip cannot.
Box 20 / 50 / 52 — RPPWhen RPP contributions are non-zero, a confirmed pension year-end fact with the registered plan and the Pension Adjustment. The plan must carry its CRA registration number, and the approved payroll snapshots must point to the same plan.Official generation stops. A missing plan identity, a plan conflict, or an unreconciled amount cannot be inferred.

CPP and EI consistency

Before the official file is published, Beanflow reviews the CPP and EI arithmetic across the employee's year. The check looks for contradictions that a correct payroll could not produce.

  • Exemption contradictions. A record marked CPP or EI exempt cannot also carry positive contributions or insurable/pensionable earnings for that program.
  • Box 28 evidence. The CPP exemption decision must be provable from the employee's date of birth and the approved records. If it cannot be proven, generation stops.
  • Annual maximums. CPP, CPP2, and EI amounts are compared with the annual limits and the reported pensionable and insurable earnings.

Integrity contradictions stop generation. A PIER deficiency, an unsupported case, an overdeduction, or a rounding ambiguity is advisory: it stays visible for manual review but does not block the file. Review it before filing — an advisory finding can still lead to a CRA assessment later.

Filing window and XML validation

Official T4 generation for a tax year opens on January 1 of the following year and closes at the end of February. This is Beanflow's internal generation window, not a CRA acceptance deadline. During the rest of the year the same year is available as a preview only.

Closing the window limits normal original generation; it does not close the year for filing corrections. If no official version was ever published, Beanflow offers a controlled late original: you record a reason for the original after the normal generation close, and the file is built from the complete approved payroll source. CRA rejection fixes and post-acceptance amendments are prepared as controlled corrections with a recorded reason, on their own path, and are not blocked by the window closing. Stored artifacts from closed years remain available.

When the file is built, Beanflow validates it against the CRA XML schema for that tax year and checks that the slip amounts reconcile to the T4 Summary. Only a validated file can be downloaded for Internet File Transfer.

The CRA runs its own validations after upload. Beanflow cannot guarantee that the CRA will accept every slip, and the submission number is a receipt rather than an acceptance. See how to upload the XML through Internet File Transfer and read the CRA filing report before treating the return as filed.

Pre-generation checklist

  1. Confirm the tax year. The year is the calendar year of the pay date, and normal original generation runs from January 1 to the end of February. Controlled late originals and controlled corrections remain possible after the window closes.
  2. Complete the company profile. Payroll account in the RP format, business number, address, and contact details.
  3. Complete each reportable employee. SIN, date of birth when CPP exempt, address, one province of employment, and employment dates that cover the payroll.
  4. Approve every pay period. No gaps, no duplicate records, no overlapping periods, and no prior-employer YTD carried into the year.
  5. Resolve every earning and deduction. Verified T4 rules, custom profiles where needed, and reconciling employer-benefit and RPP amounts.
  6. Confirm the year-end facts. December 31 dental coverage for each employee, and the RPP plan and Pension Adjustment where contributions are non-zero.
  7. Run the checks again after any change. A result is tied to the data it was run against. If payroll, employee, or year-end data changes, re-run before generating.

What a failed generation looks like

Beanflow fails closed. A failed check returns a specific reason rather than a generic error, and no XML is written when the data cannot support one. A read failure is reported as a failed check, never as a clean pass.

Correct the source data, re-run the relevant check, and generate again. Do not edit the XML, rename it, or upload a file generated before the correction: the submitted file must be the exact file the current data produced.

Frequently asked questions

Does Beanflow generate a T4 XML for the current tax year?

No. The current year is available as a preview only. Official generation for a tax year opens on January 1 of the following year and closes at the end of February — the normal window for original generation. Controlled late originals and controlled corrections remain possible after the window closes (see "Filing window and XML validation" below). A T4 is reported for the calendar year in which the pay date falls.

Do warnings stop Beanflow from generating the XML?

No. A warning means the gap is worth fixing but does not stop generation. Errors and indeterminate results do stop official generation. The distinction matters because a warning-only result is not the same as a return that the CRA will accept.

Does a clean data health result mean the CRA will accept my return?

No. A clean result means the checks Beanflow runs passed. The CRA applies its own validations after upload, and Box 45 dental coverage and RPP pension facts are checked only when the T4 is formally generated. Read the CRA filing report before treating the return as accepted.

Can one employee have a single T4 slip if they were paid in two provinces?

No. Beanflow does not support multi-province employment in one tax year. A slip reports one province of employment. If an employee has reportable payroll in more than one province, generation stops and the case needs manual review.

Why is Box 45 missing when I try to generate the official XML?

Box 45 comes from a separate year-end fact: the employer-offered dental coverage available to the employee on December 31. It is not part of the data health checks, so it surfaces only when the T4 is formally generated. Confirm the December 31 dental coverage for each employee before generating.

Can I edit the XML to fix a rejected field?

No. The XML must be the exact file Beanflow validated and generated. Fix the source data, regenerate, and validate a new file. Patching the XML by hand can break the schema or the totals and leaves no reliable evidence of what was filed.