# Duplicate Scenario Name error message

**URL:** https://community.gatling.io/t/duplicate-scenario-name-error-message/1927
**Category:** Gatling (Open-Source)
**Created:** [January 23, 2015, 4:40pm UTC](https://community.gatling.io/t/duplicate-scenario-name-error-message/1927 "2015-01-23T16:40:57Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![jarrowwx](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jarrowwx](https://community.gatling.io/u/jarrowwx)
#### Post date: [January 23, 2015, 4:40pm UTC](https://community.gatling.io/t/duplicate-scenario-name-error-message/1927/1 "2015-01-23T16:40:57Z")

</div>

Enhancement Request: Add the duplicate name to the error message.

The message looks like this:

Exception in thread “main” java.lang.IllegalArgumentException: Scenario names must be unique but found a duplicate

It would be very helpful if it said which name was duplicated. I’ve got 20+ in one simulation, and it would be nice to know what I’m looking for. 🙂

---

<div class="post-metadata">

### Author: ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)
#### Post date: [January 23, 2015, 4:48pm UTC](https://community.gatling.io/t/duplicate-scenario-name-error-message/1927/2 "2015-01-23T16:48:03Z")

</div>

Hi John !

Indeed, knowing which scenario names are duplicated would be nice.  
As always, contributions are welcomed 🙂  
Little hint : [https://github.com/gatling/gatling/blob/master/gatling-core/src/main/scala/io/gatling/core/scenario/Simulation.scala#L101](https://github.com/gatling/gatling/blob/master/gatling-core/src/main/scala/io/gatling/core/scenario/Simulation.scala#L101) 😉

Cheers,

Pierre

---

<div class="post-metadata">

### Author: ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)
#### Post date: [January 26, 2015, 10:52am UTC](https://community.gatling.io/t/duplicate-scenario-name-error-message/1927/3 "2015-01-26T10:52:05Z")

</div>

Done: [https://github.com/gatling/gatling/issues/2531](https://github.com/gatling/gatling/issues/2531)

---

<div class="post-metadata">

### Author: ![John\_Arrowwood1](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@John\_Arrowwood1](https://community.gatling.io/u/John_Arrowwood1)
#### Post date: [January 26, 2015, 5:25pm UTC](https://community.gatling.io/t/duplicate-scenario-name-error-message/1927/4 "2015-01-26T17:25:55Z")

</div>

What’s really odd is, there wasn’t really a duplicate. I could not figure it out, and yet eventually the problem went away. Go figure!

---

<div class="post-metadata">

### Author: ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)
#### Post date: [January 26, 2015, 5:45pm UTC](https://community.gatling.io/t/duplicate-scenario-name-error-message/1927/5 "2015-01-26T17:45:19Z")

</div>

Maybe some Zinc incremental compilation issue.

---

<div class="post-metadata">

### Author: ![jarrowwx](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@jarrowwx](https://community.gatling.io/u/jarrowwx)
#### Post date: [January 26, 2015, 6:35pm UTC](https://community.gatling.io/t/duplicate-scenario-name-error-message/1927/6 "2015-01-26T18:35:11Z")

</div>

Hmm. That would be very bad. How could I rule that out?

---

<div class="post-metadata">

### Author: ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)
#### Post date: [January 26, 2015, 6:44pm UTC](https://community.gatling.io/t/duplicate-scenario-name-error-message/1927/7 "2015-01-26T18:44:19Z")

</div>

That’s just purely hypothetical. Zinc uses sbt’s incremental compiler, so it’s quite safe…  
If you have a doubt, you can clean the target directory to trigger a full compilation.
