B2B Integration

 View Only
Expand all | Collapse all

Erroring out only the bad data .

  • 1.  Erroring out only the bad data .

    Posted Mon September 18, 2023 10:18 PM

    Hi,

       I have a map that converts a positional flat file into EDI 850 . The flat file can contain multiple records . For example , if the input flat file contains 10 records & out of which , 1 record has invalid data , the entire file with 10 records fails . But we need to error out only the one bad record & process the remaining 9 records . Please let me know how we can achieve . Thank you .

    Regards

    Selvaraj



    ------------------------------
    Selvaraj Munusamy
    ------------------------------


  • 2.  RE: Erroring out only the bad data .

    Posted Thu September 21, 2023 01:06 PM

    Selvaraj,

    The fix is in the bp that invokes the map.  Currently that bp processes all the records found in the input file in a single translation execution.  You need to add a 'For Each Document Service' loop which can allow you to process all the documents in the file one at a time, invoking the map once for each document.  This allows for erroring individual documents rather than all the documents if one is in error. 



    ------------------------------
    Peter Clay
    ------------------------------