{"id":727,"date":"2019-12-23T19:32:23","date_gmt":"2019-12-23T19:32:23","guid":{"rendered":"https:\/\/meetanshi.com\/blog\/2019\/12\/23\/solved-undefined-index-jobs-error-on-running-cron-in-magento-2-x-x\/"},"modified":"2025-05-22T15:11:53","modified_gmt":"2025-05-22T09:41:53","slug":"solved-undefined-index-jobs-error-on-running-cron-in-magento-2-x-x","status":"publish","type":"post","link":"https:\/\/meetanshi.com\/blog\/solved-undefined-index-jobs-error-on-running-cron-in-magento-2-x-x\/","title":{"rendered":"Solved &#8211; Undefined index: jobs Error On Running Cron In Magento 2.X.X"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/meetanshi.com\/blog\/set-cron-in-magento-2\/\" target=\"_blank\" rel=\"noreferrer noopener\">Cron jobs in Magento 2<\/a> are a great tool to automate repetitive tasks!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, sometimes the developers face an <i><strong>Undefined index: jobs error on running cron in Magento 2.x.x<\/strong><\/i>. &nbsp;(including me <strong> )<\/strong><i><\/i><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While running the below command,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/usr\/bin\/php &#91;magento root directory]\/bin\/magento cron:run | grep -v \"Ran jobs by schedule\" &gt;&gt; &#91;magento root directory]\/var\/log\/magento.cron.log<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Magento throws the below exception:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;Exception] Notice: Undefined index: jobs in \/home\/ubuntu\/repo\/project\/vendor\/magento\/\nmodule-cron\/Model\/Config\/Converter\/Db.php on line 39<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">The solution to undefined index: jobs error on running cron in Magento 2.x.x:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">While migrating from Magento 1 to Magento 2, you may have got the entries as <strong>crontab\/{groupname}\/jobs\/{code}<\/strong> with the missing group name i.e default in <strong>core_config_data<\/strong> table. You need to delete the wrong table entries and run the upgrade and deploy command to solve the issue.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s all to get rid of the error.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Do share the solution with the fellow developers via social media.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cron jobs in Magento 2 are a great tool to automate repetitive tasks! However, sometimes the developers face an Undefined index: jobs error on running&#8230;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[34],"tags":[],"class_list":["post-727","post","type-post","status-publish","format-standard","hentry","category-magento"],"acf":[],"_links":{"self":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/comments?post=727"}],"version-history":[{"count":2,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/727\/revisions"}],"predecessor-version":[{"id":15140,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/posts\/727\/revisions\/15140"}],"wp:attachment":[{"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/media?parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/categories?post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/meetanshi.com\/blog\/wp-json\/wp\/v2\/tags?post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}