Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Parsing Error : enumeration constraint failed

Hi,

Error details:

<b>

Text:Error Location: [line 00000002][Column 000180]: Parsing Error : enumeration constraint failed.

The element: 'Qualifier' has an invalid value according to its data type

</b>

I am getting the above-mentioned error for the following message:

<b>

<?xml version="1.0" encoding="utf-8" ?>

- <GovTalkMessage xmlns="http://www.govtalk.gov.uk/CM/envelope">

<EnvelopeVersion>2.0</EnvelopeVersion>

- <Header>

- <MessageDetails>

<Class>IR-PAYE-EOY</Class>

<Qualifier>request</Qualifier>

<Function>submit</Function>

.......

</b>

The actual mapping is:

<b>

....

<xsd:element name="Qualifier" form="qualified">

<xsd:simpleType>

<xsd:restriction base="xsd:string">

<xsd:enumeration value="request" />

<xsd:enumeration value="acknowledgement" />

<xsd:enumeration value="response" />

<xsd:enumeration value="poll" />

<xsd:enumeration value="error" />

</xsd:restriction>

</xsd:simpleType>

</xsd:element>

....

</b>

From the mapping, I can see that the value of element Qualifier can be "request" which is the case in the sent message. Still, it gives an error about constraint failure. Any ideas about what I could be missing here ???

Thanks and regards

Shehryar

Former Member
Not what you were looking for? View more on this topic or Ask a question