Put
code:
? 'Error = '+@ERROR+' - '+@SERROR

after each mapping to trace error messages and check your name resolution services.

You can also use the utilities at http://home.wanadoo.nl/scripting to create a times line-by-line trace of your script.
_________________________
There are two types of vessels, submarines and targets.