# "Data saving error on Pavlovia (Running mode): 'credit reserved for this session has been released' — 0% submitted, 0% aborted"

**URL:** <https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813>\
**Category:** Online experiments\
**Tags:** online, pavlovia\
**Created:** [September 4, 2026, 2:58am UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813 "2026-09-04T02:58:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![val81](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@val81](https://discourse.psychopy.org/u/val81)\
**Post date:** [September 4, 2026, 2:58am UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/1 "2026-09-04T02:58:51Z")

</div>

OS: Various (participant devices; also reproduced on my own machine)  
PsychoPy version: 2023.1.3 (PSYCHOJS)  
Standard Standalone Installation? n — online only via Pavlovia (PsychoJS)

URL of experiment: [Pavlovia](http://run.pavlovia.org/val81/listening-effort-bo) (Running mode)

What are you trying to achieve?:  
Running a listening effort study online via Pavlovia, Running mode, credit-based.

What did you try to make it work?:

- Confirmed credits are not the issue: 48 available, 2 consumed, 0 reserved.
- Confirmed “Save incomplete results” is enabled.
- Confirmed that it was not an error local to the participant; reproduced error myself.
- Checked the data files: no data was saved for the listening effort (LE) task at all — only an earlier task in the same experiment (BLP) saved successfully.
- Checked the dashboard stats: shows 0% submitted and 0% aborted for this experiment, despite 2 credits having been consumed and the error occurring twice.

Link to the most relevant existing thread you have found:  
[Error: "credit reserved for this session has been released" — 100% aborted sessions in Running mode](https://discourse.psychopy.org/t/error-credit-reserved-for-this-session-has-been-released-100-aborted-sessions-in-running-mode/47424) — same error message, also in Running mode with credits confirmed available, though that thread shows 100% aborted rather than 0%/0% like mine.

What specifically went wrong when you tried that?:  
A participant got partway through the LE task and received the following error:

"Unfortunately we encountered the following error:

- when uploading participant’s results for experiment: val81/listening-effort-bo
- either the credit reserved for this session has been released or no credit was previously reserved: results cannot be saved."

I reproduced the identical error myself testing the live Running URL afterward. This happened on our first live Running-mode session; the same task worked without issue when Piloting the day before.

Happy to share more project details (repo structure, task code, or a test link) if useful for debugging. Has anyone found a workaround, or is this something the Pavlovia team is already tracking?

Edit:  
When I clicked on the experiment link here, it took me to the first page that the participants see but also had this error appear:

Unfortunately we encountered the following error:

- **TypeError: Cannot read properties of undefined (reading ‘getLastResetTime’)**

Try to run the experiment again. If the error persists, contact the experiment designer

Edit 2:

I think I was getting ahead of myself. The aborted trials have since appeared as such.

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [September 4, 2026, 7:46am UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/2 "2026-09-04T07:46:06Z")

</div>

> [@val81](#):
>
> - Checked the data files: no data was saved for the listening effort (LE) task at all — only an earlier task in the same experiment (BLP) saved successfully.

How long does the overall experiment take?

If you add me (Wake) to the repo then I could fork it so you could test with a licence instead of using credits.

Personally I wouldn’t have “Save incomplete results” ticked if using credits, since that could get very expensive. I also avoid “periodic saving” in case it causes a conflict at the end of the experiment.

Is there a reason why you are using a PsychoPy from 2023 and haven’t upgraded?

According to this thread I suspect that your getLastResetTime error is a brief memory glitch. How stable is your internet connection?

> [@TypeError: cannot read getLastResetTime of undefined](https://discourse.psychopy.org/t/typeerror-cannot-read-getlastresettime-of-undefined/20608):
>
> URL of experiment: [Haley Kragness / Puppy In The Park · GitLab](https://gitlab.pavlovia.org/hekragness/puppy-in-the-park) Description of the problem: I just had a participant send me the following error, which I have never encountered: TypeError: cannot read getLastResetTime of undefined Googling the error didn’t come up with anything useful. Should I be worried or could this just be idiosyncratic for this participant? They reported using Chrome.

---

<div class="post-metadata">

**Author:** ![val81](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@val81](https://discourse.psychopy.org/u/val81)\
**Post date:** [September 4, 2026, 11:39am UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/3 "2026-09-04T11:39:42Z")

</div>

Hello! Thanks for replying.

The experiment (4 tasks total) ranges but typically lasts around 60 minutes depending on the participant.

My internet and the participant’s internet were both fine.

Not sure why we chose specifically a PsychoPy from 2023. Previously when we were testing the PsychoPy tasks locally, we had a version discrepancy problem, where the tasks were built on an older version and then trying to get tested on a newer one. I’m guessing that’s where it came from?

Thank you for the recommendation regarding “Save incomplete results.” I will make these changes now.

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [September 4, 2026, 11:54am UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/4 "2026-09-04T11:54:35Z")

</div>

Thank you. I’ve forked the experiment to [Pavlovia](https://pavlovia.org/test-suite/listening-effort-bo) so you can test it on a licence. Feel free to try to replicate the issue and test edits there.

How did you write this? I can’t see any psyexp files. I therefore suspect that the issue is related to code automatically added to PsychoPy experiments when exported to PsychoJS.

---

<div class="post-metadata">

**Author:** ![val81](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@val81](https://discourse.psychopy.org/u/val81)\
**Post date:** [September 4, 2026, 11:57am UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/5 "2026-09-04T11:57:05Z")

</div>

Thank you for forking it! I will try it right now.

Since previously our experiment was written in Python instead of being built in the builder, we decided to try and replicate the Python code in JavaScript for the exporting to Pavlovia.

---

<div class="post-metadata">

**Author:** ![val81](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@val81](https://discourse.psychopy.org/u/val81)\
**Post date:** [September 4, 2026, 12:00pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/6 "2026-09-04T12:00:10Z")

</div>

Tried the experiment and got the following error after completing the second task (much like the 2 previously aborted attempts using credits): \*\*  
Error\*\*

Unfortunately we encountered the following error:

- when updating the value of the INTEGER record associated with key: [“iat\_counter”]
- **unable to find a record associated with the given key**

Try to run the experiment again. If the error persists, contact the experiment designer.

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [September 4, 2026, 12:05pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/7 "2026-09-04T12:05:00Z")

</div>

I’ve added an integer shelf entry called iat\_counter

 ![image](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/2/1/21171bce1f37e477383848ea33d8e4b8625889af.png)

Does it need any more shelf entries?

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [September 4, 2026, 12:07pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/8 "2026-09-04T12:07:27Z")

</div>

> [@val81](#):
>
> Since previously our experiment was written in Python instead of being built in the builder, we decided to try and replicate the Python code in JavaScript for the exporting to Pavlovia.

This is not something I would ever attempt myself. I would always rewrite it in Builder.

> [@Wakefield's Daily Tips](https://discourse.psychopy.org/t/wakefields-daily-tips/43371/19):
>
> Builder isn’t Coder I strongly discourage the use of PsychoPy Coder for the creation of psychology experiments because Builder is easier to debug, share with others and translate into PsychoJS for use online. If you already have an experiment written in Coder, pasting the code into Builder code components is not sufficient to turn it into a Builder experiment. The logic of how to arrange an experiment is slightly different because of the way Builder works with components, routines and loops. F…

---

<div class="post-metadata">

**Author:** ![val81](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@val81](https://discourse.psychopy.org/u/val81)\
**Post date:** [September 4, 2026, 12:12pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/9 "2026-09-04T12:12:56Z")

</div>

> This is not something I would ever attempt myself. I would always rewrite it in Builder.

Understood, will communicate this to the others on the team.

In the meantime, should we resolve this by rewriting it in the Builder? Previously, the pilot rounds of the experiment all worked seamlessly.

Thank you for adding the shelf entry! I don’t think it should need any more. Is this where we run through it again?

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [September 4, 2026, 12:31pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/10 "2026-09-04T12:31:38Z")

</div>

Yes, you could try running it through again.

At this point it might be possible to create a minimal experiment in Builder so you can check your code with the compiled code relating to saving the data and exiting. You might also need to check the correct libraries are being imported (comparing the contents of index.html)

---

<div class="post-metadata">

**Author:** ![val81](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@val81](https://discourse.psychopy.org/u/val81)\
**Post date:** [September 4, 2026, 12:32pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/11 "2026-09-04T12:32:01Z")

</div>

Just tested it, was able to do the experiment through to the end!

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [September 4, 2026, 12:36pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/12 "2026-09-04T12:36:20Z")

</div>

Cool. I’ve just switched my copy to credit mode, assigned some credits and turned off incomplete data saving. Now try running it again to see if credits are the issue.

---

<div class="post-metadata">

**Author:** ![val81](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@val81](https://discourse.psychopy.org/u/val81)\
**Post date:** [September 4, 2026, 12:47pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/13 "2026-09-04T12:47:14Z")

</div>

Credits do seem to be the issue. I completed the experiment back to where we originally got stuck and got the following error:  
Unfortunately we encountered the following error:

- when uploading participant’s results for experiment: test-suite/listening-effort-bo
- **either the credit reserved for this session has been released or no credit was previously reserved: results cannot be saved**

Try to run the experiment again. If the error persists, contact the experiment designer.

This round also only saved the first task data.

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [September 4, 2026, 12:48pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/14 "2026-09-04T12:48:58Z")

</div>

Does the experiment include code that saves the data part way through?

---

<div class="post-metadata">

**Author:** ![val81](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@val81](https://discourse.psychopy.org/u/val81)\
**Post date:** [September 4, 2026, 12:51pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/15 "2026-09-04T12:51:36Z")

</div>

Something like that, it has the following code that saves a separate data file after each experiment:  
await psychoJS.experiment.save({ tag: ‘\_BLP’, clear: true }); // after runBLP()  
await psychoJS.experiment.save({ tag: ‘\_LE’, clear: true }); // after runLE()  
await psychoJS.experiment.save({ tag: ‘\_IAT’, clear: true }); // after runIAT()  
await psychoJS.experiment.save({ tag: ‘\_MGT’, clear: true }); // after runMGT()

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [September 4, 2026, 12:58pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/16 "2026-09-04T12:58:09Z")

</div>

I think we have enough evidence to know this this is the issue.

When you launch an experiment then a credit gets reserved. When you save the data it gets consumed. If you try to save more data with the same credit, you will get an error message because that credit is no longer available. If you have a license then credits don’t get reserved or checked.

I think you have three options.

1. Buy a licence.

> **[Pricing — PsychoPy®](https://psychopy.org/pricing.html)**

1. Remove the extra data saves so you save everything at the end.

2. Split the experiment into four and daisy chain so each one reserves a new credit.

> [@Wakefield's Daily Tips](https://discourse.psychopy.org/t/wakefields-daily-tips/43371/35):
>
> Daisy Chaining Daisy chaining means going from one web application to another in a single participant session. It normally requires passing the values of one or more variables from one app. to the next so that the data can be matched. There are two aspects to consider. The first is sending values TO Pavlovia. I highly recommend that you send a value for participant (without changing the spelling or capitalisation) since this value will start the data file and log file names. A column for sessi…

---

<div class="post-metadata">

**Author:** ![val81](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@val81](https://discourse.psychopy.org/u/val81)\
**Post date:** [September 4, 2026, 1:01pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/17 "2026-09-04T13:01:12Z")

</div>

I see, thank you for all of your help and for being so quick! I will relay your recommendations to the rest of my team. This is our first time working with Pavlovia, so this has been a slow learning experience.

If we do encounter another error in the future, should I reply to this thread or should I make a new thread?

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [September 4, 2026, 1:19pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/18 "2026-09-04T13:19:23Z")

</div>

You’re welcome. If you have another issue, please start a new thread unless it is related to psychoJS.experiment.save in your experiment or credits.

---

<div class="post-metadata">

**Author:** ![val81](https://avatars.discourse-cdn.com/v4/letter/v/9d8465/32.png) [@val81](https://discourse.psychopy.org/u/val81)\
**Post date:** [September 6, 2026, 3:56pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/19 "2026-09-06T15:56:01Z")

</div>

Hello again,

So I’ve gone with solution 2, removing the extra data saves and saving at the end. This worked, I was able to get all 4 tasks’ data fine. The participant still encounters an error that says the following right at the end, and Pavlovia registers the attempt as “aborted” even though the participant completed the experiment and I was able to get the data with no issues:

Unfortunately we encountered the following error:

- when terminating the experiment
- when uploading participant’s results for experiment: val81/listening-effort-bo
- either the credit reserved for this session has been released or no credit was previously reserved: results cannot be saved

Try to run the experiment again. If the error persists, contact the experiment designer.

Functionally, this error isn’t getting in the way of anything. It’s mostly the technical part of Pavlovia thinking that the attempt was aborted when it was completed. I’m not sure if that’s an issue that we need to fix, but I thought I’d mention it here just in case it was indeed problematic. Thank you!

---

<div class="post-metadata">

**Author:** ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)\
**Post date:** [September 6, 2026, 8:10pm UTC](https://discourse.psychopy.org/t/data-saving-error-on-pavlovia-running-mode-credit-reserved-for-this-session-has-been-released-0-submitted-0-aborted/47813/20 "2026-09-06T20:10:12Z")

</div>

I wonder if the issue is that if you removed your code completely the data would get saved – the error message being due to Pavlovia’s standard attempt to save the data occurring immediately after your code save. Obviously, you should test this if you decide to fix it. However, if you are getting the data you need I don’t see an issue with your current version beyond the confusion it may cause your participants.
