cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

JS Code

AP_9587236
17-Peridot

JS Code

I am reading multiple csv files one by one. If one csv file not exists error occurred, the code stopped. Instead i want to move on to reading next csv file. So i tried try catch inside for loop only for ReadCSVFile method, but that doesn't worked. What to do.

ACCEPTED SOLUTION

Accepted Solutions

I didn't used "break" statement, still code stopping at catch. So i used "continue" statement inside catch. After error catches in catch block, code is continuing now. It is working fine now. Thanks. 

View solution in original post

2 REPLIES 2
PaiChung
22-Sapphire I
(To:AP_9587236)

Try Catch should allow you to do what you are trying to do. You aren't breaking out of the for loop at any point on purpose are you?

I didn't used "break" statement, still code stopping at catch. So i used "continue" statement inside catch. After error catches in catch block, code is continuing now. It is working fine now. Thanks. 

Announcements


Top Tags