05-28-2009 03:56 AM - edited 03-14-2019 04:08 AM
Hi,
I use XML files in UCCX applications to hold things such as system state variables etc.
I normally create a directory to store the XML files under C:\Program Files\wfavvid.
However, when upgrading, any non-standard sub-directory of wfavvid seems to be deleted.
Can someone let me know where I can store these files such that they will not be deleted when an upgrade is applied?
Solved! Go to Solution.
05-28-2009 09:39 AM
It would be DOC[filename.extension]
If you have folders within the repo you would add them as well:
DOC[folder\filename.extension].
You should stop looking at the file system. The repositories exist in SQL and the contents are copied down to the disk for the MIVR subsystem to use at run time. Manage them through /appadmin only. You're going to loose access to the disk in 8.0 anyways when it converts to the sealed appliance model UCM has been on since 5.0.
05-28-2009 06:53 AM
Upload them to the document repository via appadmin.
HTH,
Chris
05-28-2009 07:49 AM
Thanks Chris,
I have quite managed to get my head around repositories as I did my training on 3.0 and only occasionally write scripts.
When I want to access a document in the repository what path do I specify in the Create File Document step?
Is it the path from the wfavvid directory? - e.g. "Documents\user\en"
05-28-2009 09:39 AM
It would be DOC[filename.extension]
If you have folders within the repo you would add them as well:
DOC[folder\filename.extension].
You should stop looking at the file system. The repositories exist in SQL and the contents are copied down to the disk for the MIVR subsystem to use at run time. Manage them through /appadmin only. You're going to loose access to the disk in 8.0 anyways when it converts to the sealed appliance model UCM has been on since 5.0.
05-28-2009 11:01 AM
Thanks for both replies - much clearer now!
Will try to break my bad coding habits before 8.0 arrives.
05-29-2009 02:14 AM
Sorry I am still struggling with this.
I want my script to read a file called SystemState.xml which I have uploaded to the document repository to the en_GB\Housing Repairs Helpdesk directory.
In my script I have a Create File Document step where I specify the Filename value as "DOC[en_GB\Housing Repairs Helpdesk\SystemState.xml]"
However when I place a call to the script it fails and the following data is logged in the trace file.
EXCEPTION: nested stack trace is: 35931: May 29 10:36:47.339 BST %MIVR-APP_MGR-6-EXCEPTION: java.io.FileNotFoundException: DOC[en_GB\Housing Repairs Helpdesk\SystemState.xml] (The system cannot find the path specified)
I guess the path is incorrect but cannot see what is wrong - any help most welcome.
05-29-2009 05:19 AM
Think I have cracked it.
The XML file is uploaded to the document repository to the en_GB\HousingRepairsHelpdesk directory and I use "DOC[HousingRepairsHelpdesk\SystemState.xml]" in the Create File Document step.
The system does not seem to like spaces in directory names.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide