IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.

 View Only
Expand all | Collapse all

Difference between "one or more input was invalid" and "input valid but known data found"

  • 1.  Difference between "one or more input was invalid" and "input valid but known data found"

    Posted Mon November 27, 2017 12:08 PM

    Originally posted by: chidroop


    Hi,

     

    How does map decide when to fail with error "one or more input was invalid" and when with  "input valid but known data found".

    I have similar Numeric items in two different records, one at HEADER level and one at DETAIL level with identical properties.

    But when I am passing alpha value in HEADER level item, map is failing with error "one or more input was invalid", however when I am passing alpha value in DETAIL level item, map is failing with error "input valid but known data found".

     

    Can anyone please tell on what basis map gives these errors ? 

    Is it dependent of how mapping is done in output card ? (checked but doesn't look like)

     

    Thanks,

    Chidroop


    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 2.  Re: Difference between "one or more input was invalid" and "input valid but known data found"

    Posted Mon November 27, 2017 07:29 PM

    Originally posted by: RichMcFate


    The message is entirely dependent upon the input data and type tree.  The mapping rules are not relevant.

    If the map is unable to find all required components of the input card root object, then it reports, "One or more inputs is invalid."  If it can find instances of all required objects, but then discovers data that it doesn't recognize, it reports, "Input valid but unknown data found."

    In your case, I suspect the HEADER object is required and the range of the DETAIL group is specified as (s) or (1:s).  So when the bad numeric object was in the HEADER, the map failed to find a valid required object (the HEADER) so it reported that one or more inputs was invalid. In the case where the bad value was in a DETAIL object, the map had already found a HEADER and, either the DETAIL was specified as (s), which means that it isn't required, or the bad value was after the first DETAIL group.  In either of those two cases, all required objects had been found, so the input was valid but everything after the bad value was unrecognized.  So it reported that the input was valid but there was unknown data following the part that it recognized.

    Hope this helps,

    Rich


    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 3.  Re: Difference between "one or more input was invalid" and "input valid but known data found"

    Posted Tue November 28, 2017 08:52 AM

    Originally posted by: chidroop


    Thanks a lot Rich for your help.

    Just one more query, so in case of an extra line at the end of the input file . Map fails with error "Input valid but unknown data found." and output file will always be created  ?


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 4.  Re: Difference between "one or more input was invalid" and "input valid but known data found"

    Posted Wed November 29, 2017 12:52 AM

    Originally posted by: RichMcFate


    The 'Input valid but unknown data found' message is, by default, a warning rather than an error.  So, yes it will deliver output for as much of the data as it was able to parse.  There are ways to get different behaviors.  What is it you want the map to do with extra lines?

     

    Thanks,

    Rich


    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange