IBM Sterling Transformation Extender

Sterling Transformation Extender

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


#Sterling
#Supplychain
 View Only
  • 1.  Can validation be done at Type tree level?

    Posted 02/23/10 06:10 PM

    Originally posted by: SystemAdmin


    Hi,

    I would like to know if validations can be performed on input and output type trees.

    Most of the the cases my output type tree is not vlaidating the data, I have to use Fail functional to force stop the execution of map.

    Please help!!

    -Thanks and Regards,
    Rajesekhar Potteti
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 2.  Re: Can validation be done at Type tree level?

    Posted 02/24/10 09:02 AM

    Originally posted by: repanzer


    You can put restrictions on values in fields (field must be = A or B), or field>50, but chances are, you want to run your map, then validate the output with another map that has that output type tree as the input type tree. What exactly is the situation which is occuring, making your output bad?
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 3.  Re: Can validation be done at Type tree level?

    Posted 02/24/10 03:03 PM

    Originally posted by: SystemAdmin


    I was in a belief that output type tree will validate the out message when sending it to out side environment.
    But that is not happening. I am checking conditions in map and failing manually.

    Validation happens at input typee tree but not at output type tree. Is my understanding correct?

    Please clarify!!

    -Thanks and Regards,Rajesekhar Potteti
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 4.  Re: Can validation be done at Type tree level?

    Posted 02/24/10 04:03 PM

    Originally posted by: NancyR


    Yes. WTX validates its input but does not validate the output.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 5.  Re: Can validation be done at Type tree level?

    Posted 02/24/10 04:17 PM

    Originally posted by: repanzer


    The most common map error (warning in this case), I would say, is;

    28 Input type contains errors

    or

    8 One or more inputs was invalid

    but there is;

    14 One or more outputs was invalid

    But that is does not tell you that if you took the output of a "map successful" and ran it against the output type tree as an input care, it would pass. Having the map fail the way you have it may be what you want.

    For some of our processes, rather then put the source event on that map in system, we use a control map. So the data get's dropped, it kicks off the control map, where the input to the control map is a blob of text, so it never fails validation. You then take that data and pass it to the actual data translation map in a RUN statement, setting the output to "ECHO", which will return the output of the RUN map into the field where you ran the map. So in your first output field, you run the map, which places the output in that field. You then take that field (with the data you just mapped) and run it against the "output validation" map, which is just a map with the output type tree as input, to validate the output (as you would like). Then depending on what result of that map is(using LASTERRORCODE looking for a 0, map successul), if it's successful, you PUT your data somewhere, else you fail like you're doing now.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 6.  Re: Can validation be done at Type tree level?

    Posted 02/25/10 06:29 AM

    Originally posted by: TimUK


    I seem to remember that you can get the map to do further output validation by altering the default map settings (map settings|warning|custom|output...) and/or asking it to do a map trace on output.

    The map trace obviously has performance implications, but then so does calling a validation map.
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 7.  Re: Can validation be done at Type tree level?

    Posted 02/25/10 07:54 AM

    Originally posted by: NancyR


    Output objects are only validated when data audits are defined for that output and Data Log is enabled.
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 8.  Re: Can validation be done at Type tree level?

    Posted 02/25/10 11:32 AM

    Originally posted by: TimUK


    I knoew it was there somewhere.
    Thanks for the correction Nancy.
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender