Passing XML payload into new XML generates parsing error in VCF Operations Orchestrator 9.0.2
search cancel

Passing XML payload into new XML generates parsing error in VCF Operations Orchestrator 9.0.2

book

Article ID: 438656

calendar_today

Updated On:

Products

VCF Automation

Issue/Introduction

  • When executing workflows that process API responses containing XML payloads in VCF Operations Orchestrator 9.0.2, the workflow may fail during execution. This issue occurs specifically when the script attempts to initialize an XML object using the new XML() constructor.
  • You will observe the following error message in the workflow logs
    TypeError: The processing instruction target matching "[xX][mM][lL]" is not allow

Environment

VCF Operations Orchestrator 9.0.2

Resolution

To resolve this issue, you must update your VCF Operations Orchestrator workflow scripts to use the fully supported built-in XML Plugin, which handles standard XML headers flawlessly without crashing.

  1. Edit the affected workflow and locate the script task processing the XML payload.

  2. Identify the line that uses the legacy, broken constructor. For example:

    var apiResponse = new XML(response.contentAsString);
    
  3. Replace it with the supported XMLManager.fromString() method:

    var apiResponse = XMLManager.fromString(response.contentAsString);
    
  4. Save and run the workflow to confirm the XML parses successfully.