Forum Discussion

amardeep2021's avatar
amardeep2021
New Contributor III
5 years ago

Unable to do error view writing as the error record is not showing in preview

Hi All,

I am trying to process millions of records even sometimes in billions. While validation, I am not seeing preview coming up for error view as we have 2000 limitation in preview. When I execute the pipeline, I am getting failure saying few incorrect field values or record incorrect out of the billions. I want to write them down using error view. But, as we have limitation on preview during validation, I couldn’t pass them by selection in subsequent snaps after error view.

My objective is to write down all the error records with header, reason and resolution in a file for further analysis. Is there a way to do that as my error records are after 2000 preview limitation and I could have options to select required fields before validation.?

Please help.

Regards,
Amar

22 Replies

  • amardeep2021's avatar
    amardeep2021
    New Contributor III

    I supposed to receive only number in this field. When I try loading to redshift, I see error below. So decided to separate the non numeric records to correct them with above pipeline. It process but not values in final file. To answer your question, I am seeing data like below after union json preview.

    Redshift bulk load error view message
    Error loading document 5658362 : Column age : Error code 1207 : "Invalid digit, Value ‘/’, Pos 2, Type: Integer ";Error loading document 5658364 : Column age : Error code 1207 : "Invalid digit, Value ‘/’, Pos 2, Type: Integer ";Error loading document 5658366 : Column age : Error code 1207 : "Invalid digit, Value ‘/’, Pos 2, Type: Integer ";Error loading document 5658368 : Column age : Error code 1207 : "Invalid digit, Value ‘/’, Pos 2, Type: Integer ";Error loading document 5658370 : Column age : Error code 1207 : "Invalid digit, Value ‘/’, Pos 2, Type: Integer ";

  • bojanvelevski's avatar
    bojanvelevski
    Valued Contributor

    Well, this is a string. Should this value pass the filter or not? Because with your current expression, this will be considered as a number.

  • amardeep2021's avatar
    amardeep2021
    New Contributor III

    You mean to say, I need to check for $age == null? As this field getting number in string and for some it’s special character(no specific pattern). I just need to filter records which don’t carry number as strin in that case. Any suggestions?

    • bojanvelevski's avatar
      bojanvelevski
      Valued Contributor

      In that case, as I already said in my previous replies, use the typeof operator:

      typeof $a == 'number'
      
  • amardeep2021's avatar
    amardeep2021
    New Contributor III

    I tried about typeof expression == ‘number’ in filter, I see some junk values in first column of final file instead of actual value.

  • bojanvelevski's avatar
    bojanvelevski
    Valued Contributor

    Add $a != null to it. Like this:

    typeof $a == 'number' && $a != null