# ERROR: Routines thats skip for no clear reason

**URL:** <https://discourse.psychopy.org/t/error-routines-thats-skip-for-no-clear-reason/28997>\
**Category:** Builder\
**Created:** [May 4, 2022, 5:29pm UTC](https://discourse.psychopy.org/t/error-routines-thats-skip-for-no-clear-reason/28997 "2022-05-04T17:29:06Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![eambron](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/eambron/32/34613_2.png) [@eambron](https://discourse.psychopy.org/u/eambron)\
**Post date:** [May 4, 2022, 5:29pm UTC](https://discourse.psychopy.org/t/error-routines-thats-skip-for-no-clear-reason/28997/1 "2022-05-04T17:29:06Z")

</div>

Hello  
I designed a questionnaire that contains a series of routines with some loops which proceed with mouse or space key response  
Some routines sometimes skip and I cannot figure out why. I read some blogs and based on them I tried:

1. adding a blank screen of 1 second before each routine that skips (the routines that skips are consistent but they skip randomly )
2. adding a second for the routine to appear
3. adding a second for the response key mouse or space of the previous routine and routine that skips  
The routines still skip (range from 2-4) Now I am lost…any suggestion would be very appreciate  
thank you  
Elisabetta

---

<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 4, 2022, 5:53pm UTC](https://discourse.psychopy.org/t/error-routines-thats-skip-for-no-clear-reason/28997/2 "2022-05-04T17:53:25Z")

</div>

Routines skip when they are set to advance with a mouse press in the same location as the previous routine or the same key press when one uses a keyboard component and the other uses getKeys in code.

---

<div class="post-metadata">

**Author:** ![eambron](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/eambron/32/34613_2.png) [@eambron](https://discourse.psychopy.org/u/eambron)\
**Post date:** [May 4, 2022, 6:17pm UTC](https://discourse.psychopy.org/t/error-routines-thats-skip-for-no-clear-reason/28997/3 "2022-05-04T18:17:10Z")

</div>

thank you for your prompt answer. This is not my case. I checked that because I saw your answer it a previous comment. Are there other things I could check?

---

<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 4, 2022, 7:27pm UTC](https://discourse.psychopy.org/t/error-routines-thats-skip-for-no-clear-reason/28997/4 "2022-05-04T19:27:12Z")

</div>

Please could you show more details of the routines that are skipping?

---

<div class="post-metadata">

**Author:** ![eambron](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/eambron/32/34613_2.png) [@eambron](https://discourse.psychopy.org/u/eambron)\
**Post date:** [May 5, 2022, 1:40am UTC](https://discourse.psychopy.org/t/error-routines-thats-skip-for-no-clear-reason/28997/5 "2022-05-05T01:40:25Z")

</div>

Thanks.Here some part of the task. I named the routines that skip. skip1 and 2 and I pasted the routine before and after to give you an idea.  
[Trialskipping.psyexp](https://discourse.psychopy.org/uploads/short-url/s6u3yPe7VS0XJSJD9K5MbrqP4ws.psyexp) (46.3 KB)  
[LimbDeficiency\_VasPre.xlsx](https://discourse.psychopy.org/uploads/short-url/uOmPmEChCeafHfIeAQLMB81pXSk.xlsx) (9.0 KB)

---

<div class="post-metadata">

**Author:** ![wen](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wen/32/30795_2.png) [@wen](https://discourse.psychopy.org/u/wen)\
**Post date:** [May 5, 2022, 3:36am UTC](https://discourse.psychopy.org/t/error-routines-thats-skip-for-no-clear-reason/28997/6 "2022-05-05T03:36:32Z")

</div>

> [@eambron](#):
>
> Some routines sometimes skip and I cannot figure out why. I read some blogs and based on them I tried

I personally think that the Settings on each of your screens are overlapping, causing the buttons to react together, skipping over the fact that you can change component positions

---

<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 5, 2022, 7:56am UTC](https://discourse.psychopy.org/t/error-routines-thats-skip-for-no-clear-reason/28997/7 "2022-05-05T07:56:43Z")

</div>

Try ticking “Discard previous” in your keyboard Data properties.

---

<div class="post-metadata">

**Author:** ![eambron](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/eambron/32/34613_2.png) [@eambron](https://discourse.psychopy.org/u/eambron)\
**Post date:** [May 5, 2022, 4:51pm UTC](https://discourse.psychopy.org/t/error-routines-thats-skip-for-no-clear-reason/28997/8 "2022-05-05T16:51:39Z")

</div>

This worked!!! I have ticked it for all my routines now! 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:** [November 1, 2024, 7:49am UTC](https://discourse.psychopy.org/t/error-routines-thats-skip-for-no-clear-reason/28997/9 "2024-11-01T07:49:38Z")

</div>

2 posts were merged into an existing topic: [Skip a routine when two routines both have time limitation](https://discourse.psychopy.org/t/skip-a-routine-when-two-routines-both-have-time-limitation/42774/2)
