Quantcast
Viewing all articles
Browse latest Browse all 24688

Foreach file enumerator, skip file on error.

 

Hi,

I'm struck with a small issue.. would be great if somebody can help me out.  Here is te scenario

 

1. There would be more than one CSV files in INPUT folder.

2. I'm using a Foreach Loop file enumerator to loop thru the files and load the data into database.

3. If loading is successful the file need to be moved to ARCHIVE folder and next file needs to be picked up for loading

4. In case if there is an error in loading the file has to be moved into ERROR folder, Error description should be logged to error log text file and next file needs to be picked up for loading.

 

 

I don't think increasing max error count is an option as I don't know how many no. of input files are available as it depends upon the feed. 

 

What is the best way to go.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>