Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-18675

CiviCRM_API3_Exception: "DB Constraint Violation - possibly dashboard_id should possibly be marked as mandatory for this API. If so, please raise a bug report."

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Critical
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.6
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      Click configure your dashboard. Invoke message below.

      CiviCRM_API3_Exception: "DB Constraint Violation - possibly dashboard_id should possibly be marked as mandatory for this API. If so, please raise a bug report."

      #0 /var/www/veski.org.au/public_html/sites/all/modules/civicrm/CRM/Core/BAO/Dashboard.php(190): civicrm_api3("dashboard_contact", "create", (Array:4))
      #1 /var/www/veski.org.au/public_html/sites/all/modules/civicrm/CRM/Core/BAO/Dashboard.php(143): CRM_Core_BAO_Dashboard::initializeDashlets(FALSE)
      #2 /var/www/veski.org.au/public_html/sites/all/modules/civicrm/CRM/Contact/Page/Dashlet.php(51): CRM_Core_BAO_Dashboard::getContactDashlets()
      #3 /var/www/veski.org.au/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(312): CRM_Contact_Page_Dashlet->run((Array:2), NULL)
      #4 /var/www/veski.org.au/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(86): CRM_Core_Invoke::runItem((Array:13))
      #5 /var/www/veski.org.au/public_html/sites/all/modules/civicrm/CRM/Core/Invoke.php(54): CRM_Core_Invoke::_invoke((Array:2))
      #6 /var/www/veski.org.au/public_html/sites/all/modules/civicrm/drupal/civicrm.module(454): CRM_Core_Invoke::invoke((Array:2))
      #7 [internal function](): civicrm_invoke("dashlet")
      #8 /var/www/veski.org.au/public_html/includes/menu.inc(527): call_user_func_array("civicrm_invoke", (Array:1))
      #9 /var/www/veski.org.au/public_html/index.php(21): menu_execute_active_handler()
      #10

      {main}

      Sorry but we are not able to provide this at the moment.
      DB Constraint Violation - possibly dashboard_id should possibly be marked as mandatory for this API. If so, please raise a bug report.
      Return to home page.

      Installed 4.7.6 in drupal 7.43 with fresh database. Dashboard doesn't resolve and error ensues.

        Attachments

          Activity

            People

            • Assignee:
              eileen Eileen McNaughton
              Reporter:
              nugosu Melanie Gibson
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: