Customer Portal

Applying Conditions to Delimiter

Comments 4

  • Avatar
    avackova
    0
    Comment actions Permalink
    Hello,
    "Extract from flat file" Metadata creator can't recognize this correctly, but the DataReader component can parse such data properly. Just modify the number of fields detected by Wizard and set quotedStrings attribute in DataReader to true.
    I've also created a request for improving the Metadata wizard (http://bug.cloveretl.org/view.php?id=5351).
  • Avatar
    megreddy
    0
    Comment actions Permalink
    Thanks again for the help! That did the trick.

    I had actually read the manual's definition of UniversalDataReader->Quoted Strings, but from the description it just sounded like it removes the single/double quotes from a phrase. I didn't realize that setting it to TRUE would also ignore any delimiters found inside.
  • Avatar
    sam
    0
    Comment actions Permalink
    Hi, other than cleaning up the data manually in source before bringing into clover how do I deal with quotes inside a field without any other characters either before the opening quote or after the closing quote? E.g. "John Smith",""Middletown"","Petersborough",
    or "CXAWAY","Customer "Gone Away"",

    This issue is of course currently causing clover to misinterpret the number of fields within a row giving inconsistent row lengths which causes a parse error.

    I could use regular expressions in notepad++ to clean up the data file before loading into clover however this is a non ideal solution because some files I have to work with are too big to open in fully in memory and also it's an additional manual step that needs to be done and really would like all the data manipulations to be done within clover.

    Many thanks in advance!

    Sam
  • Avatar
    sam
    0
    Comment actions Permalink
    Hi, other than cleaning up the data manually in source before bringing into clover how do I deal with quotes inside a field without any other characters either before the opening quote or after the closing quote? E.g.
    "John Smith","[color=#0080FF]"Middletown"[/color]","Petersborough",

    or
     "CXAWAY","Customer [color=#0080FF]"Gone Away"[/color]",


    This issue is of course currently causing clover to misinterpret the number of fields within a row giving inconsistent row lengths which causes a parse error.

    I could use regular expressions in notepad++ to clean up the data file before loading into clover however this is a non ideal solution because some files I have to work with are too big to open in fully in memory and also it's an additional manual step that needs to be done and really would like all the data manipulations to be done within clover.

    Many thanks in advance!

    Sam

Please sign in to leave a comment.