Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-79142

Export of calculated(-simple and -multi) questions are missing datasets

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.2.2
    • Questions
    • None
    • MOODLE_402_STABLE
    • Hide
      1. In the question bank create a new calculated multichoice question e.g. to calculate the area of an rectangle e.g. "Calculate the area of this rectangle with a = {A} and b = {B}?
      2. Set three answers like:

        a) {A}+{B}
        b) {A}*{B}
        c) {A}*{B}/2

      1. Save the question and continue to add at least one wildcard dataset.
      2. Save the question and return to the list of questions.
      3. On that question use the Action selector and choose "Export as Moodle XML" and save the file on your machine.
      4. In the XML file rename the name of the question so that you recognize it after the import.
      5. On the question bank page selector at the top choose Import and upload the just downloaded and modified XML file.
      6. After the import is done the question appears on the list of questions. On that question use the Action selector and choose preview

      Expected behaviour: the question preview is visible.

      What actually happens: an exception is thrown "Cannot get the specified dataset for a dataset dependent question! (question: 123456, datasetitem: 0)"

      Show
      In the question bank create a new calculated multichoice question e.g. to calculate the area of an rectangle e.g. "Calculate the area of this rectangle with a = {A} and b = {B}? Set three answers like: a) {A}+{B} b) {A}*{B} c) {A}*{B}/2 Save the question and continue to add at least one wildcard dataset. Save the question and return to the list of questions. On that question use the Action selector and choose "Export as Moodle XML" and save the file on your machine. In the XML file rename the name of the question so that you recognize it after the import. On the question bank page selector at the top choose Import and upload the just downloaded and modified XML file. After the import is done the question appears on the list of questions. On that question use the Action selector and choose preview Expected behaviour : the question preview is visible. What actually happens : an exception is thrown "Cannot get the specified dataset for a dataset dependent question! (question: 123456, datasetitem: 0)"

      When a calculatedmulti questions with dataset wildcards is exported the datasets are not written to the Moodle XML file. Hence importing a question works, but the datasets are missing which causes an error when you try to preview the question.

            Unassigned Unassigned
            strobotta Stephan Robotta
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:

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