Default view id error message

I have an agent that runs when a “Complete” button is pressed, Users that run locally receive the error message - while the users that run on the server do not receive the error message.

The database does have a default view on the server copy and every time the message occurs on;

Call rtitem.AppendDocLink( doc, “Service Call”).

I have checked the settings on the local copies of the databases on the various laptops, is there a setting that I am missing ?