Hi, I’m having troubles with the @DBlookup function. I’ve imported some data from a Lotus 123 spreadsheet and when I run the follwing code I get “Error: Server Error: Entry not found in index” error message. Look forward to some feedback.
@If(@IsNewDoc;
@Do(SrvrNm:=“ACANLM21”;
Code:=@Left(@Prompt([OkCancelList];“Master Agency List”;“Choose the Master from the list below that this record will be associated with. You will be able to set up a Prime code association later:”;“”;@Unique(@DbLookup(“”:“NoCache”;SrvrNm:“Inform\Public\AMPals.nsf”;“MtrLookupCd”;“Lookup”;2)));6);
NM:=@DbLookup(“”:“NoCache”;SrvrNm:“Inform\Public\AMPals.nsf”;“ByHcdOnly”;CODE;4);
@Command([ViewRefreshFields]);@SetField(“NM”;NM);@SetField(“Master”;Code);@Command([FileSave]);@Do(@Command([EditMakeDocLink]);
@Command( [EditGotoField] ;“L” );@Command([EditPaste]);@Command([FileSave]);@Command([EditGotoField];“SCallBus”)));
@Return(“”));