In one of our projects in force.com, we have been using the JS remote action calls many a time for custom reporting purpose. While testing, sometimes we face an issue and the error message displayed is “Unable to connect to the server (transaction aborted: timeout)”. This error occurs randomly and only sometimes.
New Stuff: View Records without creating a tab
We are not sure if these errors occur for a number of concurrences in JavaScript remoting calls. They appear to be specific connection errors. It seems that sometimes, the JS remote action calls take more than 30000 milliseconds which is the default timeout value for JSRemoting method.
For this reason, we had set the parameter timeout value to some other value than the default value i.e. 120000 milliseconds as shown below –
{buffer: true, escape: true, timeout: 120000}
The other way to do this will be to set this value at the page level as shown below –
<script type=”text/javascript”>
Visualforce.remoting.timeout = 120000; // Set timeout at page level
</script>
This seems to have solved our Transaction aborted: timeout message issue.
About Us
Greytrix as a Salesforce Product development partner offers a wide variety of integration products and services to the end users as well as to the Partners across the globe. We offers Consultation, Configuration, Training, and support services in out-of-the-box functionality as well as customizations to incorporate custom business rules and functionalities that requires apex code incorporation into the Salesforce platform.
Greytrix has some unique solutions for Cloud CRM such as Salesforce integration with Sage Enterprise Management (Sage X3), Sage Intacct, Sage 100 and Sage 300 (Sage Accpac). We also offer best-in-class Cloud CRM Salesforce customization and development services along with services such as Salesforce Data Migration, Integrated App development, Custom App development and Technical Support to business partners and end users.
Greytrix GUMU™ integration for Sage ERP – Salesforce is a 5-star app listed on Salesforce AppExchange.
For more information, please contact us at salesforce@greytrix.com. We will be glad to assist you.
Related Posts