• Last edited on: 22 August 2025

Unexpected server error

Various validation errors or missing cXML tags cause an unexpected server error.

One or more of the following validation rules failed:

  • Invalid Coupa PO number
  • Invalid UOM
  • Invalid PO line number
  • Missing cXML tags (e.g., IF creditMemo the original invoice number)
  • If it's a Services PO then use Services tags
  • Extra cXML tags that don't belong in an element or if the supplier is passing the "creditMemo" type, which is not supported in Coupa

How do I fix it?

Ensure that the following are valid:

  • The cXML Endpoint that the payload is being posted to -
  • Coupa PO Number or Contract number
  • Line UOM
  • PO Line Number Reference
  • If creditMemo, then check of the original_invoice is provided in the payload.

If all the above fields are valid and the 500 error is persisting, we recommend reviewing our example payloads and ensuring your cXML data strucuture follows DTD.

Example payloads can be found here: Standard Invoice Examples

Example

<Response>
		<Status text="Internal Server Error" code="500">Unexpected server error.</Status>
</Response>