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.  Map not reading new records

    Posted 08/26/15 09:19 AM

    Originally posted by: edi1999


    I posted about this map in July and thought I had it working but it is not.  It's like the map is not recognizing a new <lender> and I only get the headers once.  The client this map is being developed for has not provided us with a current correct schema so we've created one from a test file using Visual Studio.  I'm wondering if the schema is not correct and that's the issue although it appears to be correct.  Screen shots of my maps are attached.

    https://www.ibm.com/developerworks/community/forums/html/topic?id=7cbdae71-3360-4f8f-b3b5-54e51f80d801&ps=25

    I have a map receiving an xml file and creating a flat file.  My input file contains 3 lender loops and is the following format;

    Input                                                                  Output (repeated 3 times)

    <lender>                                                           header record 1

                   <notice>                                            header record 2

                   <notice>                                            lender1

    <lender>                                                           notice

                   <notice>                                            notice

    <lender>                                                           lender 2

                   <notice>                                            notice

                   <notice>                                            lender 3

                                                                             notice

                                                                             notice

     


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


  • 2.  Re: Map not reading new records

    Posted 08/27/15 11:38 AM

    Originally posted by: thorstenhirsch


    Hi. Your first functional map has the wrong parameters. You are calling:

    F_MakeClientLoop(global:Input, ...)
    

    But global:Input is not a sequence. Thus WTX calls this functional map one time only. You should use the sequence as the first parameter of the functional map in order to call it multiple times:

    F_MakeClientLoop(lender:.:Input, ...)
    

    I also suggest to rename the function to F_EachLender.


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


  • 3.  Re: Map not reading new records

    Posted 08/27/15 02:23 PM

    Originally posted by: edi1999


    Thanks that fixed that part.  There was an issue with the schema but I managed to get that resolved too.


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