# Invalid suscript in a parameter

**URL:** <https://discuss.ampl.com/t/invalid-suscript-in-a-parameter/890>\
**Category:** Support\
**Created:** [January 5, 2024, 3:57pm UTC](https://discuss.ampl.com/t/invalid-suscript-in-a-parameter/890 "2024-01-05T15:57:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Insu](https://avatars.discourse-cdn.com/v4/letter/i/d26b3c/32.png) [@Insu](https://discuss.ampl.com/u/Insu)\
**Post date:** [January 5, 2024, 3:57pm UTC](https://discuss.ampl.com/t/invalid-suscript-in-a-parameter/890/1 "2024-01-05T15:57:48Z")

</div>

Hi all,  
I have the following parameter with data:

```auto
p_shift_d1_min [*,11dec,semana,almuerzo_semana,*]
: '13:00' '14:00' '15:00' :=
914453725 9 8 3

```

Nevertheless when I tried to (use from another parameter or display) it says is invalid subscript

```auto
Error executing "display" command:
	invalid subscript p_shift_d1_min['914453725','11dec','semana','almuerzo_semana','13:00'].

```

I am using amplpy.  
Would you please let me know if I’m doing something wrong?

Thanks  
Andrés

---

<div class="post-metadata">

**Author:** ![4er](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.ampl.com/4er/32/530_2.png) [@4er](https://discuss.ampl.com/u/4er)\
**Post date:** [January 5, 2024, 8:33pm UTC](https://discuss.ampl.com/t/invalid-suscript-in-a-parameter/890/2 "2024-01-05T20:33:32Z")

</div>

This error occurs when you give a value for `p_shift_d1_min['914453725','11dec','semana','almuerzo_semana','13:00']` in your data, but `('914453725','11dec','semana','almuerzo_semana','13:00')` is not a member of the index set for param p\_shift\_d1\_min.

To get more help, post the param statement that defines p\_shift\_d1\_min in your model, and also the data for the indexing sets that are used in that param statement.
