Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Retry after failure

Status
Not open for further replies.

DeanRHolden

Programmer
Jun 20, 2008
1
US
I'm trying to modify a SSIS package that gets XML from a web API to retry if it fails to connect or get data from the API. I'd like it to try a number of times before really failing. I've tried a for-loop with a retry variable that is set on failure, but when the XML source in data flow times out because the API is busy, the package fails, and it stops.

Has anyone done something like this, and if so can you give me some tips?

Thanks,
Dean
 
You can set the property MaximumErrorCount of the for-loop to the number of retries you want to re-execute the web API request.

I only test it on the results of a script task, but I think it should works.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top