# System.util.retarget Error

**URL:** <https://forum.inductiveautomation.com/t/system-util-retarget-error/24518>\
**Category:** Ignition\
**Created:** [April 30, 2019, 5:48pm UTC](https://forum.inductiveautomation.com/t/system-util-retarget-error/24518 "2019-04-30T17:48:42Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tim.schultz](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@tim.schultz](https://forum.inductiveautomation.com/u/tim.schultz)\
**Post date:** [April 30, 2019, 5:48pm UTC](https://forum.inductiveautomation.com/t/system-util-retarget-error/24518/1 "2019-04-30T17:48:42Z")

</div>

I have an application running on a 7.9.9 server [“Main”], and I was attempting to use system.util.retarget to switch to an application located on my 7.9.7 server [“Remote”]. I’m able to access the Remote server via browser as well as through client launcher etc, but when I attempt to use the retarget, I get an error that reads:

Error launching application:  
SAXParseException: The declaration for the entity  
“HTML.Version” must end with ‘\>’.

Any suggestions? I’ve tried server name vs IP address.

```auto
if(targetName=='Project 1'):
  isIgnitionLink = 1
  gateway = 'ServerName:8088'
  projectName = 'PROJECT1'
elif(targetName=='Project 2'):
  isIgnitionLink = 1
  gateway = 'IP_ADDRESS:8088'
  projectName = 'PROJECT2'
if isIgnitionLink:
  system.util.retarget(projectName,gateway)

```

---

<div class="post-metadata">

**Author:** ![neill](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@neill](https://forum.inductiveautomation.com/u/neill)\
**Post date:** [June 19, 2019, 3:39am UTC](https://forum.inductiveautomation.com/t/system-util-retarget-error/24518/2 "2019-06-19T03:39:17Z")

</div>

If you have solved this issue please ignore, but according to the [docs](https://docs.inductiveautomation.com/display/DOC79/system.util.retarget) you should format your remote gateway address like this:

> `system.util.retarget("RandomProjectName", "10.30.2.34:8088/main")`

I have no idea what your error message means sorry.

---

<div class="post-metadata">

**Author:** ![neill](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@neill](https://forum.inductiveautomation.com/u/neill)\
**Post date:** [June 19, 2019, 5:14am UTC](https://forum.inductiveautomation.com/t/system-util-retarget-error/24518/3 "2019-06-19T05:14:46Z")

</div>

Actually I am having the exact same error message as you are.  
Seems to only happen after connecting, while the manifest is being downloaded.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/f433f60e553768e4961da93771d6948984aeecb7.png)

Did you manage to resolve it?

---

<div class="post-metadata">

**Author:** ![tim.schultz](https://avatars.discourse-cdn.com/v4/letter/t/71e660/32.png) [@tim.schultz](https://forum.inductiveautomation.com/u/tim.schultz)\
**Post date:** [June 19, 2019, 12:39pm UTC](https://forum.inductiveautomation.com/t/system-util-retarget-error/24518/4 "2019-06-19T12:39:11Z")

</div>

I was not able to resolve this, unfortunately. Sorry!

---

<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:** [June 19, 2019, 4:06pm UTC](https://forum.inductiveautomation.com/t/system-util-retarget-error/24518/5 "2019-06-19T16:06:59Z")

</div>

If you’re on 8.0, you need to drop the `/main` in the redirect URL. If you’re on 7.9, the opposite is true - you need to _insert_ the `/main`. It’s confusing (hence why we removed it) but required when in 7.9.

---

<div class="post-metadata">

**Author:** ![neill](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@neill](https://forum.inductiveautomation.com/u/neill)\
**Post date:** [June 19, 2019, 9:16pm UTC](https://forum.inductiveautomation.com/t/system-util-retarget-error/24518/6 "2019-06-19T21:16:21Z")

</div>

Since upgrading to 8 I have no idea how to get the diagnostic console up?  
Also is there any compatibility issues between releases?

My setup is as follows:  
Local Server:

- Ignition - 8.0.2
- Java - 11.0.3+7-LTS

Remote Server:

- Ignition - 7.8.2
- Java - 1.8.0\_101

The command I am using:

> `system.util.retarget("RemoteProjectName", "RemoteProjectIP:8088")`

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [June 19, 2019, 9:18pm UTC](https://forum.inductiveautomation.com/t/system-util-retarget-error/24518/7 "2019-06-19T21:18:59Z")

</div>

Retargeting between 7.x and 8 isn’t possible.

---

<div class="post-metadata">

**Author:** ![neill](https://avatars.discourse-cdn.com/v4/letter/n/edb3f5/32.png) [@neill](https://forum.inductiveautomation.com/u/neill)\
**Post date:** [June 19, 2019, 9:28pm UTC](https://forum.inductiveautomation.com/t/system-util-retarget-error/24518/8 "2019-06-19T21:28:16Z")

</div>

Thanks for clearing that up.  
Will cease attempting to do so.
