Choose Servers to Search

I have a scheduled agent which contains the following script as below. However, after receiving the email, when I click on the doclink, I receive the message “The database was not found, please select servers to search”. However, if I add the database icon to my workspace, it works fine. I also realized that when I go to link properties in the email, the anchor, target and hint all show up blank. Does anyone know of a way to resolve this issue without having to add the database icon to my workspace?

@MailSend(@Trim(@Unique(reassignee : AssignedTo)); @Trim(@Unique(CopyTo : Person)); “”; key + " Please review." + @NewLine + "End Date: " + @Text(EndDate) + @NewLine + “Click on the document link below to open and view the record.” + @NewLine + “Regards, System”; “”; [IncludeDoclink]);