Web Exception - Entry not found in index

I have a form with a submit button. The button checks for field validations (using JS ) and I have a $$Return field with this value…

workView := @ReplaceSubstring( viewID; " "; “%20”);

_tDb := @ReplaceSubstring(@Subset(@DbName; -1); " “:”\" ; “+”:“/”);

“[http://mail2.DOMAIN.com/”+ _tDb +“/”+ workView+“?OpenView&DblClkTarget=_self]”

When the submit button is pressed, domino is supposed to look for this field and process it…

If I copy and paste the runtime value of $$Return in a browser… it does open up correctly…

for the life of me I cannot figure out why the error occurs…

Anyone have any ideas?

Thanks,

Brett

Subject: Web Exception - Entry not found in index

workView depends on viewID. Is viewID set?

Instead of

_tDb := @ReplaceSubstring(@Subset(@DbName; -1); " “:”\" ; “+”:“/”);

have you tried

_tDb := @WebDbName;

If this is not the problem, you need to supply more information about your code, and what happens, and what should happen.

/Peter

Subject: RE: Web Exception - Entry not found in index

Hi Peter… Thanks for your response.In the submit button there is this javascript… (which should be fine)…

/* Function to validate fields in a submit button on a form*/

function CheckField()

{

var message = “”;

if( TDIManRep.value=="")

	{ message = message + "Salesperson field. \n"; }

if(Territory.value=="")

	{ message = message + "Salesperson's Territory. \n"; }

if (cus_Target=="")

	{ message = message + "Customer Target. \n;";  }		

if(Company.value=="")

	{ message = message + "Company Name. \n"; }

if(EquipmentType.value=="")

	{ message = message + "Equipment Type. \n"; }

if(RespondBy.value=="")

	{ message = message + "Respond By Date. \n"; }

if ( Year1.value == "")

	{ message = message + "Projected this calendar year  $$ values. \n"; }

if ( Year2.value == "")

	{ message = message + "Projected next calendar year $$ values. \n"; }





if(message.length > 0)

	{  	alert( message + "\n Please fill in the required areas listed\nabove before submitting document\n\nThank you"  ); 

		return false; }

	else

	{  	submit (); }

}

and in the $$Return Field I have: (now)

workView := @ReplaceSubstring( viewID; " "; “%20”);

_tDb := @WebDbName;

“[/”+ _tDB + “/”+ workView+“?OpenView&DblClkTarget=_self]”

ViewID is a computed field which holds the “opening View” so you can go back to where you came from before you opened the document.

The URL int he $$Return field looks correct and I can use that url in a copy and paste into a seperate browser and open the view…

The $$Return value is:

Return Field : [/sales/salesopp.nsf/All%20Sales%20People?OpenView&DblClkTarget=_self]

Subject: RE: Web Exception - Entry not found in index

Found the problem…

I had webquerysave agents being called in the webquerysave event that didn’t exist any more…

Just another DOH! moment.

thanks to all.