Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2038

Uncaught DataError: Evaluating the object store's key path yielded a value that is not a valid key.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.3.0
    • 3.2.1
    • Storage
    • Hide
      1. Open the JS console on the browser.
      2. Execute the following code:

      var $mmApp = angular.element(document.querySelector('[ng-app]')).injector().get('$mmApp');
      $mmApp.getDB().insert('sites', {});
      

      3. Check you get the following error:

      $mmDB: Error executing function put to DB MoodleMobile
      $mmDB: Error: Value inserted does not have key id required on store sites

      You can try with other stores.

      Show
      Open the JS console on the browser. Execute the following code: var $mmApp = angular.element(document.querySelector( '[ng-app]' )).injector().get( '$mmApp' ); $mmApp.getDB().insert( 'sites' , {}); 3. Check you get the following error: $mmDB: Error executing function put to DB MoodleMobile $mmDB: Error: Value inserted does not have key id required on store sites You can try with other stores.
    • MOODLE_32_STABLE
    • MOODLE_33_STABLE
    • Moodle Mobile 3.3.0

      Message:
      Uncaught DataError: Evaluating the object store's key path yielded a value that is not a valid key.
      File: file:/$scope.pageLoaded = false;//android_asset/www/lib/ydn.db/jsc/ydn.db-dev.js
      Line: 200
      Platform: Android
      Model: SM-G313MU
      OS version: 4.4.2
      App version: 3.2.1 (2017) Official app
      Background: 1
      Cordova: 6.1.2
      Storage: indexeddb
      URL loaded: file:///android_asset/www/index.html#/mm_login/sites

      Seems to be affecting Samsung phones with android version lower than 4.4.

            pferre22 Pau Ferrer
            pferre22 Pau Ferrer
            Dani Palou Dani Palou
            Juan Leyva Juan Leyva
            Juan Leyva Juan Leyva
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                0m
                Logged:
                Time Not Required
                Not Specified

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.