Customer Portal

Flat File Reader Error - Bad Quote Format?

Comments 2

  • Avatar
    Vladimir Barton
    0
    Comment actions Permalink
    Hi Heather,
    thank you for the detailed explanation of the issue. When it comes to matching your example with the examples in our documentation, however, I beg to differ. The string that causes the parsing error in your graph ("Coaching in the Moment" Workshop/Lunch) looks a lot like the "address"1 example from our documentation (as opposed to the first"Name" example). The reason for this is that the pipe (|) delimiter is not placed right after the quotes (for example "Coaching in the Moment Workshop/Lunch" would flow through the graph nicely) so the parsing error is actually justified here.
    From looking at your screenshot, it appears that you have the Data Policy property of the FlatFileReader set to ‘Controlled’. Therefore, I would suggest taking advantage of the second port and design an alternative thread that would deal with bad parsing error records. You could use the Reformat component for the purpose of removing the quotes from the original record, for example by applying the Replace function in the following fashion:

    function integer transform() {
    $out.0.field1 = replace($in.0.originalData,'"',"");

    return ALL;
    }

    Regards,
  • Avatar
    hneff1
    0
    Comment actions Permalink
    Vladimir,

    Thanks for your help! I took advantage of second port to fix problem records containing quotes. Then read those records again to either put the fixed records back into the processing stream or send email with any additional errors. Worked great!

    Heather

Please sign in to leave a comment.