# Kibana 7.14 - Canvas var\_set no longer accepts input context

**URL:** <https://discuss.elastic.co/t/kibana-7-14-canvas-var-set-no-longer-accepts-input-context/281420>\
**Category:** Kibana\
**Created:** [August 14, 2021, 3:13am UTC](https://discuss.elastic.co/t/kibana-7-14-canvas-var-set-no-longer-accepts-input-context/281420 "2021-08-14T03:13:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![markbyrnegkc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markbyrnegkc/32/92909_2.png) [@markbyrnegkc](https://discuss.elastic.co/u/markbyrnegkc)\
**Post date:** [August 14, 2021, 3:13am UTC](https://discuss.elastic.co/t/kibana-7-14-canvas-var-set-no-longer-accepts-input-context/281420/1 "2021-08-14T03:13:16Z")

</div>

In 7.14 the var\_set function in- Canvas no longer accepts the input context as the value. One needs to explicitly set the value now.

Trying to run this expression:  
`date | var_set "mydate" | var "mydate" | render as="debug"`  
gives the error message:  
`[var_set] > args.value is undefined`

To get this to work the value needs to be explicitly set i.e.  
`date | var_set "mydate" value={context} | var "mydate" | render as="debug"`

---

<div class="post-metadata">

**Author:** ![poff](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/poff/32/81795_2.png) [@poff](https://discuss.elastic.co/u/poff)\
**Post date:** [September 3, 2021, 5:14pm UTC](https://discuss.elastic.co/t/kibana-7-14-canvas-var-set-no-longer-accepts-input-context/281420/2 "2021-09-03T17:14:44Z")

</div>

Hey Mark, apologies for the delay in responding. It does look like that is a bug introduced by some recent updates to the var\_set function. I've let the team know and they're looking into a fix.

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [September 6, 2021, 9:14am UTC](https://discuss.elastic.co/t/kibana-7-14-canvas-var-set-no-longer-accepts-input-context/281420/3 "2021-09-06T09:14:56Z")

</div>

i've opened an issue to track this here: [https://github.com/elastic/kibana/issues/111262](https://github.com/elastic/kibana/issues/111262)

---

<div class="post-metadata">

**Author:** ![markbyrnegkc](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/markbyrnegkc/32/92909_2.png) [@markbyrnegkc](https://discuss.elastic.co/u/markbyrnegkc)\
**Post date:** [September 7, 2021, 2:41am UTC](https://discuss.elastic.co/t/kibana-7-14-canvas-var-set-no-longer-accepts-input-context/281420/4 "2021-09-07T02:41:23Z")

</div>

Thanks folks,

Mark

---

<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:** [October 5, 2021, 2:41am UTC](https://discuss.elastic.co/t/kibana-7-14-canvas-var-set-no-longer-accepts-input-context/281420/5 "2021-10-05T02:41:57Z")

</div>

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