# Date range values of urltemplate throws rison error

**URL:** <https://discuss.elastic.co/t/date-range-values-of-urltemplate-throws-rison-error/286573>\
**Category:** Kibana\
**Created:** [October 13, 2021, 6:32am UTC](https://discuss.elastic.co/t/date-range-values-of-urltemplate-throws-rison-error/286573 "2021-10-13T06:32:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prathibha\_Y](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/prathibha_y/32/95786_2.png) [@Prathibha\_Y](https://discuss.elastic.co/u/Prathibha_Y)\
**Post date:** [October 13, 2021, 6:32am UTC](https://discuss.elastic.co/t/date-range-values-of-urltemplate-throws-rison-error/286573/1 "2021-10-13T06:32:21Z")

</div>

Hi

trying to use urltemplate variables for date range but getting rison decode error, am I doing it right ?

This is the error  
rison decoder error: missing ':'

version Kibana 7.10.0 - oss

This is the url

app/dashboards#/view/\*\*?\_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:{{context.panel.timeRange.from}},to:{{context.panel.timeRange.to}}))&\_a=(description:'Payroll%20Category%20Breakdown',filters:{{rison context.panel.filters}},fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),query:(language:kuery,query:'Element%20Category:%20{{value}}'),timeRestore:!f,title:'Payroll%20Category%20Breakdown',viewMode:view)

The part which throws error is  
time:(from:{{context.panel.timeRange.from}},to:{{context.panel.timeRange.to}}))

I tried  
time:(from:{ {date context.panel.timeRange.from}},to:{{ date context.panel.timeRange.to}}))

time:(\*\* from:{{context.panel.timeRange.from}},to:{{context.panel.timeRange.to}} \*\*))  
nothing works  
Please help

---

<div class="post-metadata">

**Author:** ![rashmi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rashmi/32/16391_2.png) [@rashmi](https://discuss.elastic.co/u/rashmi)\
**Post date:** [October 27, 2021, 5:47pm UTC](https://discuss.elastic.co/t/date-range-values-of-urltemplate-throws-rison-error/286573/2 "2021-10-27T17:47:16Z")

</div>

> [@Prathibha\_Y](#):
>
> rison decoder error: missing ':'

I think there is something wrong in the URL. Try - I think if there is a special symbol, it has to be wrapped with `'` .  
Error handling will be improved in next major version, so Kibana would still load in case when state in query params is corrupted.  
will be fixed by: [#74264](https://github.com/elastic/kibana/pull/74264)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 24, 2021, 5:47pm UTC](https://discuss.elastic.co/t/date-range-values-of-urltemplate-throws-rison-error/286573/3 "2021-11-24T17:47:41Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
