# XML Tag Import Fails

**URL:** <https://forum.inductiveautomation.com/t/xml-tag-import-fails/6542>\
**Category:** Ignition\
**Created:** [May 21, 2013, 12:39pm UTC](https://forum.inductiveautomation.com/t/xml-tag-import-fails/6542 "2013-05-21T12:39:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![phayes057](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@phayes057](https://forum.inductiveautomation.com/u/phayes057)\
**Post date:** [May 21, 2013, 12:39pm UTC](https://forum.inductiveautomation.com/t/xml-tag-import-fails/6542/1 "2013-05-21T12:39:23Z")

</div>

When trying to import SQL tags from an XML file, I get the following error. I have tried deleting the target folder prior to importing, have tried importing an unchanged XML export file just to see if my editor was changing something that should not be. I always get this result. The text below is from the detail tab of the error dialog box. The primary tab is blank.

org.xml.sax.SAXException  
java.lang.NullPointerException  
at com.inductiveautomation.ignition.common.xmlserialization.simple.SimpleXMLReader.endElement(SimpleXMLReader.java:159)  
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)  
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)  
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)  
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)  
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)  
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)  
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)  
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)  
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)  
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)  
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)  
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)  
at javax.xml.parsers.SAXParser.parse(Unknown Source)  
at com.inductiveautomation.ignition.common.xmlserialization.simple.SimpleXMLReader.parseFile(SimpleXMLReader.java:50)  
at com.inductiveautomation.ignition.designer.sqltags.action.ImportTagAction$XMLTagImporter.run(ImportTagAction.java:234)  
at com.inductiveautomation.ignition.client.util.gui.progress.ClientProgressManager$ClientRunningTask.run(ClientProgressManager.java:544)  
at com.inductiveautomation.ignition.common.execution.impl.BasicExecutionEngine$ThrowableCatchingRunnable.run(BasicExecutionEngine.java:526)  
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)  
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)  
at java.util.concurrent.FutureTask.run(Unknown Source)  
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)  
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)  
at java.lang.Thread.run(Unknown Source)  
Caused by: java.lang.NullPointerException  
at com.inductiveautomation.ignition.designer.sqltags.importexport.xml.TagXMLImporter$PermissionModelElement.addChild(TagXMLImporter.java:232)  
at com.inductiveautomation.ignition.common.xmlserialization.simple.SimpleXMLReader.endElement(SimpleXMLReader.java:156)  
… 25 more

Ignition v7.6.1-rc4 (b2257)  
Java: Oracle Corporation 1.7.0\_21

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [May 21, 2013, 3:51pm UTC](https://forum.inductiveautomation.com/t/xml-tag-import-fails/6542/2 "2013-05-21T15:51:50Z")

</div>

Can you attach the edited and unedited XML exports of your tags so we can look at them?

---

<div class="post-metadata">

**Author:** ![phayes057](https://avatars.discourse-cdn.com/v4/letter/p/e99b99/32.png) [@phayes057](https://forum.inductiveautomation.com/u/phayes057)\
**Post date:** [May 21, 2013, 4:22pm UTC](https://forum.inductiveautomation.com/t/xml-tag-import-fails/6542/3 "2013-05-21T16:22:04Z")

</div>

Sure. I have attached an export here.

I am using 7.6.1 - rc4 but have had the same result with released versions. I have tried creating an empty project to see if I can import into that and I get the same result.

Thanks for the help.  
[sqltags\_export\_MF1\_edited.xml](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/c7a536d2769c5d44ecfa3a4b4923111de3ff890f.xml) (331 KB)  
[sqltags\_export\_MF1.xml](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/aed8b2e130082c515aa54307b0120e0b775180e8.xml) (331 KB)

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [May 21, 2013, 4:40pm UTC](https://forum.inductiveautomation.com/t/xml-tag-import-fails/6542/4 "2013-05-21T16:40:54Z")

</div>

Thanks for the export. Looks like the NPE happens when you try to import an XML tag export file that has permissions set on tags. I’ll enter this into our bug ticketing system.

---

<div class="post-metadata">

**Author:** ![B.Williams](https://avatars.discourse-cdn.com/v4/letter/b/b4bc9f/32.png) [@B.Williams](https://forum.inductiveautomation.com/u/B.Williams)\
**Post date:** [October 15, 2013, 4:07pm UTC](https://forum.inductiveautomation.com/t/xml-tag-import-fails/6542/5 "2013-10-15T16:07:35Z")

</div>

Was there ever a resolution to this issue? I am having the same problem, using the same build.

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [October 15, 2013, 5:14pm UTC](https://forum.inductiveautomation.com/t/xml-tag-import-fails/6542/6 "2013-10-15T17:14:31Z")

</div>

This was fixed, but you’ll have to upgrade, preferably to the latest version of 7.6. 7.6.3 is the latest stable, 7.6.4-rc1 is the most recent RC.
