Click to See Complete Forum and Search --> : error not known


whiteadi
07-14-2003, 03:51 AM
Hi,

I have a script where I just send mails to different people depending on some variables. All was ok, I have on error resume next at beginning and I try to catch errors where I think can happen.

And I have one debug at the end of script:

if err <> 0 then
response.write "blabla"
response.write err.description
response.end
end if

So it is ok but from time to time just blabla is written but no error description.

What went wrong? If I do not see the error description it means that ASP doesn't know what it is? But it catches something. And as I said this happens not frequently.

Cold be because the mail server is busy or down or something?

Thanks,
whiteadi

whiteadi
07-15-2003, 07:55 AM
:) it is the same

whiteadi
07-15-2003, 08:05 AM
well yes it is a good ideea to put also the error number but if no description is there provided then is for sure an number? and if I have the number should I search for the error coresponding to msdn or somewhere else?

whiteadi
07-16-2003, 01:37 AM
yes of course if err.number is <> 0 then there is a number :) sorry

and about other testing between lines yes would be a good ideea but the point is that this is done, I have all over, but only at the end of the script, before a redirection, is this unknown error caught, time to time and most important: because we testit long time and didn't appear before is not at client :)

but last question: could be because of mail server? 'cause in that script only that I do: send mails

whiteadi
07-16-2003, 08:09 AM
how?

can you explain more how and why?

my script is full of:

strSQL = "select isnull(a.GETMESSAGES,0) as GETMESSAGES, b.EMAIL " & _
" from EPMP_PROJMA a, EPMP_PERSONEN b " & _
" where a.PK_PROJMA_ID = " & member_id & _
" and a.FK_PERSON_ID = b.PK_PERSON_ID" & _
" and a.PK_PROJMA_ID <> " & Session("PROJMA_ID")
objRecordsetPM.Open strSQL,objConnection,,,adCmdTable

If Not objRecordsetPM.EOF Then

If objRecordsetPM.Fields("GETMESSAGES").Value = "2" Then
If Len(Trim(objRecordsetPM.Fields("EMAIL").Value)) > 0 Then
Set objMail = CreateObject("CDONTS.NewMail")
objMail.Send strAbsenderEMail, objRecordsetPM.Fields("EMAIL").Value, strEMailSubjectExtern, strEMailTextExtern
Set objMail = Nothing
End If
End If
End If
objRecordsetPM.Close

before one action like above I just colect member_id's

whiteadi
07-17-2003, 01:45 AM
ok I will do it like this, I'll tell you what happens

thanks
Adrian

whiteadi
07-17-2003, 08:11 AM
yes,

On Error Goto 0

then back to

On Error Resume Next

thanks