Not able to find the fields in documents when it is not initialized

I am creating documents in an agent according to a form. The form contains a computed field. In agent I am not initializing that field. After creating the documents through agent when I tried to open document from view it is prompting a message “field xyz is not built in Index” and document do not open. I checked the second tab of document property but unable to see that field name. But that field already exist in the form and some dblookup formula present in the field value. What should I do?

Your help will highly be appreciated

Subject: Not able to find the fields in documents when it is not initialized

Try using the ComputeWithForm method of the NotesDocument class in your agent.

Subject: RE: Not able to find the fields in documents when it is not initialized

Thanks Stuart. Now it is all right.