Error 404 - on openDocument

I found other people have posted serval questions about this problem but no solution.

I’m getting ‘Error 404 - Page Not Found’ when I try to submit a request. The form uses $$Return & $$QuerySaveAgent to notify users with new requests. I got the error when I clicked on the ‘Submit’ button. I’ve checked all access rights and lookup formulas on the form and everything looks fine.

Any suggestions?

TIA

Subject: Error 404 - on openDocument

So your document is submitting, but the resulting URL you send them to via the $$Return fails? Are sure the URL is valid? How are you building the URL? If it’s a security issue you can try adding ?OpenDocument&login=1

Subject: Error 404 - on openDocument

Unhide your $$Return field to see, what it really refers to. Make sure to include the path in square brackests .

Also, if your WQS agent happens to issue print statements thath contain square brackets, this will override your $$Return field.

Subject: RE: Error 404 - on openDocument

The path is included with the square bracket - . Unhidding the $$Return field returns the correct path but doesn’t display the page. Any other ideas?

Subject: RE: Error 404 - on openDocument

Is the URL displayed in the browsers address bar really the correct one, if you get the 404? Just to make sure, that really nothing gets in the way of $$Return. Remember that there is a difference between single and double square brackets. Also make sure you don’t have any faulty redirection rules defined for your web site document.

Is the link used in $$Return absolute, relative to the host or relative to the current resource? I recommend to make it relative to the host name, read: starting with a single slash.

If you type in the URL thats displayed in $$Return manually, can you open the desired page?

Btw., what are you trying to open in $$Return? Really a docuemnt (as stated in the headline) or a form or a page or something else?

There is no known problem with the use of $$Return in general. This is really core functionality for many years, so there must be some - maybe tiny - configuration or code error somewhere.

Subject: RE: Error 404 - on openDocument

This error was generated because of wrong form replica id inside the FORM METHOD=post ACTION= formula. Changed the replica id and everything worked fine. Thanks for all your help!!!