{"id":260,"date":"2014-01-14T08:52:20","date_gmt":"2014-01-14T08:52:20","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/salesforce\/?p=260"},"modified":"2024-08-06T05:38:52","modified_gmt":"2024-08-06T05:38:52","slug":"transaction-aborted-timeout-error-in-salesforce","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/01\/14\/transaction-aborted-timeout-error-in-salesforce\/","title":{"rendered":"Transaction aborted: timeout error in Salesforce"},"content":{"rendered":"<p style=\"text-align: justify;\">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 \u201cUnable to connect to the server (transaction aborted: timeout)\u201d. This error occurs randomly and only sometimes.<\/p>\n<p><span style=\"color: #000000;\"><em><strong>New Stuff<\/strong><\/em>:<\/span>\u00a0\u00a0<a title=\"View records without creating tab\" href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2013\/12\/30\/view-records-without-creating-tab\/\" target=\"_blank\" rel=\"noopener\">View Records without creating a tab<\/a><\/p>\n<p style=\"text-align: justify;\">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.<\/p>\n<p style=\"text-align: justify;\">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 &#8211;<\/p>\n<p>{buffer: true, escape: true, timeout: 120000}<\/p>\n<p>The other way to do this will be to set this value at the page level as shown below &#8211;<\/p>\n<p>&lt;script type=&#8221;text\/javascript&#8221;&gt;<\/p>\n<p>Visualforce.remoting.timeout = 120000; \/\/ Set timeout at page level<\/p>\n<p>&lt;\/script&gt;<\/p>\n<p>This seems to have solved our Transaction aborted: timeout message issue.<\/p>\n<p><span style=\"font-size: Medium;\"><strong>About Us<\/strong><\/span><br \/>\n<a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a> 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.<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/\">Greytrix<\/a> has some unique solutions for Cloud CRM such as Salesforce integration with <a href=\"https:\/\/www.greytrix.com\/product\/sage-x3\/gumu-x3-salesforce-integration\">Sage Enterprise Management (Sage X3<\/a>), Sage Intacct, <a href=\"https:\/\/www.greytrix.com\/product\/sage-100-erp\/gumu-100-salesforce-integration\">Sage 100 <\/a>and <a href=\"https:\/\/www.greytrix.com\/product\/sage-300-erp\/gumu-300-salesforce-integration\">Sage 300 (Sage Accpac)<\/a>. We also offer best-in-class Cloud CRM <a href=\"https:\/\/www.greytrix.com\/product\/crm-development\/salesforce-com\">Salesforce customization and development services<\/a> along with services such as Salesforce <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/data-migration-services\">Data Migration<\/a>, <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/integrated-application-development\">Integrated App development<\/a>, <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/custom-development\">Custom App development<\/a> and <a href=\"https:\/\/www.greytrix.com\/product\/professional-services\/maintenance-support\">Technical Support<\/a> to business partners and end users.<\/p>\n<p>Greytrix GUMU&#x2122; integration for Sage ERP \u2013 Salesforce is a 5-star app listed on <a href=\"https:\/\/appexchange.salesforce.com\/listingDetail?listingId=a0N30000000psM5EAI\" target=\"_blank\" rel=\"noopener\">Salesforce AppExchange<\/a>.<\/p>\n<p>For more information, please contact us at <a href=\"mailto:salesforce@greytrix.com\">salesforce@greytrix.com<\/a>. We will be glad to assist you.<\/p>\n<p><strong><span style=\"font-size: Medium;\">Related Posts<\/span><\/strong><\/p>\n<ul>\n<li><a title=\"Number of records to show in Related List\" href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2013\/12\/28\/number-of-records-to-show-in-related-list\/\" target=\"_blank\" rel=\"noopener\">Number of records to show in Related list<\/a><\/li>\n<li><a title=\"Lookup Search for all fields\" href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2013\/12\/12\/lookup-search-for-all-fields\/\" target=\"_blank\" rel=\"noopener\">Lookup search for all fields<\/a><\/li>\n<li><a title=\"Set the click event of button on Enter in Visualforce page\" href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2013\/12\/07\/set-the-click-event-on-enter-in-visualforce-page\/\" target=\"_blank\" rel=\"noopener\">Set the click event of button on Enter in Visualforce page<\/a><\/li>\n<li><a title=\"SOQL Query on combination of two fields\" href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2013\/11\/21\/soql-query-on-combination-of-two-fields\/\" target=\"_blank\" rel=\"noopener\">SOQL Query on combination of two fields<\/a><\/li>\n<li><a title=\"Excel Export in Salesforce\" href=\"http:\/\/www.greytrix.com\/blogs\/salesforce\/2013\/11\/19\/excel-export-in-salesforce\/\" target=\"_blank\" rel=\"noopener\">Excel Export\u00a0in Salesforce<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>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 \u201cUnable to connect to the server (transaction aborted: timeout)\u201d. This error occurs randomly and only sometimes. New Stuff:\u00a0\u00a0View Records\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/salesforce\/2014\/01\/14\/transaction-aborted-timeout-error-in-salesforce\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[196,567,491,566,497],"class_list":["post-260","post","type-post","status-publish","format-standard","hentry","category-salesforce-srv","tag-js-remoting","tag-salesforce-error","tag-timeout","tag-timeout-error-in-salesforce","tag-transaction-aborted"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/comments?post=260"}],"version-history":[{"count":3,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/260\/revisions"}],"predecessor-version":[{"id":8904,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/posts\/260\/revisions\/8904"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/media?parent=260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/categories?post=260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/salesforce\/wp-json\/wp\/v2\/tags?post=260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}