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.flatFile:convertToValues empty field csv file

    Posted Fri June 24, 2016 06:05 AM

    Hi experts,

    I want to convert csv file into document type.
    I create flat file then create schema.

    when I try to call pub.flatFile:convertToValues, which is csv file has some empty fields.
    All empty fields not mapped in to data type.

    Are there any configuration to show field with empty value in my data type?

    Please help…

    Thanks


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


  • 2.  RE: pub.flatFile:convertToValues empty field csv file

    Posted Fri June 24, 2016 06:29 AM

    Try to set createIfNull=true as part of service usage.

    Thanks,


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


  • 3.  RE: pub.flatFile:convertToValues empty field csv file

    Posted Fri June 24, 2016 08:08 AM

    Hi,

    I already set createIfNull=true, My field was displayed. For example my “City” field is empty.
    This field displayed
    City = null

    but when I tried to map thid field using this code => %/docs/recordWithNoID/Province% in to xyz variable

    my xyz value is %/docs/recordWithNoID/Province% too.

    How to make my xyz value = empty

    Thank you


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


  • 4.  RE: pub.flatFile:convertToValues empty field csv file

    Posted Fri June 24, 2016 09:01 AM

    Hi Junedi,

    you will have to use a copy condition on the mapping and evaluate the source field for null.

    Other approach is to use a BRANCH and check for the source field.

    Regards,
    Holger


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


  • 5.  RE: pub.flatFile:convertToValues empty field csv file

    Posted Fri June 24, 2016 09:35 AM

    Yes, try as Holger told. You have use basic coding for it.

    Thanks,


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


  • 6.  RE: pub.flatFile:convertToValues empty field csv file

    Posted Tue June 28, 2016 06:40 AM

    There are so many field in my csv.
    should I create validation for every field ?
    Are there any simple way to validate them ?

    Thanks


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