cancel
Showing results for 
Search instead for 
Did you mean: 

Storing Error Data

maheswara
New Contributor

Hi Team, 

           i am reading csv file and calling  API with rest get  snap by adding parameter to URL dynamically which is coming form csv file. so now i want to store data into file  form csv file which got an error while passing to rest get snap(now i am able to store that in file but i am able to store latest data which git an error). please give me suggestion if anyone have any idea.

3 REPLIES 3

dmiller
Admin Admin
Admin

Let me see if I understand:

You are reading from a csv file, then calling an API with a parameter that is a value from that file?
You then want to store data in a file --the same CSV or a different one?
And you getting an error -- what is the error?

Can you include a sample pipeline or screenshots?


Diane Miller
Community Manager

Thank you for replying @dmiller,

                                             I want to store data in different file whenever i got any error in REST GET snap. I don't want to store data if i don't have any error in pipeline.

virender_prajap
New Contributor III

You can route your error to error view and save it in another csv file. If the returned error is a custom error and route the response in another downstream. Also in csv formatter, check option "ignore empty stream" to avoid creation of file if no documents exists in the upstream.