When we are trying to convert the JSON to XML using JSONToXML policy, we are getting the below error:
{
"fault": {
"faultstring": "JSONToXML[JSON-to-XML-StacaNomination]: Execution failed due to reason: JSONToXML[JSON-to-XML-StacaNomination]: Execution failed due to reason: null",
"detail": {
"errorcode": "steps.json2xml.ExecutionFailed"
}
}
Here’s my JSONToXML policy
<JSONToXML async="false" continueOnError="false" enabled="true" name="JSON-to-XML-1">
<DisplayName>JSON to XML 1</DisplayName>
<Source>request</Source>
<OutputVariable>response</OutputVariable>
<Options>
<NamespaceBlockName>#namespaces</NamespaceBlockName>
<DefaultNamespaceNodeName>$default</DefaultNamespaceNodeName>
<NamespaceSeparator>:</NamespaceSeparator>
<AttributeBlockName>#attrs</AttributeBlockName>
<AttributePrefix>@</AttributePrefix>
<ObjectRootElementName>Root</ObjectRootElementName>
<ArrayRootElementName>Array</ArrayRootElementName>
<ArrayItemElementName>Item</ArrayItemElementName>
<TextNodeName>#text</TextNodeName>
<NullValue>NULL</NullValue>
<InvalidCharsReplacement>_</InvalidCharsReplacement>
</Options>
</JSONToXML>
Can someone please help find the cause of this issue ?