Troubleshooting XML return codes for Performance Indicators
Who is this article for?Users who are having issues with web service integration imports.
No elevated access or permissions are required.
While troubleshooting XML import issues, you will generate return codes that can occur when importing Performance Indicator (PI) data. This article will provide an overview of the codes you can come across when using the XML test form.
1. Return Codes
<returnstatus>
<code>2</code>
<msg>PI Code: XML 7 [Required Data Missing]</msg>
</returnstatus>
This means the Performance Indicator cannot be found on the site you are importing for. It has either been renamed or deleted.
<returnstatus>
<code>2</code>
<msg>PI Code: [Required Data Missing]</msg>
</returnstatus>
This means the The PI's name is missing in the XML data entry.
<returnstatus>
<code>2</code>
<msg>Content is not allowed in prolog.</msg>
</returnstatus>
This means the XML data entry is not compatible for the PI. For example, if you have included a target value for a 'data only' PI this error will occur because data only PIs do not have target values.
<returnstatus>
<code>2</code>
<msg>cvc-datatype-valid.1.2.1: '' is not a valid value for 'integer'.</msg>
</returnstatus>
'' means there is a missing or an incorrect value in the XML data entry.
<returnstatus>
<code>2</code>
<msg>cvc-enumeration-valid: Value '' is not facet-valid with respect to enumeration '[D, W, M, Q, Y]'. It must be a value from the enumeration.</msg>
</returnstatus>
'' means there is a missing value in the XML data entry. This specific message points to <Frequency>.
<code>2</code>
<msg>The end-tag for element type "values" must end with a '>' delimiter.</msg>
</returnstatus>
This is an example of a return code where incorrect formatting is found in the XML data entry. The error specifies where this needs to be corrected.
Review the syntax guides for Feedback and Performance Indicators to correct this.