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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
Expand all | Collapse all

Flat File-Floating Records Implementation

  • 1.  Flat File-Floating Records Implementation

    Posted 12/04/16 09:42 AM

    Hi Team,

    I want to use floating Records property in flat file schema. I have variable name AccountTypeCode, which can come at any level and in any order. Can anyone please let me know the exact syntax which I need to mention in floating Record property.

    Thanks in advance…


    #Integration-Server-and-ESB
    #webMethods


  • 2.  RE: Flat File-Floating Records Implementation

    Posted 12/04/16 11:14 AM

    Have your reviewed “9-XX_Flat_File_Schema_Developers_Guide”, if not review chap #3 Working with Elements in Flat File Schemas and
    Dictionaries they have explained examples for both inbound and outbound parsing using floating records.

    If you still have issues, pass-on your sample working package with screen shots.


    #webMethods
    #Integration-Server-and-ESB


  • 3.  RE: Flat File-Floating Records Implementation

    Posted 12/05/16 10:25 AM

    Hi Mahesh,

    I have gone through this chapter. But I am not able to understand what should I mention in floating record property of flat file schema. Should I mention field name or record name. Is there any format to mention it.

    Second thing, Is floating record property can be used in case if record parser type is EDI docucment only ?


    #webMethods
    #Integration-Server-and-ESB


  • 4.  RE: Flat File-Floating Records Implementation

    Posted 12/06/16 04:06 AM

    Hello,

    The record is treated as floating if it appears anywhere in a particular file. When you are unsure of the position of the record, treat that as floating record.

    Floating record concept is not limited to EDI.

    Regards
    Sasa


    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Flat File-Floating Records Implementation

    Posted 01/04/17 03:41 AM

    Hi,

    Even I have the same doubt. Below are the steps I tried

    Created a flatfile schema with ADDRESS as record , Street @ 1 , Zip code @ 2

    Record delimiter is newline.
    Field delimiter is comma.
    Record identifier Nth position @0.

    Added “ADDRESS” in floating record and created DT.

    While using convert to Values I passed the below file content in the text file.

    ADDRESS,Street,Zipcode

    It works fine.

    Then , tried as

    Street,Zipcode,ADDRESS and it failed.

    I am not sure what should be the text file structure for the flatfile schema I defined.

    I went through the docs but I am not very clear on the explanations.

    Any idea would be helpful for me to understand it correctly.

    Thanks,
    Sathya


    #webMethods
    #Integration-Server-and-ESB


  • 6.  RE: Flat File-Floating Records Implementation

    Posted 01/04/17 08:05 AM

    Hi Sathya,

    when the record identifier is the first field in the record, then it cannot be moved to the end of the record.

    Is there a specific reason why the record identifier is placed at different locations in the record?

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: Flat File-Floating Records Implementation

    Posted 01/04/17 08:19 AM

    Hi Holger,

    I assumed that floating record means that record identifier can be in any place. As i said , I don’t have clear idea about it .

    Can you please provide me a sample file to test floating record scenario.

    Thanks,
    Sathya


    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: Flat File-Floating Records Implementation

    Posted 01/04/17 09:25 AM

    Hi Sathya,

    please have a look at the Ftlat-File-Schema-Developers Guide.

    There are some examples in the guide which show how this works.

    Floating record only works fior complete records, not for single fields in the records.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB


  • 9.  RE: Flat File-Floating Records Implementation

    Posted 01/09/17 04:44 AM

    Hi Holger,

    I defined three records in my flat file as below
    Address
    Street
    Zip
    Details(inside address)
    Street
    Zip
    Information
    Street
    Zip

    I set validate to True in convertToValues and passed the below ffData

    Address,STREET1,ZIP1
    Information,STREET2,ZIP2
    Detials,STREET3,ZIP3

    The above file has information before Details .But, the isValidate was displaying true . I didn’t not set Information as Floating record in this scenario.

    Please can you help me with a sample file to test this scenario.

    Thanks,
    Sathya


    #webMethods
    #Integration-Server-and-ESB


  • 10.  RE: Flat File-Floating Records Implementation

    Posted 01/09/17 06:28 AM

    Hi Sathya,

    can you provide the generated documnet when converting the ffData?

    So I assumne the following flatfile definition (the dashes represent the differnet hierarchy levels):

    Adress

    • Street
    • Zip
    • Details
      – Street
      – Zip
      Information
    • Street
    • Zip

    If I understood the documentation correctly, the details record should be defined as a floating record.

    Regards,
    Holger


    #webMethods
    #Integration-Server-and-ESB


  • 11.  RE: Flat File-Floating Records Implementation

    Posted 01/09/17 06:34 AM

    Hi,
    I have attached the document . Also , as per documentation , I guess information can also be a floating record. PFA screenshot for the same.

    Also, can you let me know how details should be defined as a floating record.

    Thanks,
    Sathya
    document.PNG
    Consider NTE as Information.PNG


    #webMethods
    #Integration-Server-and-ESB


  • 12.  RE: Flat File-Floating Records Implementation

    Posted 01/09/17 06:40 AM

    Can you give me a sample flat file . I used the below

    ADDRESS, sathya,1
    DETAILS,sathya,1
    INFORMATION,sathya,1
    ADDRESS,sathya,2
    INFORMATION,sathya,2
    DETAILS,sathya,2


    #Integration-Server-and-ESB
    #webMethods