Agent errors out on exiting ...?

I have an agent that seems to run just fine, I’ve debugged it all the way through. Locally it completes without error if I run through the Designer. If I set the agent to run on the server, it errors out essentially on “End Sub”

The end of the Initialize event is this:

  Print "Closing down ..."

 

    End Sub

In the Server log, the Print statement executes and then is followed by an error “Objective Variable Not Set”.

I can add 20 Print statements in before ‘End Sub’ and all will print but there is still the error at the end. Again, only when running on the server.

Any idea what might cause this? Should I recreate the agent?

Subject: Agent errors out on exiting … ?

Rules for the server and the client are different. Some methods are designed to work on the client only, security is different in the two environemtns. You will find useful hints in the Agent FAQ - a list of differences, common mistakes, tips on debugging. Have you read it? I think you will find it helpful.

You can also post your code for us to see.

All we know you is that you made a mistake in your code, but it is impossible to guess what mistake it is without seeing the code.