# Template Canvas Error On Binding

**URL:** <https://forum.inductiveautomation.com/t/template-canvas-error-on-binding/11349>\
**Category:** Ignition\
**Created:** [March 11, 2016, 2:22pm UTC](https://forum.inductiveautomation.com/t/template-canvas-error-on-binding/11349 "2016-03-11T14:22:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kblankenship](https://avatars.discourse-cdn.com/v4/letter/k/e19adc/32.png) [@kblankenship](https://forum.inductiveautomation.com/u/kblankenship)\
**Post date:** [March 11, 2016, 2:22pm UTC](https://forum.inductiveautomation.com/t/template-canvas-error-on-binding/11349/1 "2016-03-11T14:22:43Z")

</div>

I am using some template canvases bound to a memory tag DataSet for their layout, but every time I open my projects in Ignition Designer I get this error. Everything seems to work fine on the client side but this is a nuisance I cannot figure out. Is there any way to avoid this when I launch the project in designer?

java.lang.ClassCastException: Cannot coerce value ‘-1’ into type: interface com.inductiveautomation.ignition.common.Dataset  
at com.inductiveautomation.ignition.common.TypeUtilities.coerce(TypeUtilities.java:1242)  
at com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter.setQValue(AbstractPropertyAdapter.java:224)  
at com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter.updateValue(AbstractPropertyAdapter.java:264)  
at com.inductiveautomation.factorypmi.application.binding.ExpressionPropertyAdapter.runExpression(ExpressionPropertyAdapter.java:88)  
at com.inductiveautomation.factorypmi.application.binding.ExpressionPropertyAdapter$1.run(ExpressionPropertyAdapter.java:58)  
at com.inductiveautomation.ignition.client.util.EDTUtil$ProcessQueue.run(EDTUtil.java:112)  
at java.awt.event.InvocationEvent.dispatch(Unknown Source)  
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)  
at java.awt.EventQueue.access$400(Unknown Source)  
at java.awt.EventQueue$2.run(Unknown Source)  
at java.awt.EventQueue$2.run(Unknown Source)  
at java.security.AccessController.doPrivileged(Native Method)  
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)  
at java.awt.EventQueue.dispatchEvent(Unknown Source)  
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)  
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)  
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)  
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)  
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)  
at java.awt.EventDispatchThread.run(Unknown Source)

Ignition v7.8.0 (b2015101414)  
Java: Sun Microsystems Inc. 1.6.0\_43

---

<div class="post-metadata">

**Author:** ![jeffkrol](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jeffkrol/32/3339_2.png) [@jeffkrol](https://forum.inductiveautomation.com/u/jeffkrol)\
**Post date:** [March 20, 2017, 10:04pm UTC](https://forum.inductiveautomation.com/t/template-canvas-error-on-binding/11349/2 "2017-03-20T22:04:00Z")

</div>

Not sure if it’s related but we are getting a similar error over in this thread:

[inductiveautomation.com/forum/v … &sk=t&sd=a](https://inductiveautomation.com/forum/viewtopic.php?f=70&t=15485&start=0&st=0&sk=t&sd=a)
