# Online experiment survey not syncing with Key error

**URL:** <https://discourse.psychopy.org/t/online-experiment-survey-not-syncing-with-key-error/40040>\
**Category:** Pavlovia Surveys\
**Created:** [May 14, 2024, 7:20pm UTC](https://discourse.psychopy.org/t/online-experiment-survey-not-syncing-with-key-error/40040 "2024-05-14T19:20:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![L\_rose](https://avatars.discourse-cdn.com/v4/letter/l/e56c9b/32.png) [@L\_rose](https://discourse.psychopy.org/u/L_rose)\
**Post date:** [May 14, 2024, 7:20pm UTC](https://discourse.psychopy.org/t/online-experiment-survey-not-syncing-with-key-error/40040/1 "2024-05-14T19:20:37Z")

</div>

Hi, i am creating a stroop experiment to which after they have done the stroop they kept on Pavlovia to complete a questionnaire. The experiement runs perfectly fine online however when i have added a routine to qualtrics to direct to the surveys after they have finished i get the error ‘rel’ when attempting to sync.  
Traceback (most recent call last):  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 1604, in onPavloviaSync  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 890, in fileExport  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 87, in generateScript  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 225, in compileScript  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 198, in \_makeTarget  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/\_experiment.py”, line 366, in writeScript  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/components/settings/ **init**.py”, line 1078, in writeInitCodeJS  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/components/settings/ **init**.py”, line 1068, in prepareResourcesJS  
KeyError: ‘rel’

I have removed the questionnaire routine and this doesnt appear.  
I have a keyboard element to move on from the end screen.

Many thanks to anyones solutions. xx

---

<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:** [May 15, 2024, 1:40pm UTC](https://discourse.psychopy.org/t/online-experiment-survey-not-syncing-with-key-error/40040/2 "2024-05-15T13:40:56Z")

</div>

> [@L\_rose](#):
>
> i have added a routine to qualtrics

Please could you clarify what you have done. Qualtrics doesn’t have “routines” so I’m guessing you mean a PsychoPy routine. However, daisy chaining (moving from one piece of software to another) is normally done via Experiment Settings / Online.

Have you added any code which includes the letters or reference rel ?

---

<div class="post-metadata">

**Author:** ![slynne](https://avatars.discourse-cdn.com/v4/letter/s/3ab097/32.png) [@slynne](https://discourse.psychopy.org/u/slynne)\
**Post date:** [October 7, 2024, 9:34pm UTC](https://discourse.psychopy.org/t/online-experiment-survey-not-syncing-with-key-error/40040/3 "2024-10-07T21:34:29Z")

</div>

Hi there, I am having the same issue.

I have an experiment on PsychoPy that runs and syncs perfectly to Pavlovia to be run online. However, when I add a Pavlovia Survey to the experiment in the builder (linked via survey ID) as a standalone routine, I then get the following error when I go to sync to Pavlovia:

Traceback (most recent call last):  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/builder/builder.py”, line 1608, in onPavloviaSync  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/app/builder/builder.py”, line 894, in fileExport  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/scripts/psyexpCompile.py”, line 83, in generateScript  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/scripts/psyexpCompile.py”, line 221, in compileScript  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/scripts/psyexpCompile.py”, line 194, in \_makeTarget  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/experiment/\_experiment.py”, line 366, in writeScript  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/experiment/components/settings/ **init**.py”, line 1101, in writeInitCodeJS  
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.10/psychopy/experiment/components/settings/ **init**.py”, line 1091, in prepareResourcesJS  
KeyError: ‘rel’

If I remove the survey routine from the experiment, it syncs just fine with no errors. Can anyone help me figure out what this error is and what could be causing it?
