Forum Discussion

MarotReply's avatar
MarotReply
New Contributor II
5 years ago
Solved

Mappping element of a Subarray of a JSON document in mapper snap

Hello, I have an issue with splitting a JSON document in a mapper. In short, this document is received via a REST Get Snap and certain elements of it should be mapped to certain names, think for ex...
  • dimitri_hristov's avatar
    6 years ago

    Hi,

    I tried to recreate the error by parsing the data from the original post, and yes, the CSV Parser threw an error. Still, the desired data from the .csv file were present on the output of the CSV Parser Snap, correctly transformed into JSON format. I too skipped the first 5 lines by using the “Skip lines” property in the CSV Parser.
    However, by selecting the “discard error data and continue” option in the drop-down for the Error View in the CSV Parser, the problem disappeared altogether. No error, and the CSV data was correctly parsed.

    BR,
    Dimitri