# Error when adding data source to a new report

**URL:** <https://forum.inductiveautomation.com/t/error-when-adding-data-source-to-a-new-report/10716>\
**Category:** Ignition\
**Created:** [November 2, 2015, 2:32pm UTC](https://forum.inductiveautomation.com/t/error-when-adding-data-source-to-a-new-report/10716 "2015-11-02T14:32:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JonVP](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@JonVP](https://forum.inductiveautomation.com/u/JonVP)\
**Post date:** [November 2, 2015, 2:32pm UTC](https://forum.inductiveautomation.com/t/error-when-adding-data-source-to-a-new-report/10716/1 "2015-11-02T14:32:46Z")

</div>

I get the following error when trying to add a new data source (other than a CSV) when trying to create a report within the new report designer:

[quote]java.lang.IllegalArgumentException: path in TreePath must be non null and not empty.  
at javax.swing.tree.TreePath.(Unknown Source)  
at javax.swing.event.TreeModelEvent.(Unknown Source)  
at javax.swing.tree.DefaultTreeModel.fireTreeNodesChanged(Unknown Source)  
at com.inductiveautomation.reporting.designer.workspace.data.sources.QueryDataSourceConfigPanel$SubQueryPanel$QueryNavModel.notifyUpdated(QueryDataSourceConfigPanel.java:421)  
at com.inductiveautomation.reporting.designer.workspace.data.sources.QueryDataSourceConfigPanel$SubQueryPanel$QueryNavModel.notifyUpdated(QueryDataSourceConfigPanel.java:406)  
at com.inductiveautomation.reporting.designer.workspace.data.sources.QueryDataSourceConfigPanel$SubQueryPanel.updateTree(QueryDataSourceConfigPanel.java:287)  
at com.inductiveautomation.reporting.designer.workspace.data.sources.QueryDataSourceConfigPanel.save(QueryDataSourceConfigPanel.java:211)  
at com.inductiveautomation.reporting.designer.workspace.data.sources.QueryDataSourceConfigPanel.access$100(QueryDataSourceConfigPanel.java:69)  
at com.inductiveautomation.reporting.designer.workspace.data.sources.QueryDataSourceConfigPanel$3$1.run(QueryDataSourceConfigPanel.java:146)  
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 com.inductiveautomation.snap.swing.RibsEventQueue.dispatchEvent(RibsEventQueue.java:87)  
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\_31  
[/quote]  
At this point can’t delete the new data source completely (the data source configuration panels still stay in the view even if selecting the Design tab or any other tab) or go to any other tab within the designer without getting this error again.

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [November 2, 2015, 3:46pm UTC](https://forum.inductiveautomation.com/t/error-when-adding-data-source-to-a-new-report/10716/2 "2015-11-02T15:46:35Z")

</div>

What OS are you using? I’ve had this happen when I’m using a Mac with Java 6, but not other OSes. (Upgrading to Java 7 solved it on the Mac.)

---

<div class="post-metadata">

**Author:** ![JonVP](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@JonVP](https://forum.inductiveautomation.com/u/JonVP)\
**Post date:** [November 2, 2015, 4:39pm UTC](https://forum.inductiveautomation.com/t/error-when-adding-data-source-to-a-new-report/10716/3 "2015-11-02T16:39:12Z")

</div>

Windows 7 - I’m currently waiting on a ticket with my IT department to update to Java 8 to see if that helps.

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [November 2, 2015, 4:49pm UTC](https://forum.inductiveautomation.com/t/error-when-adding-data-source-to-a-new-report/10716/4 "2015-11-02T16:49:44Z")

</div>

yikes – thanks for the info. I’ll update our bug ticket with that.

---

<div class="post-metadata">

**Author:** ![JonVP](https://avatars.discourse-cdn.com/v4/letter/j/898d66/32.png) [@JonVP](https://forum.inductiveautomation.com/u/JonVP)\
**Post date:** [November 2, 2015, 9:52pm UTC](https://forum.inductiveautomation.com/t/error-when-adding-data-source-to-a-new-report/10716/5 "2015-11-02T21:52:22Z")

</div>

Updating to JRE 1.8.0\_45 took care of the issue.

---

<div class="post-metadata">

**Author:** ![KathyApplebaum](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kathyapplebaum/32/7261_2.png) [@KathyApplebaum](https://forum.inductiveautomation.com/u/KathyApplebaum)\
**Post date:** [November 2, 2015, 9:55pm UTC](https://forum.inductiveautomation.com/t/error-when-adding-data-source-to-a-new-report/10716/6 "2015-11-02T21:55:35Z")

</div>

So glad to hear that.

I’ve got the bug fixed, but the fix won’t be out until the first RC of 7.8.1.
