IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Pub:string:concat - transformers cannot loop over elements

    Posted Tue December 20, 2022 05:23 AM

    What product/components do you use and which version/fix level are you on?

    Web 10.11

    Is your question related to the free trial, or to a production (customer) instance?

    Customer, PRD

    What are you trying to achieve? Please describe it in detail.

    I can’t concat two variables while looping.

    Variable1: 1
    Variable2: D
    Desired result: 1 D

    I can recall doing this in the past without any issues, but I can’t figure out why I can’t do it today.

    Do you get any error messages? Please provide a full error message screenshot and log file.

    image

    What I’m doing wrong?
    Can someone help? thank you

    Have you installed all the latest fixes for the products and systems you are using?


    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: Pub:string:concat - transformers cannot loop over elements

    Posted Tue December 20, 2022 05:43 AM

    You are missing a loop, you need to add a 2nd that loops over ‘ArrayOfUAsItem’
    regards,
    John.


    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Pub:string:concat - transformers cannot loop over elements

    Posted Tue December 20, 2022 11:39 AM

    I @John_Carter4 this doesn’t work.

    A double loop was indeed my first attempt. But then I decided to drop it.

    It doesn’t stop on the map, goes straight to the default.

    I tried as an input array this:
    /results/Results/UAs/ArrayOfUAsItem
    and
    /ArrayOfUAsItem

    Any idea?


    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Pub:string:concat - transformers cannot loop over elements

    Posted Tue December 20, 2022 02:26 PM

    Principal is right. However, if you look you will see that the icon for ArrayOfUAasItem is still showing as a list i.e. sheaf of paper. Hence, your inner look is not configured correctly. Your loop paths are wrong

    1st loop - either /results/Results or /results/Results/UAs. (Not sure where the first array is in your structure)
    2nd loop - /results/Results/UAs/ArrayOfUAsItem

    regards,
    John.


    #Integration-Server-and-ESB
    #webMethods


  • 5.  RE: Pub:string:concat - transformers cannot loop over elements

    Posted Wed December 21, 2022 06:27 AM

    Hello @John_Carter4 I think this is a bit more complex.

    None of the solutions above worked.

    I did some mappings to be able to remove one of the loops.

    Now I have a document with an ArrayList in it.
    image

    Loop input array:
    /genericDocument/tempArrayOfUAsItem

    Error:
    image


    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: Pub:string:concat - transformers cannot loop over elements

    Posted Wed December 21, 2022 12:41 PM

    Looking at the screenshot it appears that your path is still wrong.
    The loop starts with ‘genericDocument…’. However, you are mapping from ‘results/Results/UAs/ArrayOfUAsItem’
    Best thing to do is right click on the list that you want to loop over and then copy it. Paste the result into the input array property of your loop. Make sure you only map after doing this. Any transitions that you made before configuring the loop will be invalid and you will have to remove them and remap :frowning:
    John.


    #webMethods
    #Integration-Server-and-ESB