Jump to content

Program Import / Export Failing


BigMojo

Recommended Posts

Posted

I was attempting to compress my programs folder to see how many I had available for my next roll-out and saw some very strange (or loose nut behind the keyboard) behavior.  Specifically:

  • Backup ISY
  • Export All Programs
  • Export All Programs to Clipboard
     
  • Delete All Programs
  • Save Changes - 430 Programs Deleted
  • Reboot
     
  • Import All Programs from Clipboard
  • Save Changes
  • Screenshot “Import from Clipboard Result” - INCORRECT – former directory structure
  • Delete All Programs
  • Save Changes – 128 Programs Deleted, expected 430
     
  • Import Saved Programs
  • Save Changes
  • Screenshot “Import Result” - INCORRECT – former directory structure
  • Delete All Programs
  • Save Changes – 128 Programs Deleted
  • Reboot
     
  • Restore ISY
  • Screenshot “Restore Result” - CORRECT – current directory structure
  • Delete All YELLOW  programs
  • Save Changes - 24 Programs Deleted
  • Reboot
     
  • Export All Programs (Includes 18 "Red" programs with run references to deleted "Yellows"
  • Delete All Programs
  • Save Changes - 407 Programs Deleted, expected 430-24=406
  • Reboot
     
  • Import Programs
  • Save Changes
  • Screenshot “Import Result No Yellows” - INCORRECT – former directory structure
  • Delete All Programs
  • Save Changes –  111 Programs Deleted
  • Reboot
     
  • Restore ISY
  • Delete All "Yellow" programs
  • Save Changes –   24 Programs Deleted
  • Reboot
  • Delete subsequent "Red" programs
  • Save Changes - 19 Programs Deleted
  • Reboot
  • Delete subsequent "Red" programs
  • Save Changes - 4 Programs Deleted
  • Reboot
     
  • Export Programs
  • Delete All Programs
  • Save Changes - 386 Programs Deleted, expected 430-24-19=387
  • Reboot
     
  • Import Programs
  • Save Changes
  • Screenshot “Import Result No Yellows or Reds” - INCORRECT – former directory structure
  • Delete All Programs
  • Save Changes –  111 Programs Deleted
  • Reboot

Can anyone confirm this behavior?  Possible factors could be:

  • Inadvertent use of Reserved Keywords in File/Folder names
  • Duplicate File/Folder names located in different parent folders (Different Operating Modes & Archives)
  • Existence of "Yellow" or "Red" programs. I've been messing with the Z-Wave side and my SMOKES programs currently point at non-existent devices
  • OLD (7 years) SD card

I know this looks like the typical user error resulting from restoring the wrong save file but I've repeatedly verified that I'm pointing at the right source and destination files.  Not sure if this is a known issue, only thing I found was the discussion about programs being re-enabled after an import.

 

Thanks !

Import From Clipboard Result.PNG

Import Result.PNG

Restore Result.PNG

Import Result No Yellows or Reds.PNG

Posted
2 hours ago, Michel Kohanim said:

@BigMojo

Why are you restoring from the clipboard? You should restore from the export file.

 

With kind regards,

Michel

Hey @Michel !

After the odd result from importing the file, I also tried the clipboard import(s) to see if the result changed, it didn’t.

I'm more than happy to provide or try anything you’d like to see, Topo files, backups, logs, remote access, etc.

 

On a side note, THANK YOU to you and your team for the evolutionary corporate vision and execution you’ve shown.  I know it’s been a hard road but UDI is kicking *** and we all owe you a great deal of gratitude for the astounding results you’ve accomplished in the 2 years since we last spoke. 

All my best,

Tom

Posted
On 1/20/2019 at 8:34 PM, BigMojo said:

Can anyone confirm this behavior?

I wasn't willing to risk my entire set of programs by deleting everything under "My Programs", so I created a folder underneath "My Programs" called "Z" and then created three folders beneath it and put three (empty) programs within those folders.  Then I saved, exported the new folder, deleted the new folder, saved, imported the recently created export file and saved programs.  What I ended up with was not what I started with.  The folder structure was correct, and two of the programs were in the correct folder, but the third program appeared at the root level (i.e. under "My Programs" not under "My Programs->Z").

I've looked at the export file (it's simple XML) and don't see anything in it that would cause the one program to appear at the root level, but not the other two.  It has the same parent as another program, and both programs appear earlier in the file than the actual parent folder, so I would expect that either both of them would appear in the wrong folder or both of them would appear in the correct folder.

So I got even more detailed and created a more complicated folder structure (11 folders and 11 programs), and instead of totally empty programs, I added "last run time" to four of the programs, with one of the programs having every other program's run time within its IF (including its own last run time).  Then I saved, exported, deleted, saved, imported and saved.  This time everything imported 100% correctly.  Including the program with every other program's run time as a reference.

So I can't tell you why your process didn't work the way you expected, but I can tell you that I was able to duplicate (on a small scale) an import error, but wasn't able to duplicate (on a slightly larger scale) an import error.

I am curious, however, what you were trying to accomplish with your process?  Based on my experiment, exporting, deleting and importing shouldn't give you a flat program structure.  It seems like it is supposed to give the same structure you started with (assuming no error).

If you simply want to count the number of programs you have, open the export file with Chrome, Internet Explorer or Edge and do a find (Ctrl F).  First search for "<id>".  You should see something like "1 of 4" telling you which occurrence is displayed.  That will tell you how many programs + folders you have.  Then do a search for "<folder />".  That will tell you how many folders you have.  Then simply subtract to get the number of programs.

  • Like 1
Posted

Where are finding the import/export menu?

 

I wrote up a thread about a year ago on using this. I was looking for it to help somebody in another thread question last week and spent more than a half an hour looking.

 

I couldn't find it in the admin console v5.0.14. I just figured UDI must have taken it out again.

 

Make sure you always Save after making any program or folder modifications.

 

Sent from my SM-G930W8 using Tapatalk

 

 

 

 

  • Like 1
Posted
18 hours ago, larryllix said:

Where are finding the import/export menu?

If you right-click on a folder, you have the option to either import to or export from that folder.  So I've been right-clicking on a folder below "My Programs" to export and then right-clicking on the "My Programs" folder to import.

  • Thanks 1
Posted (edited)
9 hours ago, Michel Kohanim said:

@kclenden, thanks SO very much for trying to reproduce. I appreciate it very much. We have not been able to reproduce. Are you certain that you saved the programs before export?

With kind regards,
Michel

@Michel Kohanim,

At my age I can rarely be 100% sure of anything.  But I'm 99.9% sure I saved before the export.  I've attached the ISY file that was created from the export, and consistently imports incorrectly, if that would help.  You could try importing it to see if you get the same results as me.  Or perhaps look at it and tell me why my import results are exactly as they should be.

Z.v5.0.14__Mon 2019.01.21 08.50.47 PM.isy

Edit: I just tried importing the file into a folder besides "My Programs".  I get the same results.  The "Z" folder is created, and everything appears below it except for program "1b" which appears at the same level as the "Z" folder when it should appear within "Z->1".

Edited by kclenden
Add additional import info
Guest
This topic is now closed to further replies.

  • Recently Browsing

    • No registered users viewing this page.
  • Forum Statistics

    • Total Topics
      37k
    • Total Posts
      371.4k
×
×
  • Create New...