# Array parameter setting fails with Int64 parameter type

**URL:** <https://forum.mimiframework.org/t/array-parameter-setting-fails-with-int64-parameter-type/113>\
**Category:** Uncategorized\
**Created:** [February 11, 2020, 4:32pm UTC](https://forum.mimiframework.org/t/array-parameter-setting-fails-with-int64-parameter-type/113 "2020-02-11T16:32:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![ckingdon95](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.mimiframework.org/ckingdon95/32/15_2.png) [@ckingdon95](https://forum.mimiframework.org/u/ckingdon95)\
**Post date:** [February 11, 2020, 7:07pm UTC](https://forum.mimiframework.org/t/array-parameter-setting-fails-with-int64-parameter-type/113/4 "2020-02-11T19:07:02Z")

</div>

Aha! I replicated the error, it only happens when the index isn’t `:time`… very weird… I will look into this! The following example now produces the error:

```auto
using Mimi

@defcomp bar begin
    x::Int64 = Parameter(index=[regions])
end

m = Model()
set_dimension!(m, :time, 3)
set_dimension!(m, :regions, [:a, :b])
add_comp!(m, bar)
set_param!(m, :bar, :x, [1,2])

```

---

_[View the full topic](https://forum.mimiframework.org/t/array-parameter-setting-fails-with-int64-parameter-type/113)._
