Resolve DXML_MESSAGE_0002 errors during PDF and HTML5 output generation in AEM Assets
Adobe Experience Manager (AEM) Assets with the Publish Microservice may intermittently fail to generate PDF and HTML5 outputs with the DXML_MESSAGE_0002 (HTTP 400) error. To resolve the issue, recreate the affected output preset and verify that output generation completes successfully.
Description description
Environment
Adobe Experience Manager (AEM) Assets with the Publish Microservice.
Issue/Symptoms
- PDF and HTML5 outputs intermittently fail to generate.
- The error code *DXML_MESSAGE_0002 (HTTP 400)*appears in logs.
- The UI may display an output generation failure, even if outputs are generated and stored in the output folder.
- Functions such as View Output and View Log may be unavailable for the affected output preset.
- The issue is not consistently reproducible and may affect specific output presets.
Root cause
The most likely cause is a stale or inconsistent persisted state associated with the affected output preset. Recreating the preset reinitializes its configuration and metadata, restoring the output-generation workflow. The underlying trigger for the issue may not be visible in logs.
Resolution resolution
Follow the steps below to resolve the issue:
- Identify the affected output preset (for example, a custom PDF or HTML5 preset).
- Delete the problematic output preset in the target environment.
- Recreate the output preset using the same configuration as a working environment or as previously configured.
- Attempt to generate PDF or HTML5 outputs using the recreated preset.
- Verify that output generation completes successfully and that View Output and View Log functions are accessible from the Output Preset window.
- If the issue recurs, check for any UI or indexing errors in the logs, and confirm whether the output file is present in the output folder even if the UI reports a failure.
recommendation-more-help
experience-cloud-kcs-help-kbarticles