07-28-2023 12:33 AM
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.
07-28-2023 02:13 PM
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?
08-04-2023 02:27 AM
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.
08-08-2023 05:56 AM
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.