SAP Knowledge Base Article - Preview

3136526 - CRA Magnetic Media - Known XML validation errors and how to solve them

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:

  1. 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.

  2. 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.

  3. 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.


Read more...

Environment

  • Human Capital Management (HCM)
  • SAP R/3
  • SAP ERP Core Component
  • SAP ERP
  • SAP enhancement package for SAP ERP
  • SAP enhancement package for SAP ERP, version for SAP 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"
, 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.