After spending a fair time troubleshooting an agent that send out e-mail I found the problem and the reason it didn’t run. Once again it was because you apparently cannot create a doclink to a document in a database that doesn’t have a default view. Why that is I do not know but that was the case… Again! I seen this before but it continues to amaze me.
Doclinks and default views
Published by
lekkim
Positive, competent, out-spoken, frank and customer focused architect and developer with a strong foundation in web, cloud and product development. I'm a strong advocate for API first and cloud based solutions and development. I have a knack for being able to communicate and present technically complicated matters in conference, customer and training settings. I've previously acted as team member and leader in a product organisation. View all posts by lekkim
One of the more puzzling “features” of Lotus Notes… also catches me once a year.
Another great one is when no form is set as the default. Most of the application works for a week or two and out of nowhere it decides to throw out random errors: “No default form” or something similar.
Best advice: always set the default view and form.
Yeah, that bites people all the time. To help folks avoid the problem, <a href="http://www.superntf.org">SuperNTF</a> includes a default view that is simply a SELECT @All with a single column showing UNID. That avoids problems should the default view only contain "active" status docs for example, and an old link won’t find it’s document if it has been closed subsequent to the link being sent.
SuperNTF’s default form (cryptically named "SYSTEM – Smart Default Form") uses Andre Guirard’s technique of dynamically displaying a list of all a document’s items should that document’s form not be in the application.
Seems to work pretty well.
try constructing a ‘notes://server/ReplicaID/0/UNID’. This works always 🙂
@2: this default Form is really great!