Resolving Unable to Lock Row Issue in Test Class

By | March 29, 2016

We had written lot of test classes for one of our products. In fact we were following the best practices for writing test classes, one of them being writing separate class for separate functionality. While running all test classes we were encountering an issue of UNABLE_TO_LOCK_ROW.

Real-time, bi-directional, multi-company – Sage ERP Integration with Salesforce

It seems that multiple test methods were running at the same time (because of random behavior of test methods) and trying to update the same records in custom setting thereby causing this issue. To overcome this issue, we disabled the parallel execution of Test classes/methods and this solved our issue.Apex Test Execution Options

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