Symptom
You are using program Year End Reporting, Canada: Magnetic Media - CRA XML (RPCYERK3_XML) to generate XML file for your T4 Year-end run and face the following error:
- XML file validation completed; XML file contains errors (5K322)
Since your XML has errors in accordance with the schema used, a TXT file will be created for you to detail the errors found. Then, you open the TXT file and see one or more of the following errors:
- Error Code: -1072897687
Location: /Submission/Return[1]/T4[1]/T4Slip[592]/sin[1]
Reason: '' violates pattern constraint of '\d'.
The element 'sin' with value '' failed to parse. - Error Code: -1072897687
Location: /Submission/Return[4]/T4[1]/T4Slip[1]/EMPE_NM[1]/snm[1]
Reason: '' violates minLength constraint of '1'.
The element 'snm' with value '' failed to parse. - Error Number: 1
Error Code: -1072897687
Location: /Submission/Return[2]/T4[1]/T4Slip[4591]/EMPE_NM[1]/init[1]
Reason: '1' violates pattern constraint of '\p'.
The element 'init' with value '1' failed to parse. - Error Number: 1
Error Code: -1072897687
Location: /Submission/T619[1]/TransmitterAccountNumber[1]/bn9[1]
Reason: '11111111' violates pattern constraint of '\d'.
The element 'bn9' with value '11111111' failed to parse.
Read more...
Environment
- Human Capital Management (HCM)
- SAP enhancement package 8 for SAP ERP
- SAP SuccessFactors Employee Central Payroll
- SAP S/4 HANA
Product
SAP ERP Central Component all versions ; SAP ERP all versions ; SAP HANA, platform edition all versions ; SAP R/3 Enterprise all versions ; SAP R/3 all versions ; SAP enhancement package for SAP ERP all versions ; SAP enhancement package for SAP ERP, version for SAP HANA all versions
Keywords
T4, T4A, T4AN, T4ANR, T4A-NR, PC00_M07_CCYR, RPCYERK0, XML error, XML validation, schema, YE, SIN, surname, "XML file validation completed; XML file contains errors", BN9, BN15
, KBA , PY-CA-YE , Year End for Canada , How To
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview