# SVG Import Error

**URL:** <https://forum.inductiveautomation.com/t/svg-import-error/15791>\
**Category:** Ignition\
**Created:** [October 27, 2017, 1:51pm UTC](https://forum.inductiveautomation.com/t/svg-import-error/15791 "2017-10-27T13:51:28Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ctonge](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@ctonge](https://forum.inductiveautomation.com/u/ctonge)\
**Post date:** [October 27, 2017, 1:51pm UTC](https://forum.inductiveautomation.com/t/svg-import-error/15791/1 "2017-10-27T13:51:28Z")

</div>

Hi, I’m receiving the following error when I attempt to copy and past an SVG file into my designer window.

_SerializationException: Unexpected parsing error during XML deserialization._  
_caused by org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog._

I tried to upload the .svg file in question, but the post editor indicates it’s not a permitted file type. I can email it if anyone wants to test.

Thanks,  
Clint.

---

<div class="post-metadata">

**Author:** ![ctonge](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@ctonge](https://forum.inductiveautomation.com/u/ctonge)\
**Post date:** [October 30, 2017, 6:36pm UTC](https://forum.inductiveautomation.com/t/svg-import-error/15791/2 "2017-10-30T18:36:33Z")

</div>

Here’s the svg contents:

[SPARKSOLAR - PMS - TAGLINE.SVG.TXT](https://us1.discourse-cdn.com/inductiveautomation/original/2X/4/4acc9326a610f832e44a7adf63af9905ed8f1416.TXT) (6.4 KB)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 30, 2017, 7:00pm UTC](https://forum.inductiveautomation.com/t/svg-import-error/15791/3 "2017-10-30T19:00:07Z")

</div>

That file pasted into Ignition fine for me:

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/758122bc10725f13ece8f1160f3741c52bb2e39f.png)

What version of Ignition are you on?

---

<div class="post-metadata">

**Author:** ![ctonge](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@ctonge](https://forum.inductiveautomation.com/u/ctonge)\
**Post date:** [October 31, 2017, 5:29pm UTC](https://forum.inductiveautomation.com/t/svg-import-error/15791/4 "2017-10-31T17:29:51Z")

</div>

I’m on 7.9.4. Any chance it has to do with me working on a Mac? Meantime I’ll run a designer in my windows VM and see if there is a different result.

---

<div class="post-metadata">

**Author:** ![ctonge](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@ctonge](https://forum.inductiveautomation.com/u/ctonge)\
**Post date:** [October 31, 2017, 5:31pm UTC](https://forum.inductiveautomation.com/t/svg-import-error/15791/5 "2017-10-31T17:31:05Z")

</div>

I notice that your snippet has no colour??? It should have green and gray in some font…maybe the svg is messed up…

---

<div class="post-metadata">

**Author:** ![ctonge](https://avatars.discourse-cdn.com/v4/letter/c/ec9cab/32.png) [@ctonge](https://forum.inductiveautomation.com/u/ctonge)\
**Post date:** [October 31, 2017, 5:51pm UTC](https://forum.inductiveautomation.com/t/svg-import-error/15791/6 "2017-10-31T17:51:32Z")

</div>

So this is working now. I have no idea what has changed. Dragging and dropping it on threw an error before, and now the same action works just fine. Same svg file as previously tested…very odd.

Sorry for taking up your time on this…

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [October 31, 2017, 5:55pm UTC](https://forum.inductiveautomation.com/t/svg-import-error/15791/7 "2017-10-31T17:55:45Z")

</div>

No problem - I’ve definitely seen some “weird” behavior out of the third party library we use to import and parse the SVGs.

As a general tip, I find that using Inkscape, then Path -\> Simplify, then saving as a ‘Plain SVG’ gives the best results for compatibility with Ignition.

---

<div class="post-metadata">

**Author:** ![ddurant](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@ddurant](https://forum.inductiveautomation.com/u/ddurant)\
**Post date:** [February 18, 2019, 4:07pm UTC](https://forum.inductiveautomation.com/t/svg-import-error/15791/8 "2019-02-18T16:07:10Z")

</div>

I’m having a similar problem with importing a SVG file. I’m taking a graphic that was saved as an Inkscape SVG and when I drag it to my window, I get this:

SAXIOException: The prefix “rdf” for element “rdf:RDF” is not bound.  
caused by org.xml.sax.SAXParseException; lineNumber: 26; columnNumber: 12; The prefix “rdf” for element “rdf:RDF” is not bound.

I would be happy post the more detailed error message if needed.

Thanks
