function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
viktor iliukhin 6viktor iliukhin 6 

does not allow a connection to be established

Hi gues

I try to open Opportunity via a visualforce page
 
<apex:page controller="xxx1">
    <apex:form id="fmMain">
        <apex:actionStatus id="pageStatus">
            <apex:facet name="start">
                <apex:outputPanel >
                    <apex:outputLabel value="Please, ......."/>
                </apex:outputPanel>            
            </apex:facet>
        </apex:actionStatus>
        <apex:pageBlock >
            <apex:pageBlockButtons >
                <apex:commandButton action="{!xxx}" value="xxx" status="pageStatus" reRender="fmMain" />
            </apex:pageBlockButtons>
        </apex:pageBlock>
    </apex:form>
</apex:page>
 
public class xxx1 {
    public PageReference xxx() {
        id oppId = '0061x00000KpGN5';
        PageReference pageRef = new PageReference('/'+ oppId);
        pageRef.setRedirect(false);
        return pageRef; 
    }
}
When I try to open opportunity (click to button), I get error page. Without "apex:actionStatus" it works very well, but I need indiacion process

User-added image
ShivankurShivankur (Salesforce Developers) 
Hi Viktor,

The posted code seems to be working fine when tried simulating in developer org.

This doesn't seem to be coming from Salesforce server end.

Please check with your internal network or Admin team to get to the exact root cause of this issue.If you still see the issue, please post more details about the error line being shown in the browser at your end.

Hope above information helps. Please mark as Best Answer so that it can help others in future.

Thanks.