AEM Scene7 invalidation API intermittently fails with XML parsing error 30000

This article describes an issue where Scene7 cache invalidation API calls from Adobe Experience Manager (AEM) intermittently fail with XML parsing error 30000, resulting in s7-flush-agent queue blockage. The resolution involves ensuring proper XML escaping of query-string separators in the request payload.

Description description

Environment

Adobe Experience Manager (AEM) with Scene7 integration

Issue/Symptoms

  • Scene7 invalidation API calls intermittently fail when triggered by AEM’s s7-flush-agent.
  • Success rate is approximately 1 in 4; identical requests often succeed after multiple retries.
  • When failures occur, the s7-flush-agent queue becomes blocked, delaying cache invalidation.
  • The following XML error response is returned:

30000 com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character ‘=’ (code 61); expected a semi-colon after the reference for entity ‘hei’ at [ row,col {unknown-source}] : [ 11,105]

  • The same request body is sent for retries; initial attempts frequently fail with the above XML parsing fault, but subsequent retries with the same payload eventually succeed.

Expected behavior:

  • The Scene7 API should process identical valid requests consistently, without intermittent XML parsing faults.

Impact:

  • The s7-flush-agent queue becomes blocked or stuck frequently.
  • Cache invalidation is delayed and unreliable.

Steps to reproduce

  1. Publish any dynamic media image with image profiles from the /content/dam path in AEM.
  2. Observe that the s7-flush-agent queue may become blocked for several minutes until the Scene7 server call passes.

Cause

The intermittent XML parsing error was caused by unescaped query-string separators in the invalidation request payload, resulting in malformed XML that triggered parsing faults on the Scene7 server. Properly escaping these characters resolved the issue.

Resolution resolution

To fix the XML parsing error 30000, follow these steps:

  1. Enable detailed logging for s7-flush-agent in a lower environment to capture both failed and successful invalidation requests, including the request body and response.
  2. Analyze the error response for failed requests. Look for XML parsing faults similar to the one described above.
  3. Review the construction of the invalidation request URL and parameters in the AEM integration. Specifically, check if query-string separators and special characters are properly XML-escaped in the request payload.
  4. Update the implementation to use XML-escaped query-string separators (for example, replace & with & in XML contexts) for all URL parameters sent in the invalidation request.
  5. Retest the invalidation workflow by publishing assets and monitoring the s7-flush-agent queue and Scene7 server responses. Confirm that all requests are processed successfully and the XML parsing error no longer occurs.
  6. Monitor Scene7 server logs to ensure no further parsing faults are reported and that cache invalidation requests are handled reliably.
recommendation-more-help
experience-cloud-kcs-help-kbarticles