Cannot uninstall modules due to missing table br_schedule












2















When I hit the Uninstall tab in the UI or try to uninstall a module with Drush I get the following errors:



Drush:



SQLSTATE[42S02]: Base table or view not found: 
1146 Table 'DATABASENAME.br_schedule' doesn't exist


Drupal Log:



DrupalCoreDatabaseDatabaseExceptionWrapper: SQLSTATE[42S02]: 
Base table or view not found:
1146 Table 'DATABASENAME.br_schedule' doesn't exist:
SELECT base_table.vid AS vid,
base_table.id AS id FROM {br_schedule}
base_table LIMIT 1 OFFSET 0; Array ( ) in
DrupalCoreEntityEntityStorageBase->hasData()
(line 552 of MYSITEPATH/core/lib/Drupal/Core/Entity/EntityStorageBase.php).


I have no idea what br_schedule is so I don't know how to rebuild that table. I have Businesses Rules installed but I see no br_schedule module.










share|improve this question























  • It doesn’t have to be a module necessarily, a module can create as many tables as it needs to. An easy way to get out of this is to create a bare table using a database editor/interface called br_schedule then try to uninstall the module. This will get you around the error. The rest sounds like a bug for the Business rules module.

    – Kevin
    Feb 3 at 17:25








  • 1





    br_schedule is the base table for the business_rules_schedule entity type. Perhaps the module was previously installed before the entity type existed in the current version. Maybe drush updb could solve the issue (it should run entup as well these days).

    – mradcliffe
    Feb 3 at 18:15
















2















When I hit the Uninstall tab in the UI or try to uninstall a module with Drush I get the following errors:



Drush:



SQLSTATE[42S02]: Base table or view not found: 
1146 Table 'DATABASENAME.br_schedule' doesn't exist


Drupal Log:



DrupalCoreDatabaseDatabaseExceptionWrapper: SQLSTATE[42S02]: 
Base table or view not found:
1146 Table 'DATABASENAME.br_schedule' doesn't exist:
SELECT base_table.vid AS vid,
base_table.id AS id FROM {br_schedule}
base_table LIMIT 1 OFFSET 0; Array ( ) in
DrupalCoreEntityEntityStorageBase->hasData()
(line 552 of MYSITEPATH/core/lib/Drupal/Core/Entity/EntityStorageBase.php).


I have no idea what br_schedule is so I don't know how to rebuild that table. I have Businesses Rules installed but I see no br_schedule module.










share|improve this question























  • It doesn’t have to be a module necessarily, a module can create as many tables as it needs to. An easy way to get out of this is to create a bare table using a database editor/interface called br_schedule then try to uninstall the module. This will get you around the error. The rest sounds like a bug for the Business rules module.

    – Kevin
    Feb 3 at 17:25








  • 1





    br_schedule is the base table for the business_rules_schedule entity type. Perhaps the module was previously installed before the entity type existed in the current version. Maybe drush updb could solve the issue (it should run entup as well these days).

    – mradcliffe
    Feb 3 at 18:15














2












2








2








When I hit the Uninstall tab in the UI or try to uninstall a module with Drush I get the following errors:



Drush:



SQLSTATE[42S02]: Base table or view not found: 
1146 Table 'DATABASENAME.br_schedule' doesn't exist


Drupal Log:



DrupalCoreDatabaseDatabaseExceptionWrapper: SQLSTATE[42S02]: 
Base table or view not found:
1146 Table 'DATABASENAME.br_schedule' doesn't exist:
SELECT base_table.vid AS vid,
base_table.id AS id FROM {br_schedule}
base_table LIMIT 1 OFFSET 0; Array ( ) in
DrupalCoreEntityEntityStorageBase->hasData()
(line 552 of MYSITEPATH/core/lib/Drupal/Core/Entity/EntityStorageBase.php).


I have no idea what br_schedule is so I don't know how to rebuild that table. I have Businesses Rules installed but I see no br_schedule module.










share|improve this question














When I hit the Uninstall tab in the UI or try to uninstall a module with Drush I get the following errors:



Drush:



SQLSTATE[42S02]: Base table or view not found: 
1146 Table 'DATABASENAME.br_schedule' doesn't exist


Drupal Log:



DrupalCoreDatabaseDatabaseExceptionWrapper: SQLSTATE[42S02]: 
Base table or view not found:
1146 Table 'DATABASENAME.br_schedule' doesn't exist:
SELECT base_table.vid AS vid,
base_table.id AS id FROM {br_schedule}
base_table LIMIT 1 OFFSET 0; Array ( ) in
DrupalCoreEntityEntityStorageBase->hasData()
(line 552 of MYSITEPATH/core/lib/Drupal/Core/Entity/EntityStorageBase.php).


I have no idea what br_schedule is so I don't know how to rebuild that table. I have Businesses Rules installed but I see no br_schedule module.







database uninstalling






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 3 at 17:21









Brad OBrad O

474




474













  • It doesn’t have to be a module necessarily, a module can create as many tables as it needs to. An easy way to get out of this is to create a bare table using a database editor/interface called br_schedule then try to uninstall the module. This will get you around the error. The rest sounds like a bug for the Business rules module.

    – Kevin
    Feb 3 at 17:25








  • 1





    br_schedule is the base table for the business_rules_schedule entity type. Perhaps the module was previously installed before the entity type existed in the current version. Maybe drush updb could solve the issue (it should run entup as well these days).

    – mradcliffe
    Feb 3 at 18:15



















  • It doesn’t have to be a module necessarily, a module can create as many tables as it needs to. An easy way to get out of this is to create a bare table using a database editor/interface called br_schedule then try to uninstall the module. This will get you around the error. The rest sounds like a bug for the Business rules module.

    – Kevin
    Feb 3 at 17:25








  • 1





    br_schedule is the base table for the business_rules_schedule entity type. Perhaps the module was previously installed before the entity type existed in the current version. Maybe drush updb could solve the issue (it should run entup as well these days).

    – mradcliffe
    Feb 3 at 18:15

















It doesn’t have to be a module necessarily, a module can create as many tables as it needs to. An easy way to get out of this is to create a bare table using a database editor/interface called br_schedule then try to uninstall the module. This will get you around the error. The rest sounds like a bug for the Business rules module.

– Kevin
Feb 3 at 17:25







It doesn’t have to be a module necessarily, a module can create as many tables as it needs to. An easy way to get out of this is to create a bare table using a database editor/interface called br_schedule then try to uninstall the module. This will get you around the error. The rest sounds like a bug for the Business rules module.

– Kevin
Feb 3 at 17:25






1




1





br_schedule is the base table for the business_rules_schedule entity type. Perhaps the module was previously installed before the entity type existed in the current version. Maybe drush updb could solve the issue (it should run entup as well these days).

– mradcliffe
Feb 3 at 18:15





br_schedule is the base table for the business_rules_schedule entity type. Perhaps the module was previously installed before the entity type existed in the current version. Maybe drush updb could solve the issue (it should run entup as well these days).

– mradcliffe
Feb 3 at 18:15










3 Answers
3






active

oldest

votes


















1














Found the issue. My database updates are not happening. Ran updatedb:status with drush and I get:



file_entity                           8004        hook_update_n   Fix entity field mismatches on the file type field.
business_rules_schedule entity type entity-update The Schedule entity type needs to be installed.
file entity type entity-update The File type field needs to be updated.
node entity type entity-update The node.field_zipcode field needs to be updated.


"Fix entity field mismatches on the file type field." is failing so the "business_rules_schedule" update isn't happening.






share|improve this answer































    1














    I spun up a blank D8 with Business Rules installed and exported the br_schedule table and imported it into the effected site. Now I can uninstall modules.






    share|improve this answer































      0














      Perhaps the easiest workaround as @kevin mentions would be to download adminer or use existing phpmyadmin if you have and create that table with no content running the following (or similar) SQL command



      CREATE TABLE br_schedule (
      ID int
      );


      then try again to see if it can uninstall



      NOTE: use with caution its not a bulletproof technique, I have used it a few times and was able to complete broken uninstalls on messed up databases but as mradcliffe mentions it might screw things up as well.






      share|improve this answer





















      • 1





        This might cause further errors because the table is provided by a content entity type.

        – mradcliffe
        Feb 3 at 18:16






      • 1





        @mradcliffe perhaps you are right its a trial and error not to be tried on live site, I am not aware of what br_schedule is but the above technique has saved me a few times when I get in my hands a broken DB

        – GiorgosK
        Feb 3 at 18:41











      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "220"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: false,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: null,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdrupal.stackexchange.com%2fquestions%2f276060%2fcannot-uninstall-modules-due-to-missing-table-br-schedule%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      3 Answers
      3






      active

      oldest

      votes








      3 Answers
      3






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      Found the issue. My database updates are not happening. Ran updatedb:status with drush and I get:



      file_entity                           8004        hook_update_n   Fix entity field mismatches on the file type field.
      business_rules_schedule entity type entity-update The Schedule entity type needs to be installed.
      file entity type entity-update The File type field needs to be updated.
      node entity type entity-update The node.field_zipcode field needs to be updated.


      "Fix entity field mismatches on the file type field." is failing so the "business_rules_schedule" update isn't happening.






      share|improve this answer




























        1














        Found the issue. My database updates are not happening. Ran updatedb:status with drush and I get:



        file_entity                           8004        hook_update_n   Fix entity field mismatches on the file type field.
        business_rules_schedule entity type entity-update The Schedule entity type needs to be installed.
        file entity type entity-update The File type field needs to be updated.
        node entity type entity-update The node.field_zipcode field needs to be updated.


        "Fix entity field mismatches on the file type field." is failing so the "business_rules_schedule" update isn't happening.






        share|improve this answer


























          1












          1








          1







          Found the issue. My database updates are not happening. Ran updatedb:status with drush and I get:



          file_entity                           8004        hook_update_n   Fix entity field mismatches on the file type field.
          business_rules_schedule entity type entity-update The Schedule entity type needs to be installed.
          file entity type entity-update The File type field needs to be updated.
          node entity type entity-update The node.field_zipcode field needs to be updated.


          "Fix entity field mismatches on the file type field." is failing so the "business_rules_schedule" update isn't happening.






          share|improve this answer













          Found the issue. My database updates are not happening. Ran updatedb:status with drush and I get:



          file_entity                           8004        hook_update_n   Fix entity field mismatches on the file type field.
          business_rules_schedule entity type entity-update The Schedule entity type needs to be installed.
          file entity type entity-update The File type field needs to be updated.
          node entity type entity-update The node.field_zipcode field needs to be updated.


          "Fix entity field mismatches on the file type field." is failing so the "business_rules_schedule" update isn't happening.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 3 at 18:39









          Brad OBrad O

          474




          474

























              1














              I spun up a blank D8 with Business Rules installed and exported the br_schedule table and imported it into the effected site. Now I can uninstall modules.






              share|improve this answer




























                1














                I spun up a blank D8 with Business Rules installed and exported the br_schedule table and imported it into the effected site. Now I can uninstall modules.






                share|improve this answer


























                  1












                  1








                  1







                  I spun up a blank D8 with Business Rules installed and exported the br_schedule table and imported it into the effected site. Now I can uninstall modules.






                  share|improve this answer













                  I spun up a blank D8 with Business Rules installed and exported the br_schedule table and imported it into the effected site. Now I can uninstall modules.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 3 at 18:56









                  Brad OBrad O

                  474




                  474























                      0














                      Perhaps the easiest workaround as @kevin mentions would be to download adminer or use existing phpmyadmin if you have and create that table with no content running the following (or similar) SQL command



                      CREATE TABLE br_schedule (
                      ID int
                      );


                      then try again to see if it can uninstall



                      NOTE: use with caution its not a bulletproof technique, I have used it a few times and was able to complete broken uninstalls on messed up databases but as mradcliffe mentions it might screw things up as well.






                      share|improve this answer





















                      • 1





                        This might cause further errors because the table is provided by a content entity type.

                        – mradcliffe
                        Feb 3 at 18:16






                      • 1





                        @mradcliffe perhaps you are right its a trial and error not to be tried on live site, I am not aware of what br_schedule is but the above technique has saved me a few times when I get in my hands a broken DB

                        – GiorgosK
                        Feb 3 at 18:41
















                      0














                      Perhaps the easiest workaround as @kevin mentions would be to download adminer or use existing phpmyadmin if you have and create that table with no content running the following (or similar) SQL command



                      CREATE TABLE br_schedule (
                      ID int
                      );


                      then try again to see if it can uninstall



                      NOTE: use with caution its not a bulletproof technique, I have used it a few times and was able to complete broken uninstalls on messed up databases but as mradcliffe mentions it might screw things up as well.






                      share|improve this answer





















                      • 1





                        This might cause further errors because the table is provided by a content entity type.

                        – mradcliffe
                        Feb 3 at 18:16






                      • 1





                        @mradcliffe perhaps you are right its a trial and error not to be tried on live site, I am not aware of what br_schedule is but the above technique has saved me a few times when I get in my hands a broken DB

                        – GiorgosK
                        Feb 3 at 18:41














                      0












                      0








                      0







                      Perhaps the easiest workaround as @kevin mentions would be to download adminer or use existing phpmyadmin if you have and create that table with no content running the following (or similar) SQL command



                      CREATE TABLE br_schedule (
                      ID int
                      );


                      then try again to see if it can uninstall



                      NOTE: use with caution its not a bulletproof technique, I have used it a few times and was able to complete broken uninstalls on messed up databases but as mradcliffe mentions it might screw things up as well.






                      share|improve this answer















                      Perhaps the easiest workaround as @kevin mentions would be to download adminer or use existing phpmyadmin if you have and create that table with no content running the following (or similar) SQL command



                      CREATE TABLE br_schedule (
                      ID int
                      );


                      then try again to see if it can uninstall



                      NOTE: use with caution its not a bulletproof technique, I have used it a few times and was able to complete broken uninstalls on messed up databases but as mradcliffe mentions it might screw things up as well.







                      share|improve this answer














                      share|improve this answer



                      share|improve this answer








                      edited Feb 3 at 18:42

























                      answered Feb 3 at 17:57









                      GiorgosKGiorgosK

                      4,44511032




                      4,44511032








                      • 1





                        This might cause further errors because the table is provided by a content entity type.

                        – mradcliffe
                        Feb 3 at 18:16






                      • 1





                        @mradcliffe perhaps you are right its a trial and error not to be tried on live site, I am not aware of what br_schedule is but the above technique has saved me a few times when I get in my hands a broken DB

                        – GiorgosK
                        Feb 3 at 18:41














                      • 1





                        This might cause further errors because the table is provided by a content entity type.

                        – mradcliffe
                        Feb 3 at 18:16






                      • 1





                        @mradcliffe perhaps you are right its a trial and error not to be tried on live site, I am not aware of what br_schedule is but the above technique has saved me a few times when I get in my hands a broken DB

                        – GiorgosK
                        Feb 3 at 18:41








                      1




                      1





                      This might cause further errors because the table is provided by a content entity type.

                      – mradcliffe
                      Feb 3 at 18:16





                      This might cause further errors because the table is provided by a content entity type.

                      – mradcliffe
                      Feb 3 at 18:16




                      1




                      1





                      @mradcliffe perhaps you are right its a trial and error not to be tried on live site, I am not aware of what br_schedule is but the above technique has saved me a few times when I get in my hands a broken DB

                      – GiorgosK
                      Feb 3 at 18:41





                      @mradcliffe perhaps you are right its a trial and error not to be tried on live site, I am not aware of what br_schedule is but the above technique has saved me a few times when I get in my hands a broken DB

                      – GiorgosK
                      Feb 3 at 18:41


















                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Drupal Answers!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdrupal.stackexchange.com%2fquestions%2f276060%2fcannot-uninstall-modules-due-to-missing-table-br-schedule%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Probability when a professor distributes a quiz and homework assignment to a class of n students.

                      Aardman Animations

                      Are they similar matrix