# Templates

**URL:** <https://forum.inductiveautomation.com/t/templates/6247>\
**Category:** Ignition\
**Created:** [April 16, 2013, 10:08pm UTC](https://forum.inductiveautomation.com/t/templates/6247 "2013-04-16T22:08:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![allenr8](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@allenr8](https://forum.inductiveautomation.com/u/allenr8)\
**Post date:** [April 16, 2013, 10:08pm UTC](https://forum.inductiveautomation.com/t/templates/6247/1 "2013-04-16T22:08:17Z")

</div>

I have exported several of my templates from one project over into another, but I get the following error on them. Not sure what to look at. The only -1 I have is in the style customizer.

java.lang.ClassCastException: Cannot coerce value ‘-1’ into type: interface com.inductiveautomation.ignition.common.Dataset  
at com.inductiveautomation.ignition.common.TypeUtilities.coerce(TypeUtilities.java:1116)  
at com.inductiveautomation.ignition.common.TypeUtilities.coerceNullSafe(TypeUtilities.java:704)  
at com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter.setQValue(AbstractPropertyAdapter.java:210)  
at com.inductiveautomation.factorypmi.application.binding.SimpleBoundTagAdapter.setQValue(SimpleBoundTagAdapter.java:233)  
at com.inductiveautomation.factorypmi.application.binding.AbstractPropertyAdapter.updateValue(AbstractPropertyAdapter.java:248)  
at com.inductiveautomation.factorypmi.application.binding.SimpleBoundTagAdapter.notifyTagChanged(SimpleBoundTagAdapter.java:486)  
at com.inductiveautomation.factorypmi.application.binding.SimpleBoundTagAdapter.tagChanged(SimpleBoundTagAdapter.java:475)  
at com.inductiveautomation.factorypmi.application.sqltags.project.ProjectTagManager.subscribe(ProjectTagManager.java:378)  
at com.inductiveautomation.ignition.client.sqltags.impl.ClientTagManagerImpl.subscribe(ClientTagManagerImpl.java:385)  
at com.inductiveautomation.factorypmi.application.binding.SimpleBoundTagAdapter.startup(SimpleBoundTagAdapter.java:140)  
at com.inductiveautomation.factorypmi.application.binding.DefaultInteractionController.startupAdapters(DefaultInteractionController.java:312)  
at com.inductiveautomation.factorypmi.application.components.template.VisionTemplate.startup(VisionTemplate.java:166)  
at com.inductiveautomation.factorypmi.designer.workspace.WindowWorkspace.openTemplate(WindowWorkspace.java:3274)  
at com.inductiveautomation.factorypmi.designer.model.navtree.TemplateNode.onDoubleClick(TemplateNode.java:133)  
at com.inductiveautomation.ignition.designer.navtree.NavTreePanel$MouseListener$1.run(NavTreePanel.java:556)  
at java.awt.event.InvocationEvent.dispatch(Unknown Source)  
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)  
at java.awt.EventQueue.access$000(Unknown Source)  
at java.awt.EventQueue$1.run(Unknown Source)  
at java.awt.EventQueue$1.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.6.0-beta4 (b1792)  
Java: Sun Microsystems Inc. 1.6.0\_30

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [April 18, 2013, 3:37pm UTC](https://forum.inductiveautomation.com/t/templates/6247/2 "2013-04-18T15:37:02Z")

</div>

Hi,

Could you maybe attach the template export to this post? It looks like something is maybe getting mixed up on a dataset typed property. It would be easiest to track down if we could just import and replicate it.

Thanks,

---

<div class="post-metadata">

**Author:** ![allenr8](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@allenr8](https://forum.inductiveautomation.com/u/allenr8)\
**Post date:** [April 18, 2013, 4:02pm UTC](https://forum.inductiveautomation.com/t/templates/6247/3 "2013-04-18T16:02:04Z")

</div>

I actually spoke to tech support and it had to do with the import/export of the SQLTags and not really anything to do with templates.

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [April 18, 2013, 4:50pm UTC](https://forum.inductiveautomation.com/t/templates/6247/4 "2013-04-18T16:50:31Z")

</div>

That might be true, and we’ve fixed some issues with import that will be in beta 5 (going up this morning), but we didn’t specifically replicate this problem, so I can’t say for sure that it’s fixed. However, once the new beta is up, you can go through the export/import routine with your objects and let us know.

Regards,
