banner_ad

Getting Error line nr: 6 column nr: 50 message: cvc-pattern-valid: Value 'DIT-ONLINE' is not facet-v

ITR 787 views 1 replies

Hi! Can someone help me with filing a rectification?

I am getting "The XML Schema is invalid. Please upload the XML in the correct schema. [Error line nr: 6
column nr: 50 message: cvc-pattern-valid: Value 'DIT-ONLINE' is not facet-valid with
respect to pattern (S][W]0-9](8) for type '#AnonType_SWCreatedByCreationinfo"."

and in XML file line item colored in yellow is mentioned below. 

<CreationInfo>
            <SWVersionNo>1.0</SWVersionNo>
            <SWCreatedBy>DIT-ONLINE</SWCreatedBy>
            <XMLCreatedBy>DIT-ONLINE</XMLCreatedBy>
            <XMLCreationDate>2021-03-25</XMLCreationDate>
            <IntermediaryCity>Delhi</IntermediaryCity>
        </CreationInfo>

Can someone help me fix this issue?

Regards!

Nimz

Replies (1)

Hi Nirmala,

The error you’re encountering is due to the value DIT-ONLINE not matching the expected pattern for the <SWCreatedBy> and <XMLCreatedBy> fields in the XML schema.


What the error means:

  • The schema expects these fields to follow a pattern:
    ([S][W]0-9]{8})
    This usually means the value should start with "SW" followed by 8 digits.

  • Your value DIT-ONLINE does not match this pattern, so the XML validation fails.


How to fix it:

  1. Replace the value of <SWCreatedBy> and <XMLCreatedBy> from DIT-ONLINE to a valid string matching the pattern, e.g.,
    SW12345678 (example with "SW" + 8 digits)

  2. If you’re using software to generate the XML, check if it’s generating these tags correctly. Usually, the software version or software ID should be in this format.

  3. Update your XML like this:

 
<CreationInfo> <SWVersionNo>1.0</SWVersionNo> <SWCreatedBy>SW12345678</SWCreatedBy> <XMLCreatedBy>SW12345678</XMLCreatedBy> <XMLCreationDate>2021-03-25</XMLCreationDate> <IntermediaryCity>Delhi</IntermediaryCity> </CreationInfo>

Additional tips:

  • If you are using a third-party tool, check their documentation for the correct way to fill these fields.

  • If you manually edit XML, ensure you comply exactly with the pattern.

  • Always validate the XML with the schema before uploading.


 


CCI Pro

Leave a Reply

Your are not logged in . Please login to post replies

Click here to Login / Register  

Company
Featured 02 May 2026
Senior Executive

hitesh chandwani & co

Pune

B.Com

View Details
Company
Featured 29 April 2026
Manager- Finance and Compliance

Naveen Fintech Pvt Ltd

Kolkata

CA Inter

View Details
Company
Featured 14 April 2026
GST CONSULTANT

Abhishek G Agrawal & Co.

Korba

CA Final

View Details
Company
Featured 13 April 2026
GST CONSULTANCY

Abhishek G Agrawal & Co.

Korba

CA Final

View Details
Company
Featured 28 March 2026
Accountant

Ashok Amol & Associates

New Delhi

B.Com

View Details
Company
Featured 28 March 2026
CA Final

Ashok Amol & Associates

New Delhi

CA Final

View Details
Company
Featured ARTICLESHIP 19 March 2026
Article Assistant

Gupta Sachdeva & Co. Chartered Accountants

New Delhi

CA Final

View Details
Company
Featured 14 March 2026
Associate CA

N N V Satish&co

Hyderabad

CA

View Details