From a2ccdad52a1fb88f962745800cb45d605b5e0bf3 Mon Sep 17 00:00:00 2001 From: Sankeerth Date: Thu, 19 Oct 2023 18:14:53 +0530 Subject: [PATCH] fix: bugsnag error for salesforce (#2753) --- src/v0/destinations/salesforce/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/v0/destinations/salesforce/utils.js b/src/v0/destinations/salesforce/utils.js index 840c42aa35..3ffa4e56d8 100644 --- a/src/v0/destinations/salesforce/utils.js +++ b/src/v0/destinations/salesforce/utils.js @@ -44,7 +44,7 @@ const salesforceResponseHandler = (destResponse, sourceMessage, authKey) => { } else if ( status === 400 && matchErrorCode('CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY') && - response.message.includes('UNABLE_TO_LOCK_ROW') + response?.message?.includes('UNABLE_TO_LOCK_ROW') ) { // handling the error case where the record is locked by another background job // this is a retryable error