Source:
<code>public void populateDynamicChoices(ItemsetBinding itemset, TreeReference curQRef) { Vector<SelectChoice> choices = new Vector<SelectChoice>(); DataInstance fi; if (itemset.nodesetRef.getInstanceName() != null) { fi = getNonMainInstance(itemset.nodesetRef.getInstanceName()); if (fi == null) { throw new XPathException("Instance " + itemset.nodesetRef.getInstanceName() + " not found"); } } else { fi = getMainInstance(); } Vector<TreeReference> matches = itemset.nodesetExpr.evalNodeset(fi, new EvaluationContext(exprEvalContext, itemset.contextRef.contextualize(curQRef))); if (matches == null) { <START> throw new XPathException("No items found at '" + itemset.nodesetRef + <END> "'. Make sure the '" + itemset.nodesetRef.getInstanceName() + "' lookup table is available."); } for (int i = 0; i < matches.size(); i++) { TreeReference item = matches.elementAt(i); String label = itemset.labelExpr.evalReadable(fi, new EvaluationContext(exprEvalContext, item)); String value = null; TreeElement copyNode = null; if (itemset.copyMode) { copyNode = this.getMainInstance().resolveReference(itemset.copyRef.contextualize(item)); } if (itemset.valueRef != null) { value = itemset.valueExpr.evalReadable(fi, new EvaluationContext(exprEvalContext, item)); } SelectChoice choice = new SelectChoice(label, value != null ? value : "dynamic:" + i, itemset.labelIsItext); choice.setIndex(i); if (itemset.copyMode) choice.copyNode = copyNode; choices.addElement(choice); } itemset.setChoices(choices, this.getLocalizer()); }</code><technical_language>If issue expect this is users access items in table, this error message captures that. intentionally mentioning specifically</technical_language>

Target:
public void populateDynamicChoices(ItemsetBinding itemset, TreeReference curQRef) { Vector<SelectChoice> choices = new Vector<SelectChoice>(); DataInstance fi; if (itemset.nodesetRef.getInstanceName() != null) { fi = getNonMainInstance(itemset.nodesetRef.getInstanceName()); if (fi == null) { throw new XPathException("Instance " + itemset.nodesetRef.getInstanceName() + " not found"); } } else { fi = getMainInstance(); } Vector<TreeReference> matches = itemset.nodesetExpr.evalNodeset(fi, new EvaluationContext(exprEvalContext, itemset.contextRef.contextualize(curQRef))); if (matches == null) { String instanceName = itemset.nodesetRef.getInstanceName(); if (instanceName == null) { throw new XPathException("No items found at '" + itemset.nodesetRef + "'"); } else { throw new XPathException("Make sure the '" + instanceName + "' lookup table is available, and that its contents are accessible to the current user."); } } for (int i = 0; i < matches.size(); i++) { TreeReference item = matches.elementAt(i); String label = itemset.labelExpr.evalReadable(fi, new EvaluationContext(exprEvalContext, item)); String value = null; TreeElement copyNode = null; if (itemset.copyMode) { copyNode = this.getMainInstance().resolveReference(itemset.copyRef.contextualize(item)); } if (itemset.valueRef != null) { value = itemset.valueExpr.evalReadable(fi, new EvaluationContext(exprEvalContext, item)); } SelectChoice choice = new SelectChoice(label, value != null ? value : "dynamic:" + i, itemset.labelIsItext); choice.setIndex(i); if (itemset.copyMode) choice.copyNode = copyNode; choices.addElement(choice); } itemset.setChoices(choices, this.getLocalizer()); }