Skip to main content

XML.EXTERNAL_ENTITY_NOT_ALLOWED

Error code XML.EXTERNAL_ENTITY_NOT_ALLOWED, raised by packages. Area: XML.

What it means​

  • The XML declares an entity that reads a file or URL (SYSTEM/PUBLIC), which is refused for security
  • The XML refers to an external entity, which is refused for security

What to do​

  • Remove the external <!ENTITY ...> declaration; internal entities and DOCTYPE lines are allowed.
  • Remove the external entity or DTD reference.

In a Try block, a Catch can match this code. An internal error shows a reference such as ERR-…: an administrator finds the details beside it in the server log.

Search words: XML EXTERNAL_ENTITY_NOT_ALLOWED external entity not allowed