# "Optimizing imports" error

**URL:** <https://forum.inductiveautomation.com/t/optimizing-imports-error/28865>\
**Category:** Ignition\
**Created:** [October 7, 2019, 7:14am UTC](https://forum.inductiveautomation.com/t/optimizing-imports-error/28865 "2019-10-07T07:14:13Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![deforder](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@deforder](https://forum.inductiveautomation.com/u/deforder)\
**Post date:** [October 7, 2019, 7:14am UTC](https://forum.inductiveautomation.com/t/optimizing-imports-error/28865/1 "2019-10-07T07:14:13Z")

</div>

Hello!

We recently upgraded to 8.0.5.  
And now we observe a strange import error.  
When we try to import tags from XML, we get the message “Optimizing imports”, which spins about a minute. After that, the import process fails.

It does not depend on the number of tags imported. The error also occurs for the folder that we just exported from the current project.

What could be the reason for this behavior?

Thank you in advance

---

<div class="post-metadata">

**Author:** ![tordvd](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tordvd/32/11525_2.png) [@tordvd](https://forum.inductiveautomation.com/u/tordvd)\
**Post date:** [October 25, 2019, 11:54am UTC](https://forum.inductiveautomation.com/t/optimizing-imports-error/28865/2 "2019-10-25T11:54:26Z")

</div>

I also see this. I have gotten the same error for different customers, as well as in my own environment.

Even when using notepad.exe for editing simple things like changes in tag path.

Moreover, the ignition server always goes into 100% cpu, and crashes, resulting in a full ignition reboot. This is true for both remote tags providers, as with local ones

Hope this gets solved soon. Difficult to work efficiently when we cant search replace the tag database

---

<div class="post-metadata">

**Author:** ![tordvd](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tordvd/32/11525_2.png) [@tordvd](https://forum.inductiveautomation.com/u/tordvd)\
**Post date:** [October 28, 2019, 2:42pm UTC](https://forum.inductiveautomation.com/t/optimizing-imports-error/28865/3 "2019-10-28T14:42:56Z")

</div>

There was no respond in this thread, so im trying to keep this alive:  
[http://forum.inductiveautomation.com/t/optimizing-imports-error/28865](http://forum.inductiveautomation.com/t/optimizing-imports-error/28865)

I am not sure how many is affected by this.  
“tag export” -\> “search/replace” -\> “tag import” is not working. We have to add all/change all tags manually in ignition 8.0.5rc1.

---

<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 28, 2019, 4:29pm UTC](https://forum.inductiveautomation.com/t/optimizing-imports-error/28865/4 "2019-10-28T16:29:11Z")

</div>

I moved this new post back to the original thread. I have a few questions about the export:

- Is the export JSON or XML?
- Is it an export that has a large number of tags?
- When importing, which collision policy are you using?

Also, if you still have the export that is exhibiting this behavior, can you upload it? Thanks.

---

<div class="post-metadata">

**Author:** ![tordvd](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tordvd/32/11525_2.png) [@tordvd](https://forum.inductiveautomation.com/u/tordvd)\
**Post date:** [October 28, 2019, 6:35pm UTC](https://forum.inductiveautomation.com/t/optimizing-imports-error/28865/5 "2019-10-28T18:35:59Z")

</div>

It is a JSON, and there are in this export it is currently around 30 tags.

I have the same problems with UDTs. Not sure if this specific export has that problem. I have tried both abort and overwrite, samme issue…

I suspect it might be a regional/language setting problem…

.[tags.json](https://us1.discourse-cdn.com/inductiveautomation/original/2X/f/fb745c5bd961b9ace97f7f268de3ad0826754ef5.json) (41.9 KB)  
[UDT.json](https://us1.discourse-cdn.com/inductiveautomation/original/2X/2/24b1fa06af4efe95e80f7407a644edf889e44ad3.json) (1.9 KB)

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![deforder](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@deforder](https://forum.inductiveautomation.com/u/deforder)\
**Post date:** [October 28, 2019, 10:16pm UTC](https://forum.inductiveautomation.com/t/optimizing-imports-error/28865/6 "2019-10-28T22:16:24Z")

</div>

I also want to add that the problem does not occur while importing tags into the root folder.  
So we are still out of the situation through import to the root and drag and drop.

---

<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 29, 2019, 8:59pm UTC](https://forum.inductiveautomation.com/t/optimizing-imports-error/28865/7 "2019-10-29T20:59:05Z")

</div>

I’m still having issues reproducing, which program were you using to make edits to the export? Also, are the exports you attached from before making edits, or after?

---

<div class="post-metadata">

**Author:** ![deforder](https://avatars.discourse-cdn.com/v4/letter/d/aeb1de/32.png) [@deforder](https://forum.inductiveautomation.com/u/deforder)\
**Post date:** [October 29, 2019, 9:15pm UTC](https://forum.inductiveautomation.com/t/optimizing-imports-error/28865/8 "2019-10-29T21:15:53Z")

</div>

The import problem also appears when I import the exported file into the non-root folder without editing

---

<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 30, 2019, 1:52am UTC](https://forum.inductiveautomation.com/t/optimizing-imports-error/28865/9 "2019-10-30T01:52:55Z")

</div>

Turns out this issue was introduced in 8.0.5-rc1, but fixed for the 8.0.5 stable release. I was testing with the stable release, which is why I wasn’t able to reproduce.

---

<div class="post-metadata">

**Author:** ![tordvd](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/tordvd/32/11525_2.png) [@tordvd](https://forum.inductiveautomation.com/u/tordvd)\
**Post date:** [November 1, 2019, 6:55am UTC](https://forum.inductiveautomation.com/t/optimizing-imports-error/28865/10 "2019-11-01T06:55:47Z")

</div>

Great that it has been fixed. Actually had to hold development for that customer for the time beeing.

Going to upgrade to stable now.

Thanks!

---

<div class="post-metadata">

**Author:** ![Tony\_DiBattista](https://avatars.discourse-cdn.com/v4/letter/t/c2a13f/32.png) [@Tony\_DiBattista](https://forum.inductiveautomation.com/u/Tony_DiBattista)\
**Post date:** [April 6, 2022, 4:35pm UTC](https://forum.inductiveautomation.com/t/optimizing-imports-error/28865/11 "2022-04-06T16:35:17Z")

</div>

I’m seeing a similar issue, where I created a large udt based on a control logix tag, then I substituted the first member’s path motor number with a parameter {MotorNumber} with the UDT editor, then created a tag for this udt and the first member works perfectly with the parameter substitution. But when I export the udt and search/replace the rest of the members path’s motor number with {MotorNumber} and then import, the updated members show bad data, so they don’t seem to like the import. If I opc browse the UDT member’s path, then edit the path, highlight the motor number and select the {} button and select the parameter {MotorNumber} it works perfectly, but I have alot of members and would prefer to do this text substitution with a search/replace in the exported file, then import.

UDT’s Opc item path after opc browse:  
nsu=http://www.rockwellautomation.com/OpcUa;s=Slurry#[Slurry]BRKR\_401051\_0003\_SC.Cfg\_AlmDriveFaultDelay

Path after using the {} button to sub in Parameter {MotorNumber}: nsu=http://www.rockwellautomation.com/OpcUa;s=Slurry#[Slurry]{MotorNumber}.Cfg\_AlmDriveFaultDelay (works perfectly)

Path of next member that I exported/imported and search/replaced BRKR\_401051\_0003\_SC with {MotorNumber}:  
nsu=http://www.rockwellautomation.com/OpcUa;s=Slurry#[Slurry]{MotorNumber}.Cfg\_AlmDriveFaultEnable (shows bad data, but will work if I do an opc browse, then select the {} key and the parameter {MotorNumber}

Same member after doing an opc browse, then substituting the actual motor number with the parameter button {} :  
nsu=http://www.rockwellautomation.com/OpcUa;s=Slurry#[Slurry]{MotorNumber}.Cfg\_AlmDriveFaultEnable (shows good data, text looks exactly the same, but works perfectly)

version 8.1.15  
windows server 2016  
export edited with the Visual Studio Editor ver 1.66.0
