Timeout Expired error when attempting to import subscribers for email marketing

Sam Fursdon asked on March 24, 2017 02:08

When importing a large list (>2000) of email marketing subscribers, I often encounter this error:

"Exception occurred: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."

Is there any way to extend (or remove) the timeout to allow the upload of larger lists?

Recent Answers


Peter Cranston answered on March 24, 2017 10:39

You should be able to set executionTimeout in the web.config, as explained here.

If you're using your own code for the import, you can set: HttpContext.Current.Server.ScriptTimeout = [Number of seconds];

0 votesVote for this answer Mark as a Correct answer

Sam Fursdon answered on March 27, 2017 00:42

Hi Peter, the timeout was set to 2400 in the web.config however the script is timing out well before that (usually within 30 seconds). We're not using any custom code for the import, just the in-built Kentico import tool.

Here's some more detail on the error:

Exception occurred: [DataConnection.HandleError]: Query: SELECT * FROM Newsletter_Subscriber WHERE [SubscriberID] = @SubscriberID Caused exception: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.