QuerySaveAgent not working on New NotesSession

I have a WebQuerySave Agent that has stopped working. It was working befre 2/18/03 and then just stopped. I have just upgraded to a new server with ND6 on it and the agent still does not work. Worked fine until 2/18 on R5.0.8 then that stopped.

It is stopping on the first line of code. Here is my entire piece of code where I found out what line it was failing on.

Sub Initialize

Dim Session As New NotesSession



Print [BODY onLoad="setTimeout(window.close, 15000)"]

Print [H1>Thank you for your submission.[H1><br><br]

Print {<hr><br><br>You will be notified if you win.<br><br><br><hr><br><br>}

Print {<center><input type=button value="Close Window" onClick="javascript:window.close();"></center>}

End Sub

As long as I do not have the first DIM Session as New NotesSession statement it works, but then I cannot send e-mails to the required people.

Any help would be appreciated. This is a virtual web server. It has 3 different hosts on it. It is just the WebQueryAgents that have stopped working. Everything else works fine.

Thanks in advance

Ralph Borcherds

Subject: How did this ever work? you are not using valid string delimiters on the prints.

Try Print {}

Print {<H1>Thank you for your submission.</H1><br><br>}

Print {<hr><br><br>You will be notified if you win.<br><br><br><hr><br><br>}

Print {<center><input type=button value="Close Window" onClick="javascript:window.close();"></center>}

Subject: QuerySaveAgent not working on New NotesSession

Hmm, is this possible? Where is your starttag on the body tag?

Print [BODY onLoad=“setTimeout(window.close, 15000)”]

?

What about

Print BODY onLoad=“setTimeout(window.close, 15000)”>]

Regards,
Rune Carlsen
Founder Dominozone
http://www.dominozone.net

Subject: RE: QuerySaveAgent not working on New NotesSession

I changed the start/end tags to for posting on web.

Ralph.

Subject: RE: QuerySaveAgent not working on New NotesSession

Add a error handler, and print out the errormsg, using MSGBOX statement - which agains prints to the console/log.nsf database.

Regards,

Rune Carlsen

Founder Dominozone

http://www.dominozone.net

Subject: RE: QuerySaveAgent not working on New NotesSession

This is what I got once:

Agent message: Error 0:

I always get this:

HTTP Web Server: Lotus Notes Exception - Unknown LotusScript Error. [/contactus.nsf/contest!OpenForm&Seq=1]

Ralph Borcherds

Subject: RE: QuerySaveAgent not working on New NotesSession

I do not seem to get the messagebox error written out. It is not trapping the error and going to the error trap routine.

Ralph