# Pavlovia error message: "We could not find a record for experiment designer: undefined. Please check the name and try again. If the error persists, contact Pavlovia's administrator."

**URL:** https://discourse.psychopy.org/t/pavlovia-error-message-we-could-not-find-a-record-for-experiment-designer-undefined-please-check-the-name-and-try-again-if-the-error-persists-contact-pavlovias-administrator/12903
**Category:** Online experiments
**Created:** [April 30, 2020, 1:35pm UTC](https://discourse.psychopy.org/t/pavlovia-error-message-we-could-not-find-a-record-for-experiment-designer-undefined-please-check-the-name-and-try-again-if-the-error-persists-contact-pavlovias-administrator/12903 "2020-04-30T13:35:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![edith\_scheifele](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/edith_scheifele/32/6707_2.png) [@edith\_scheifele](https://discourse.psychopy.org/u/edith_scheifele)
#### Post date: [April 30, 2020, 1:35pm UTC](https://discourse.psychopy.org/t/pavlovia-error-message-we-could-not-find-a-record-for-experiment-designer-undefined-please-check-the-name-and-try-again-if-the-error-persists-contact-pavlovias-administrator/12903/1 "2020-04-30T13:35:47Z")

</div>

URL of experiment: [Sign in · GitLab](https://gitlab.pavlovia.org/edith_scheifele/browser-based-exp_2020_tryout)

Description of the problem: I am trying to run a self-paced moving window experiment via Pavlovia. The Python code works fine offline, but I can not try out if the experiment will work online because of the error:

> We could not find a record for experiment designer: undefined. Please check the name and try again. If the error persists, contact Pavlovia’s administrator.

I used a Code Component in Builder for dashing my sentences and proceeding through the sentences. For translating the Python code to JS code, I used the new auto-JS functionality with some changes:

I posted this in the “Begin Experiment” tab, as suggested here: [PsychoPy Python to Javascript crib sheet](https://docs.google.com/document/d/13jp0QAqQeFlYSjeZS0fDInvgaDzBXjGQNe4VNKbbNHQ/edit#heading=h.niu1u15qj037)

- 

> thisExp=psychoJS.experiment;  
> win=psychoJS.window;

I made the function global, as suggested to me in an earlier post:

- 

> replaceWithDash = function (textList, currentWordNumber) {  
> var dashSentence, word;  
> dashSentence = “”;  
> for (var index = 0, \_pj\_a = textList.length; (index \< \_pj\_a); index += 1) {  
> word = textList[index];  
> if ((index !== currentWordNumber)) {  
> dashSentence = ((dashSentence + (“-” \* word.length)) + " “);  
> } else {  
> dashSentence = (((” " + dashSentence) + word) + " ");  
> }  
> }  
> return dashSentence.strip();  
> }

I suspect something went wrong in the translation for the JS code.

Any help would be much appreciated!
