Ok, I figured it out by removing pieces and then adding them back until the error appeared.
Here’s the execution chain:
- JOBP uses PRPT.
- PRPT includes reference to EXEC VARA in default values.
- EXEC VARA calls SCRI.
- SCRI reads values from SQL VARA and creates data sequence to pass to parent EXEC VARA.
- SQL VARA uses HOSTG.
- HOSTG does not exist.
The agent existed, but the containing agent group did not. Once I created it, the problem went away.
Needless to say, the error message was not terribly informative but I guess I’m the first person to do anything like this. ;)
Update: This turned out not to be a complete solution. I fixed this problem but once I put everything back in place the problem returned. I’ll continue my investigation.