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

Details

    • Bug
    • Resolution: Fixed
    • 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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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

                  Clockify

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