# App Lab Debugging Help

**URL:** <https://forum.code.org/t/app-lab-debugging-help/26879>\
**Category:** CS Principles\
**Tags:** applab\
**Created:** [May 14, 2019, 3:29pm UTC](https://forum.code.org/t/app-lab-debugging-help/26879 "2019-05-14T15:29:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kstandley](https://avatars.discourse-cdn.com/v4/letter/k/90db22/32.png) [@kstandley](https://forum.code.org/u/kstandley)\
**Post date:** [May 14, 2019, 3:29pm UTC](https://forum.code.org/t/app-lab-debugging-help/26879/1 "2019-05-14T15:29:23Z")

</div>

For my semester final, I’m having students build an app in App Lab. Two students are working together on their code, and have the same block of code, but it will throw exceptions for one student and not the other.

The exceptions are:

ERROR: Line: 194: Error: setText() id parameter refers to an id ("") which is already being used outside of App Lab. Please use a different id.  
ERROR: Line: 195: Error: getXPosition() id parameter refers to an id ("") which is already being used outside of App Lab. Please use a different id.

The code throwing the errors is (I added comment code to show which lines are the issue):

function timer (event) {  
if (event.srcElementId == “Lvl\_1”) {  
timerSet = “timeInput1”;  
}else if (event.srcElementId == “Lvl\_2”) {  
timerSet = “timeInput2”;  
}  
timedLoop(1000, function() {  
time --;  
console.log(time);  
console.log(timerSet);  
// Line 194:  
setText(timerSet, time);  
// Line 195:  
if (getXPosition(lvl\_1\_sprite) \>= 320) {  
stopTimedLoop();  
scoring(event);  
}  
});  
}

I’ve tried changing the name of the lvl\_1\_sprite variable, but so far have had no luck helping him and I’m not really sure what steps to take from here. Any help is appreciated.

Thanks!

---

<div class="post-metadata">

**Author:** ![bhatnagars](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/bhatnagars/32/4919_2.png) [@bhatnagars](https://forum.code.org/u/bhatnagars)\
**Post date:** [May 30, 2019, 6:46pm UTC](https://forum.code.org/t/app-lab-debugging-help/26879/2 "2019-05-30T18:46:40Z")

</div>

Please share the link to the app.
