I have a very strange behavior of an instance of a UDT.
I used this UDT at around 80 identical instances and had and still have no problem at all copy-ing the already preconfigured instance to create other instances with only a single parameter value difference.
Meanwhile I updated the UDT by adding an extra folder and some tags into it, implicitly all disabled for backward compatibility with already existing 78 instances.
I built a new instance with the additional tags enabled and OPC item path overrides properly configured.(in UDT I have all OPC item paths emplty)
All is working fine, views read values ok, no probmem
EXCEPT:
When I try to copy this instance to another place (I will have another identical 70+ instances of this same one only with the new OPC item paths and additional tags enabled)
My designer lock up for a few minutes, all tags disappear and a mini message popup with title "ExecutingTask" shows "Configuring running tasks" with progress that does not advance. this stays there for a couple of minutes. At first I got scared that I did something wrong and I goofed up that I lost the whole TAG provider since all my tags and provier dissapeard from designer so I quickly grabbed a backup from the redundant just in case(wasnt necessary). Meanwhile Designer shows Connection lost and Connection restored simultaneously.
When this "Configuring running tasks" popupMessage disappears, I still can not do anything in the designer, no response for any clicks and Tag Browser shows completly emplty, without even showing the last tag provider.
After another couple of second (up to 20), all appears back and working fine.
The copy did it's job and the new instance is created and working fine.
Since I can recreate this phenomena with no loss of tags, I began to investigate.
-First try: None of the other earlyer version of instances (call them version1) of this same UDT has this behavior.
-For this new instance (call it version2), while designer gets locked up when copying the problematic instance, I noticed that the whole tag provider locks up, and my designer sessions are loading, but not seeing anything from that tag provider, not even folders.
-Whikle locked up, I don't notice any warning on the status pages of the gateway.
-Status>Systems>Tags show all RealTime providers Running and HistoricalProviders Good
-EXCEPT when I try to click on the Browse button for the TAG provider. where it opens up, but only shows Loading and dotts filling up and cycling. I can still browse the other tag providers fine.
-I went to the log to see somenthing, and here I noticed quite a few, but the "reference" "Error initiating setter expression" looks to be related to this:
(I also see some "No historical tag information could be found for any of the specified paths" but it's probably nothing to do with my issue but strange as these tags are overwritten to disabled and are from an instance of version1 that can be copyed without issues. and one from this new version2 instance (probably need to investigate separately and they are not related to this topics issue) )
-I set the log level of com.inductiveautomation.ignition.gateway.tags.reference to DEBUG to try to capture more details
I'll try to attach screen captures and if needed, I can post the whole text of that log
To understand the log screen capture: I tryed to copy UDT instance named "Cheson-1" to test folder "[IOcanal]Exemple/t1/" from [IOcanal]C/SM/SNM/S_SM_SNM_SPAU_SNM-2/CHESON/cheson-1
-I tryed to revert all changes in this version2 instance to look like version1 but same issue.
-I tryed to CopyJSON to a notepad and back from there but same idssue.
-I have the same issue no matter if I try to copy only the instance itself or the folder containing it . I narrowed down the problem only to this instance as for this case I usually copy a parent folder that contains more folders with UDT instances but only this, and only for version2 has the issue.
(Just to mention: I had in the past issues with folders that showed as an empty line and was unable to delete, and showed up duplicated with content when creating another one with the same name. got rid of it only when cut and paste back it's parent folder. Since than I learned to copy parent folders when possible (prepared and still have the screensoths and text to post a qyestion for that, but never posted as I solved it.))
This issue is locking up the whole tag provider and I will have to do it for at least 80 times in the upcoming weaks. (ofchourse I have a script for doing all these replications together with other folders and instances of other UDTS's and the script served me well for version1, but I do not even tryed it yet for version2 of the same UDT since manual copy has issues.
What did I do wrong in this instance so I can be careful in the future? I can post it's JSON if helpful.
Version 8.1.45