webMethods

webMethods

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.  Transformers cannot loop over list elements

    Posted Thu August 14, 2008 08:43 PM

    Hi RMG and all other Experts,

    I have a loop running on one of my document reference and in a loop i am using MAP to substring perticular value and then mapping it back to same document reference variable. But i don’t know why i am getting this exception. Appreciate your help on this.

    java.lang.RuntimeException: [ISC.0049.9027] Error at pub.string:substring - Transformers cannot loop over list elements

    I have also attached the mapping image for reference.

    Thanks
    Atul
    mapping Exception.jpg


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 2.  RE: Transformers cannot loop over list elements

    Posted Thu August 14, 2008 09:18 PM

    The error reason is in your MAP step when you map the transformer (substring) click on the link Properties and make sure the pipelineIn clientNumber field is not expecting Index there…If it is then set 0 and save it.(You shouldn’t have Index here since you are already inside loop of recordWithNoID) somehow your InArray path is not working…

    Note:
    But since the mapping field is part of the Loop documentList InArray (for recordWithNoID) then unmap link to the substring and just shift out and shift in the map step and then link the clientNumber to substring and again make sure the Index is not there…Cross check the same thing where ever you use transformers esp from a docList/fields.

    HTH,
    RMG.


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 3.  RE: Transformers cannot loop over list elements

    Posted Thu August 14, 2008 10:48 PM

    Hi RMG,

    Thanks for the reply. I tried ur suggestion but getting the same error.

    Can you please suggest me wome workaround.

    Thanks, Appreciated.

    Atul


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 4.  RE: Transformers cannot loop over list elements

    Posted Fri August 15, 2008 08:58 AM

    hi

    From the image attached in your post, it shows that you are not actually looping over GoodCustomers/recordWithNoID. Show your loop. You should have a loop step, in array should be GoodCustomers/recordWithNoID and a map step should be indented under the loop – this substring should work after that

    regards

    Paul


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 5.  RE: Transformers cannot loop over list elements

    Posted Fri August 15, 2008 06:23 PM

    Yes use a Loop step set InArray (GoodCustomers/recordWithNoID) and inside the Loop put all your map steps and re-link the recordWithNoID fields…this is what i am trying to say above.

    This will solve the problem…

    HTH,
    RMg


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 6.  RE: Transformers cannot loop over list elements

    Posted Mon August 18, 2008 08:52 AM

    hi atul,

    services should NOT be used as transformers inside any loop.
    call the service explicitly and ur problem should be resolved.

    regards
    nandan


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 7.  RE: Transformers cannot loop over list elements

    Posted Mon August 18, 2008 04:21 PM

    We can use transformers inside any loop…just we have to make sure always the loop documentlist show as doc inside the map step and when you link the transformer input you should not see any Index to be set in the map link properties section.If yes then loop on document is not working and thus you will get the error above.

    HTH
    RMG


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 8.  RE: Transformers cannot loop over list elements

    Posted Thu October 09, 2008 02:12 AM

    Similar problem for me.
    I did indent the Transformer MAP under a LOOP, but still get following error

    java.lang.RuntimeException: [ISC.0049.9027] Error at pub.date:dateTimeFormat - Transformers cannot loop over list elements

    Any workaround?


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods