Web page sometimes loads twice, causing two emails to be sent

Please reference this thread:  http://www.experts-exchange.com/Programming/Languages/Scripting/ASP/Q_28653621.html

I have a series of reports that are ran every morning, around 80 of them.  I originally ran these on an Microsoft XP computer, and at the end of report 1 it would do a response.redirect to report 2, then 3, and so on.

I could trigger this from the beginning, or it would run via scheduled task.

I then moved this process to a Server 2012 R2 install, exact same everything.

Now, however, if I trigger the reports, or they run via scheduled task, some random reports will run twice.  Here is a log example:

10.3.6.46, -, 9/23/2015, 7:30:23, W3SVC3, CDRWEB, 10.3.1.18, 274, 517, 371, 302, 0, GET, /email_autotelesalesquotenosignoff.asp, -,
10.3.6.46, -, 9/23/2015, 7:30:23, W3SVC3, CDRWEB, 10.3.1.18, 233, 517, 371, 302, 0, GET, /email_autotelesalesquotenosignoff.asp, -

If this page truly ran twice, then two separate paths of reports would have followed since the end of the page redirects to the next page.  However, what happens is this page will run twice, two emails will be sent, the exact same email, then it redirects once to the next page in the line.

I since then tried, from that first thread above, to change how the reports are called.  What I treid this morning is this:

<!-- #include file="/includes/SQLConnection.asp" -->
<%
ssql = "UPDATE MorningReports SET ReportRan = 0"
dbc.execute(ssql)

set rs = Server.CreateObject ("adodb.Recordset")
ssql = "SELECT ReportName FROM MorningReports ORDER BY MorningReportID ASC"
rs.Open ssql, dbc, adOpenForwardOnly, adLockReadOnly

do while not rs.eof
	server.execute(rs("ReportName"))
rs.moveNext
Loop

rs.close
set rs=nothing

dbc.close
set dbc=nothing

response.redirect("/complete.html")
%>

Open in new window


So, although not as many reports duplicated an email, it still happened to 7 of them.

Any ideas on what could possibly be causing this?
dzirkelbAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

dzirkelbAuthor Commented:
it appears I ran them the old way yesterday as they failed today, and when working on them, it was obvious I didn't run them with the new method yesterday.  So far so good, no duplicates.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.