The following error "Entry not found in index" occurs when creating a Response document in a certain way.
Steps to reproduce:
A. In Domino Designer:
1. Create a new form "Main" containing the field "Switcher". Add an action button "Save and Create Sub" with following code:
@Command([FileSave]);
@Command([Compose];"Sub")
2. Create a new form "Sub" and make its type "Response".
3. Create a new view "Main with Switcher empty". Use this selection formula:
SELECT Form = "Main" & Switcher = ""
B. In Notes Client:
1. Create a new document using form "Main". Save and close it.
2. Go to view "Main with Switcher empty" and re-open the document in edit mode.
3. Write something into field "Switcher", so that it is not empty any more.
4. Click action button "Save and Create Sub".
5. The error "Entry not found in index" is thrown.
Support has confirmed this is a day 1 limitation on the formula language side, and this limitation is observed on all Domino versions. A parent document must be there to create a response document. The UNID of the parent document is needed to create a $REF field in the response document.
As per documentation - "When you compose a response document, make sure a database is open and a document is already selected at the view level."
https://help.hcl-software.com/dom_designer/14.0.0/basic/H_COMPOSE.html
Customer argued that the UNID should be known because the parent document is open while creating the response and it is expected that the response should be created without throwing an error.