Content Management and Capture

Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only

Error in XML to JSON transformation

  • 1.  Error in XML to JSON transformation

    Posted 2 hours ago

    Hello team.
    I'm encountering an error when transforming an XML message to JSON.
    The problem started today when I'm resuming work on an API that was started 9 months ago and was performing the transformation without issue. The "XMLtoJson1" image shows the API flow; currently, we're working on the "post /initiate-transaction" operation.
    Nine months ago, when this project began, the aforementioned operation successfully transformed the data frame, but now that we're trying to resume the project, I'm receiving the following error:
    <?xml version="1.0" encoding="UTF-8"?>
    <errorResponse>

    <httpCode>500</httpCode>

    <httpMessage>Internal Server Error</httpMessage>

    <moreInformation>Parse action for XML found data that is not XML.</moreInformation>
    </errorResponse>

    I don't know why this is happening.

    I've also included the YAML snippet that reflects the internal configuration of the nodes used.

    I need the incoming message to pass through a condition validator I'm using in the "ExtractValue_PAIN001" node and then be converted to JSON, but it's not working.

    Can you help me with this?

    Thanks. I've attached the image, the assembly snippet, and the XML message used in Postman.



    ------------------------------
    JIMMY VIVAS PERILLA
    ------------------------------

    Attachment(s)

    txt
    PostmanMessage.txt   20 KB 1 version
    txt
    new17.txt   3 KB 1 version