473,394 Members | 1,802 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

80020009 -- ready for a tough one?

On my dev machine, on which I test, I have essentially the client, db, and
web server on machine. I started getting an error today that I just don't
get.
===========
Error Type:
(0x80020009)
Exception occurred.
/DisplaySortableTickets.asp, line 982
Page:
GET /DisplaySortableTickets.asp

================

Now, here's the kicker: I haven't made any changes to this page at all.
None. Nor the database, the machine, the RAM, didn't install any new
software, nothing. And since it's my machine, I am sure that nobody else
has, either. Still, I get this error, on two different pages, and there is
similar code on both, which the line number points to:

====================
Set rsHistory = Server.CreateObject("ADODB.Recordset")
strSQL = "SELECT EmployeeID,TIMESTMP,BriefDesc AS HistBriefDesc,LongDesc AS
HistLongDesc,InternalDesc AS HistInternalDesc,Status AS
HistStatus,EmailSentTo, ActionItem,Source,Contact_CustID "
strSQL = strSQL & "FROM TKT_History "
strSQL = strSQL & "WHERE TicketID = '"&strTicketID&"' "
'to skip showing the first history item, which should be entered when ticket
is created
strSQL = strSQL & "AND BriefDesc <> 'Initial Entry' "
strSQL = strSQL & "ORDER BY TIMESTMP ASC "
rsHistory.Open strSQL, objConnection,1,1

If not rsHistory.eof then
%>
<tr>
<td bgcolor="#999999" colspan="5"><span class="celltitle">Work
History:</span></td>
</tr>
<%
Do Until rsHistory.EOF

strEmployeeID = rsHistory("EmployeeID")
strTIMESTMP = rsHistory("TIMESTMP")
strHistBriefDesc = rsHistory("HistBriefDesc")
strHistLongDesc = rsHistory("HistLongDesc")
strHistInternalDesc = rsHistory("HistInternalDesc")
strHistStatus = rsHistory("HistStatus")
strEmailSentTo = rsHistory("EmailSentTo")
strActionItem = rsHistory("ActionItem")
strHSource = rsHistory("Source")
strHistCust = rsHistory("Contact_CustID")
if strHistCust <> "" then
Set RSHistCust = Server.CreateObject("ADODB.Recordset")
If strHSource = "E" then
strSQL = "SELECT FirstName, LastName FROM Contact "
strSQL = strSQL & "WHERE ContactID = '"&strHistCust&"' "
RSHistCust.Open strSQL, objConnection,1,1
strHistCustName = RSHistCust("FirstName")&" "&RSHistCust("LastName")
(the last line above is line 981)
====================

FWIW, I am using SQL Server 2000.

Of course, I went to the MS KB, and didn't really find anything that seemed
to apply to my case. I also went to www.aspfaq.com, and looked at several
things, but most of them didn't seem to apply, either. The one that might
contain my answer was http://www.aspfaq.com/show.asp?id=2188

At the top of that page, it says to:
--avoid using SELECT * -- I didn't have that problem
--Assign the value of the column to a variable IMMEDIATELY, and only use
this variable from that point on -- I did this already
--Make sure your MDAC drivers are most current --- I don't know how to do
this, but seriously, how could this code work for weeks or months and then
the MDAC start becoming a problem?
--check out a couple of MS KB articles. I checked them out, not sure how
they apply to my situation, unless I am missing something.

I'm not sure what a blob is (is that the image, or binary datatype?)
But the fields it points to are the First name and Last name fields, and
those are both Varchars, size 50.

In my testing around, I also changed from Post to Get, and that didn't make
a difference.
I also did a response.write of the SQL command, then ran it in SQL Server,
and it ran just fine, producing exactly one row.

I am rebooting the machine right now. Can anyone help me track this down?
Jul 19 '05 #1
4 1619
Follow-up:
In the browser, I clicked the Microsoft link, which took me to
http://support.microsoft.com/default...241271&sd=tech

This didn't solve the problem, but at least some of the page displays now.
In fact, this error had been occurring in two different pages, and now it's
just one.
Jul 19 '05 #2
Check out these two articles.
http://support.microsoft.com/?kbid=175239
http://support.microsoft.com/?kbid=200124
Also, it definitely wouldn't hurt if you changed that line to:

strHistCustName = RSHistCust.Fields.Item("Firstname").Value & " " &
RSHistCust.Fields.Item("LastName").Value

It also wouldn't hurt to response.write each of those values individually to
see if they have any contents and also check for null values.

Ray at work

"middletree" <mi********@htomail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
On my dev machine, on which I test, I have essentially the client, db, and
web server on machine. I started getting an error today that I just don't
get.
===========
Error Type:
(0x80020009)
Exception occurred.
/DisplaySortableTickets.asp, line 982
Page:
GET /DisplaySortableTickets.asp

================
strHistCustName = RSHistCust("FirstName")&" "&RSHistCust("LastName") (the last line above is line 981)
====================

Jul 19 '05 #3
Never mind. Turned out to be bad test data.
Jul 19 '05 #4

"Ray at <%=sLocation%>" <myfirstname at lane34 dot com> wrote in message
news:ub**************@TK2MSFTNGP10.phx.gbl...
Check out these two articles.
http://support.microsoft.com/?kbid=175239
http://support.microsoft.com/?kbid=200124
Yes, those were the KB articles I mentioned in my first thread. I didn't say
them by name, but they were at the top of this page:
http://www.aspfaq.com/show.asp?id=2188, so I thought it was self-evident.
Also, it definitely wouldn't hurt if you changed that line to:

strHistCustName = RSHistCust.Fields.Item("Firstname").Value & " " &
RSHistCust.Fields.Item("LastName").Value
What's the difference? I've not seen the Value part before.

It also wouldn't hurt to response.write each of those values individually to see if they have any contents and also check for null values.


Yes, I did all those things. Good to remind me, though.

Anyway, thanks. I don't know if you read my other post, but I solved it. I
had allowed a dropdown to not get selected, which should have provided the
value on which the SQL query depended. I fixed it.
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: olivier Micheli | last post by:
Hello, I need help When I execute the following asp, I have the error message: ------------------------------- ADODB.Field error '80020009' BOF ou EOF est égal à True ou l'enregistrement...
1
by: Marco | last post by:
When i try to execute this cycle: <%while not (oRS("IDFoto")=IDFoto) IDPrec=oRS("IDFoto") oRS.MoveNext wend%> i get the error: 80020009 Exception Occurred
0
by: M Naeem Baig | last post by:
I have the following asp code running well on win 2000 (sp4 installed). But the same code on windows 2003 is giving error '80020009'. Dim Conn, strRS, RS, strConn Set Conn =...
5
by: Mark | last post by:
All across my site i am getting 0x80020009 errors every so often. they point to lines of code like where FolderNAMEIN is a string such as "Botswana" and the VarFolderNameLength is 150 if...
1
by: Chris | last post by:
I get the follow error on a linux box that is running sun asp: CDONTS.NewMail.1 error '80020009' unable to connect to server The error occurs when the Send Command is Executed. Here is my code...
2
by: dmiller23462 | last post by:
Hey guys, I'm back again....I've got the results displaying that I wanted but instead of having a "next" or "previous" link displayed I am getting the error msg below (I actually get the data that...
2
by: SayMyName | last post by:
Due to my browser being danishm the error message will not mean much t most of you. It is an "Unspecified problem" with "Provide (0x80004005)" POST Data: error '80020009' The error only arrives...
6
by: Séverine Donnay | last post by:
Hello, I try to use the replace function with a very long text and I have this error : error '80020009' Exception occurred. Do you have any idee to resolve this problem ? Thanks
1
by: Redeye | last post by:
Hello, I have created an ASP page that calls a local webservice. Everything works fine on my system but once it is deployed to the server I get the following error. WSDLReader error...
4
by: peashoe | last post by:
I get the following error: ADODB.Field error '80020009' Either BOF or EOF is True, or the current record has been deleted. Requested operation requires a current record. This is my code: ' Get...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.