locked
Error:Invalid input/output document into/from the transform. Does not have a single root node.. RRS feed

  • Question

  • Hi everyone,

    We have a multidestination map. OutputMessagePart_0 and OutputMessagePart_1

    according to a particular field's existence in the source, either of them are mapped. That is if the field at source exists only then the OutputMessagePart_0 is populated and vice versa.

    Problem : If either of them is blank, we have an event log error - 

    Error:Invalid input/output document into/from the transform. Does not have a single root node..

    Example : 

    - <OutputMessagePart_0>

    <ns1:RootNode />

    </OutputMessagePart_0>

    - <OutputMessagePart_1>

    - <ns1:RootNode>

    - <Telegram>

    <createtime>20150301-173353</createtime>

    <desc_j>20150206</desc_j>

    <store>1255</store>

    <upc>7021010001057</upc>

    <sesc_d>3815222</sesc_d>

    <desc_i>B</desc_i>

    <totalunits>256</totalunits>

    <M_style>2</M_style>

    <refart />

    </Telegram>

     

    P.S - The map validation succeeds.

    Regards.


    Priya VS

    Thursday, March 12, 2015 6:49 PM

Answers

  • What you're describing is the expected behavior.  There is no way around this in the Map other than make sure at least the Root Element of both output Messages is created.

    Perhaps you should do the check outside the Map and use two different Transform Shapes in a Decide Shape.

    • Marked as answer by Angie Xu Friday, March 20, 2015 1:45 AM
    Friday, March 13, 2015 3:03 AM
    Moderator