diff --git a/composer.json b/composer.json
index 8479adae425116270411612db366c8c3236ba6fb..96fa83037b38ecec00fb7cc8a0f9951e82fcf483 100644
--- a/composer.json
+++ b/composer.json
@@ -333,6 +333,10 @@
       "drupal/ctools": {
         "Issue #2820783: Fix Block.php notices and warnings.":
         "https://www.drupal.org/files/issues/fixblockpager-2820783-27.patch"
+      },
+      "drupal/search_api": {
+        "Issue #2931562: Fixed the Notice: Undefined index: total When we enable the module in the installation step.":
+        "https://www.drupal.org/files/issues/2931562-11--undefined_total_in_task_manager_batch_finish.patch"
       }
     }
   }
diff --git a/drupal-org.make b/drupal-org.make
index a92ab3cbcc72233eb7ca290df89e9474be2689d5..7da5ba01d45e2c656b02ec77fb1a4fff3352a8b1 100644
--- a/drupal-org.make
+++ b/drupal-org.make
@@ -395,6 +395,8 @@ projects[recaptcha][version] = 2.2
 
 projects[search_api][type] = module
 projects[search_api][version] = 1.6
+;; Issue #2931562: Fixed the Notice: Undefined index: total When we enable the module in the installation step.
+projects[search_api][patch][] = https://www.drupal.org/files/issues/2931562-11--undefined_total_in_task_manager_batch_finish.patch
 
 ;;;;;;;;;;;;;;;;;;;;;
 ;; Contrib modules for Varbase hero slider media