# Duplicate label error

**URL:** <https://forum.universal-robots.com/t/duplicate-label-error/32988>\
**Category:** Technical Questions\
**Created:** [February 27, 2024, 12:03pm UTC](https://forum.universal-robots.com/t/duplicate-label-error/32988 "2024-02-27T12:03:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavel.kunes](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@pavel.kunes](https://forum.universal-robots.com/u/pavel.kunes)\
**Post date:** [February 27, 2024, 12:03pm UTC](https://forum.universal-robots.com/t/duplicate-label-error/32988/1 "2024-02-27T12:03:26Z")

</div>

Hello,  
I have created several programs for different products in Polyscope (UR10). Now I would like to create a default program so that the operator does not have to manually search for a specific program, but after entering the product number this program will run the corresponding program in the file tree. I tried using the IF command and adding the corresponding program as a script. However, after the default program is run, the error message Compile error: Duplicate label appears. Please advise what to do? Thank you. Pavel

---

<div class="post-metadata">

**Author:** ![mmi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.universal-robots.com/mmi/32/691_2.png) [@mmi](https://forum.universal-robots.com/u/mmi)\
**Post date:** [February 27, 2024, 3:36pm UTC](https://forum.universal-robots.com/t/duplicate-label-error/32988/2 "2024-02-27T15:36:17Z")

</div>

Use “subprogram” node instead of script.
