Creating file

Hi,
This is the program i have,
import java.io.*;
import java.util.*;
import java.util.Properties;
import java.util.Hashtable;
public class Test
public static void main(String[] args)
Runtime r = Runtime.getRuntime();
Process p = null;
DataInputStream s1 = null;
StringBuffer buf = new StringBuffer();
try
p = r.exec("java -jar xlrd.jar -csv myexcel.xls");
catch(Exception e){}
The problem is,
java -jar xlrd.jar -csv myexcel.xls returns the value on the console and i want that ouput to go to file or string buffer
when i say java -jar xlrd.jar -csv myexcel.xls >> file_name.txt on the command prompt ,file has been created. But when i use the same command to the following statement " p = r.exec("java -jar xlrd.jar -csv myexcel.xls >> file_name.txt") " there was no file created. I could not track the problem.
Thanks in Advance.
Regards,
Raja

Not really sure, but I don't think you can redirect the output of a process. However, you can create a pipe to do it.
p = r.exec("java -jar xlrd.jar -csv myexcel.xls");
in = new PipedInputStream((PipedOutputStream)p.getOutputStream());
int c = 0;
out = new FileOutputStream(new File("out.txt"));
while ((c = in.read()) != -1) {
    out.write(c);
}

Similar Messages

  • How can I create files in unicode format without "byte order mark"?

    Hello together,
    I have to export files in UTF-8 format and have to send them to another partner system which works with linux as operating system.
    I have tried the different possibities to create files with ABAP. But nothing works 100% how I want.
    Some examples:
    1.)
    OPEN DATASET [filename] FOR OUTPUT IN TEXT MODE ENCODING UTF-8.
    If I create a file in this way and download it from application server to local system the result for file format in a unicode text edior like NotePad is "ANSI AS UTF-8". This means I have no BYTE ORDER MARK inside.
    But it is also possible that the file format is only ANSI if the file contains no "special characters", isn't it?
    In my test cases I create 3 files. 2 of them has format "ANSI AS UTF-8", and one only "ANSII".
    After transfer to Linux I get as result 2 times UTF8 and one time ASCII as file format.
    2.)
    OPEN DATASET [filename] FOR OUTPUT IN TEXT MODE ENCODING UTF-8 WITH BYTE ORDER MARK.
    With this syntax the result in local editor looks like ok. I get as format really "UTF-8".
    But I get problems with the system which receives the files.
    All files has the file format UTF-8 on Linux but the interface / script can not read the file with BYTE ORDER MARK.
    This is a very big problem for me.
    Do anybody of you know if it possible to force creation in UTF-8 without a BYTE ORDER MARK?
    This means more or less the first example but all files should have UTF-8 format!
    Thanks in advance
    Christian

    This means it is not possible to create a pure unicode file without the byte order mark?
    You wouldn't happen to know how a file with byte order mark should read on a Linux system?
    Or if this possible or not?
    Regards
    Christian

  • Sharepoint 2010 - SPUCWorkerProcess - Could not create file

    I have some type of permission issue that is preventing my User Code Host service from running (it starts then stops).    I am seeing the following in my ULS:
    03/01/2011 09:59:13.42 SPUCWorkerProcess.exe (0x0F78)
    0x1254 SharePoint Foundation
    Unified Logging Service f05l
    High Could not create file C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS\\IH-PORTAL002.ulstest, HRESULT=0x80070005
    03/01/2011 09:59:13.42 SPUCWorkerProcess.exe (0x0F78)
    0x1254 SharePoint Foundation
    Unified Logging Service f05n
    High No permission to write on C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS\
    Followed by:
    03/01/2011 09:59:16.64 SPUCHostService.exe (0x13A8)
    0x0D00 SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 09:59:16.77 SPUCHostService.exe (0x13A8)
    0x0D00 SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    03/01/2011 09:59:16.77 SPUCHostService.exe (0x13A8)
    0x0D00 SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 09:59:16.77 SPUCHostService.exe (0x13A8)
    0x0D00 SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    03/01/2011 09:59:16.77 SPUCHostService.exe (0x13A8)
    0x0D00 SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 09:59:16.78 SPUCHostService.exe (0x13A8)
    0x0D00 SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    I have verified that the service account for the SPUCHostService is a domain account belonging to the the WSS_WPG local group (I also tried adding to the WSS_ADMIN_WPG group with no more success).  The WSS_WPG
    group has read and write access to the log folder mentioned above.
    I started troubleshooting this when I tried to activate and use the CRM 2011 list control.  And found that other sandboxed solutions also fail which lead me to look at the SharePoint 2010 User Code Host, which will not keep running.
    I have a Sharepoint 2010 enterprise farm with one WFE and one seperate database server all on a single domain.   The WFE is running on Windows 2008 sp2 (64 bit).   
    I look forward to your advice / suggestions.
    PS.  I have been working on this for a couple days, and have read many issues that seem to be related, but I have already checked that the Service is now set to automatic, that the service account is a member of the WSS_WPG group and should therefore
    have rights to the Logs folder.  It is also a member of the Local Administrators and the Performance Log Users group.
    Fred Zilz

    After IISReset I don't see the Logs directory issue but I still have the following:
    03/01/2011 14:00:53.35 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 14:00:53.46 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    03/01/2011 14:00:53.46 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 14:00:53.46 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    03/01/2011 14:00:53.46 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 14:00:53.47 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    03/01/2011 14:00:53.47 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 14:00:53.47 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    03/01/2011 14:00:53.47 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 14:00:53.47 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    Sandboxed Code Service ei0p
    Monitorable - Unhandled exception System.ComponentModel.Win32Exception: Unknown error (0xc0000bbc)     at Microsoft.SharePoint.Win32.SPPdh.CheckReturnValue(PDH_STATUS status, Boolean throwOnError)  
      at Microsoft.SharePoint.Utilities.SPPerformanceCounter.NextValue(Int32 retry, Int32 retryInterval)     at Microsoft.SharePoint.UserCode.SPUserCodePerformanceCounterHelper..ctor(String processName, Int32 processInstanceId) thrown while reading
    perf counters for process "SPUCWorkerProcess".
    03/01/2011 14:00:53.47 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    General 84yj
    Medium Performance Counter OS (pdh) call failed with error code PDH_INVALID_HANDLE.
    03/01/2011 14:00:53.49 SPUCHostService.exe (0x15E0)
    0x13DC SharePoint Foundation
    Sandboxed Code Service 0000
    Unexpected - Process perf counters are disabled. Sandboxed code monitoring cannot continue.
    03/01/2011 14:00:53.52 SPUCHostService.exe (0x15E0)
    0x14AC SharePoint Foundation
    General 84yi
    Unexpected An SPPerformanceCounter was not properly disposed.  This could cause excessive memory use.
    03/01/2011 14:00:53.52 SPUCHostService.exe (0x15E0)
    0x14AC SharePoint Foundation
    General 84yi
    Unexpected An SPPerformanceCounter was not properly disposed.  This could cause excessive memory use.
    Any ideas on what is going on with the Performance Counter?
    Fred Zilz

  • How to create file on application server?

    how to create file on application server?

    Hi,
    The following program illustrates the creation of ifle in app server and reading the file from appli server:
    DATA: ITAB LIKE vbakOCCURS 0 WITH HEADER LINE.
    PARAMETERS: P_VBELN LIKE VBAP-VBELN.
    START-OF-SELECTION.
      SELECT *
        FROM VBAP
        INTO TABLE ITAB
    WHERE VBELN = P_VBELN
        PERFORM WRITE_DATA.
        PERFORM READ_DATA.
    *&      Form  WRITE_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM WRITE_DATA.
    OPEN DATASET 'VBAP_DATA' FOR OUTPUT IN TEXT MODE.
    LOOP AT ITAB.
    TRANSFER ITAB TO 'VBAP_DATA'.
    ENDLOOP.
    CLOSE DATASET 'VBAP_DATA'.
    CLEAR: ITAB, ITAB[].
    ENDFORM.                    " WRITE_DATA
    *&      Form  READ_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM READ_DATA.
    OPEN DATASET 'VBAP_DATA' FOR INPUT IN TEXT MODE.
    DO.
    READ DATASET 'VBAP_DATA' INTO ITAB.
    IF SY-SUBRC <> 0.
    EXIT.
    ENDIF.
    APPEND ITAB.
    ENDDO.
    CLOSE DATASET 'VBAP_DATA'.
    LOOP AT ITAB.
    WRITE:/ ITAB-VBELN,
            ITAB-POSNR.
    ENDLOOP.
    ENDFORM.                    " READ_DATA
    If it is helpful rewards points
    Regards
    Pratap.M

  • How to create files with read/write privileges for everyone?

    I have two iMacs 7,1 (one with Snow Leopard and the other with Mountain Lion) in a local area wireless network.
    I have shared the "documents" folder in the Snow Leopard iMac in order to have files available to the other iMac. The folder has read/write privileges for everyone.
    When I create a new file in the shared "Documents" folder (for example a new Open office document, or a Keynote presentation) this file is by default "read/write" for the Administrator but only "read" for all the other users, so when I try to open it from the other iMac, I am informed that the file is "read only".
    I can obviously change the privileges of the file in the information window, but I have to do on a file per file basis and this takes too long.
    Is it possible to change settings in order to create files which are always "read/write" for everyone?
    And, secondly, since I have several existing files whose privileges I should manually change one by one, is it possible to make global changes of their privileges?
    Thanks in advance
    Best regards

    couple of different changes - 1st, if you want to share folders, doing your whole documents folder is not the best way.  Since both your computers can handle AidDrop, that's what I would recommend - http://osxdaily.com/2011/11/14/how-to-use-airdrop-in-mac-os-x/ - as it create an instant Ad-Hoc network between the two computers and then let's it done. 
    A second possibility that may not be what you're looking for, is to use google drive or some similay cloud sharing app to sync the documents back and forth.  both of these solutions will transfer the files well, but the airdrop may be simplest

  • Why do I get "Cannot create file" message in my download manager when I attempt to install Firefox?

    I'm running Mac OS 10.4.11 on a 1.6 GHz PowerPC G5 Mac. I uninstalled Firefox 3.6 from my according to directions on the Mozilla website. And I deleted my Firefox profile folder contained in the Home> Library> Application Support folder. Every time I attempt a clean install of Firefox 3.6.13.dmg, I get the following message: "Cannot create file."

    This issue can be caused by corrupted cookies.
    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    See also:
    * http://kb.mozillazine.org/Cookies#Removing_cookies

  • LV 8.2.1 reinstallation error 1301: Cannot create file

    Hi,
    I was forced to uninstall LV 8.2.1 and reinstall it. When I'm reinstalling LV 8.2.1 I get an error message
    Error 1301. Cannot create file ". A directory with the same name already exists. Cancel the install and try installing to a different location.
    (Abort, Retry, Ignore).
    This error is somehow related to the fact that after uninstalling LV 8.2.1 LabVIEW 8.2 installation directory still remains with some stuff in the user.lib and other folders. I'm always using OpenG packages and I didn't uninstall them so that may be the reason. I also used DataAct class browser with LabVIEW.
    The problem is that I cannot uninstall my OpenG packages before I can get my LabVIEW installed again as VI Package Manager reposinsible for installing OpenG packages doesn't work without installed version of LabVIEW. And I cannot get my LabVIEW correctly installed because of this error. I can press ignore and the installation procedes but I don't know whet it didn't do because of the error.
    I guess this error is a bug in LV 8.2.1 isntaller so would some of NI application engineers help, please.
    For now I press Ignore.
    Tomi Maila
    Tomi Maila

    You will get this error if the installer is trying to install a file that has the same name as a folder at that location. For example lets say the installer has a file called "sample" that should go in LabVIEW\examples folder. Now lets say there was a folder called "LabVIEW\examples\sample". Windows wont let you copy that "sample" file in the same location that contains a "sample" folder. The failure is not an error in the installer.
    The problem with the 8.2.1 installer is that it is not telling you what file this failure occurred on. It is trying to, but the string is not formatted correctly and it just says "cannot create file ." The actual file name should be where the "." is.
    You can usually tell what file it failed on from the text above the progress bar where it says what file is being copied. The best way to see what failed was to get an installation log file.
    Naren Salem
    LabVIEW R&D

  • Nomad jukebox zen xtra - cannot create file w message when trying totransfer fi

    My 30G nomad jukebox zen xtra was working great until recently. Now when I power my player up after a day of no use, it takes 0-5 minutes to rebuild the library. When I begin to transfer files using Media source after a few transfers I get the "unable to create file" message and can no longer transfer. I have tried disk clean up and re-booting to no avail. I tried installing the new firmware and this worked for about 80 songs and then I began getting the same problems. I have completely cleaned my PC of adware and spyware and this has no effect. I love my player but am becoming a little frustrated. Would anyone have any ideas? This all started when I turned on my player one day and all of the music was gone. I re-transfereed everything back and later noticed that I had two of everything. I deleted all of the duplicates and from that point on it began to take 5 minutes to rebuild the library but I could still transfer files with no problems. One last thing, when I run disk cleanup in rescue mode, once it gets to 99% done it stalls there for about 0-5 minutes before going back to the rescue mode menu.
    scott

    i experienced the same problem. until 2 weks ago it worked fine. but a visited the support site and found out that all the software was new. so i downloaded the new versions. even the new firmware with the e at the end. i was at the edge to smash my monitor when i found out that after the firmware update the sound was hearing so quiet. after rebuil os and searching 2 hour on the net for the previous firmware release, prior to E release, i solve the sound problem.
    but another appeard. cannot copy files on the player. if i choose to delete them, they disappear. i turn off the zen nx, turn back on and the files were still there. practically all the copy/delete/new folder/paste function were blocked. and the same problem on WIN XP and win 2000. all this because i installed the new versions for nomad explorer, nomad mediacenter, nomad plugin for media center.
    solution: uninstalled all the creative software. put the original cd in the dri've. installed all the original software. it was running perfect. so, i could operate again in the data files on the player.
    so i thought it was the driver problem since the media library i could access just fine. so i kept the original driver but installed all the new software (mediasource, nomad explorer, nomad zen plugin for mediasource).
    guess what? the accesing proble appeard again. i think that the better solution is to stick to the original software.
    and one last find. after the E firmware adveture, i experince what other are and was praing not to happen to me. the battery is lasting much much short period. and the green light if you look carefully is fluctuating in intensity. this was not happening until i burn the new E firmware. .0.02e. now after the rebuild os and writng a firmware it displays .0.02 without the E. the sound is like before. 24 damages your ears but the battery problem stills persit. it driving me crazy.

  • ACR Raw images wont copy to Jpeg or Tiff; as it fails with "Cannot Create File"

    Requesting immediate help if anyone available currently
    I've been using Photoshop CS6 for several years, never a problem at all. As soon as I bought Creative Cloud, I see many issues that cannot be resolved or are recurring.
    Again today as I go to copy files (images) from Adobe Camera Raw, to say a Tiff or a Jpeg, it appears to begin to copy as normal, then suddenly a box appears with all my copying
    file name/numbers, and it begins to eliminate one by one "Cannot Create File", failing the entire process to copy. I have never seen this until I began using Creative Cloud about a
    month ago.
    Can anyone help this Saturday evening as i am trying to complete a large project of images for others who expect them soon.?
    Thank you and I look forward to any advice soon,
    Mark Seibold, Artist-Astronomer, Portland Oregon

    Hi Rick
    Thanks for clarifying that. Yes, that term was my mistake, as I meant to write 'Save As"
    Another forum respondent just replied also, and he states as so many others do, that they do not use
    the Adobe Camera Raw app formerly with CS6, as they instead use Lightroom, so he apologized that he
    was not familiar with ACR but that I might have an old CS6 plug-in running that may not be completely
    compatible with the new Creative Cloud. I am not sure if this is the problem.
    What I would find as not really likely, is that the Creative Cloud engineers would go through all the trouble
    to redesign from the old CS6, then even assist us over the phone to help install it, but in oversight,
    leave us without a proper update to properly run Adobe Camera Raw. I also have never really understood the advantage of Lightroom. I'm sure that many must enjoy its efficiency, as I hear wedding photographers like it for huge batch processing of adjusting many images in synchronicity all at once. I would say that I do the same with ACR accessing it through Bridge, and I like ACR's quick and simple access for simple image adjustments and then say a small batch all synchronized, then finally to "Save As" for all selected to a final output as Tiff or Jpeg.
    As an astronomer that has just started learning to use Registax for night sky images, we also like the ACR adjustments and then to "Save As" eg. all Jpeg or all Tiff, to then photo-stitch large landscape and night sky panoramas with Microsoft ICE photo-stitching.
    Sorry for the long description here, but I hope to relate the total idea of what I am doing for the past years. I'll even attach an example >
    Thanks for your possible solution to my problem in "Saving As" in ACR,
    Mark

  • Recently, iPhoto will no longer allow my to export photos onto my folders on my desktop. It just says that it is unable to create file. Not sure why this is happening?

    iPhoto is no longer allowing me to export & resize photos into a file on my desktop. It just states that it is Unable to create file on desktop. I'm not sure what this means on how to correct this issue. Any support would be greatly appreciated!

    Then do the following:
    Fix #1
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot.
    If Fix #1 fails to help continue with:
    Fix #2
    Using iPhoto Library Manager  to Rebuild Your iPhoto Library
    Download IPhoto Library Manager 4 for OS XC 10.6.8 and iPhoto  8.1.2 and later  or iPhoto Library Manager 3 (for OS X 10.5.8 and iPhoto 7.1.5 and earlier) and launch.
    Click on the Add Library button, navigate to your Home/Pictures folder and select your iPhoto Library folder.
    Now that the library is listed in the left hand pane of iPLM, click on your library and go to the File ➙ Rebuild Library menu (iPLM 3) or Library ➙ Rebuild Library menu (iPLM 4) option.
    In the next  window name the new library and select the location you want it to be placed.
    Click on the Create button.
    Note: This creates a new library based on the LIbraryData.xml file in the library and will recover Events, Albums, keywords, titles and comments but not books, calendars or slideshows. The original library will be left untouched for further attempts at fixing the problem or in case the rebuilt library is not satisfactory.

  • UCCX 8 - Dramatic change in the Create File Document step that is used by the Create XML Document step in order to read an XML file

    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    For the last 5 years (and in IPCC3.x/4.x,UCCX/5.x/7.x) I've used the same basic subflow to read a XML document that contains holiday dates where the queue should be closed.  I've re-used this script on 20+ client installs and it's always worked.  The structure of the script allows you to pass the path and filename of the XML document as parameters to the subflow. (The document is in the repository)
    I loaded this script in UCCX 8.0.2 recently and it crashed with a Java.IO error.  It looked like it was trying to read the file system directly and not the repository. (In the Linux appliance model this kind of makes sense but why is the step trying to read the file system directly?)
    So I open a TAC case (SR# 615243125) and TAC tells me that the method of using the Create File Document step is not supported anymore and that I should specify the filename directly in the Create XML Document step
    The problem that I see (aside from having to edit all my scripts that use XML files) is that the Create XML Document step is looking for the input to be a type DOCUMENT and not a type STRING.  This seems to imply that I have to hardcode the document in each script that I deploy for a customer.  When it was a string it was easy to construct the full file path from parameters and pass to the subflow.
    Questions to the group
    #1 Am I missing something here?
    #2  Do you assume that you'll be able to load a script that worked fine in UCCX 7 into UCCX 8 and that it should completely function when you're doing everything according to the step reference documentation.
    #3 Cisco didn’t document this in any way that I can find.
    #4 How can you use the Create XML Document step in a fashion that would let you construct the path of the file and the filename previously in the script so you could pass it to a subflow ?  It would seem this functionality has been killed in UCCX 8
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    (Background)
    Create File Document Step
    The input filename is a STRING, could be an explicit path and filename in the repository or a variable that represents that path and string
    The output of this step is a DOCUMENT to be used in the Create XML Document step
    The string FILE_FullPathHolidayFiles references  en_us\folderName\documentName.xml
    The document was properly uploaded into the repository only, NOT trying to directly read c:\foo\blah…
    /* Style Definitions */
    table.MsoNormalTable
    {mso-style-name:"Table Normal";
    mso-tstyle-rowband-size:0;
    mso-tstyle-colband-size:0;
    mso-style-noshow:yes;
    mso-style-priority:99;
    mso-style-qformat:yes;
    mso-style-parent:"";
    mso-padding-alt:0in 5.4pt 0in 5.4pt;
    mso-para-margin:0in;
    mso-para-margin-bottom:.0001pt;
    mso-pagination:widow-orphan;
    font-size:11.0pt;
    font-family:"Calibri","sans-serif";
    mso-ascii-font-family:Calibri;
    mso-ascii-theme-font:minor-latin;
    mso-fareast-font-family:"Times New Roman";
    mso-fareast-theme-font:minor-fareast;
    mso-hansi-font-family:Calibri;
    mso-hansi-theme-font:minor-latin;
    mso-bidi-font-family:"Times New Roman";
    mso-bidi-theme-font:minor-bidi;}
    The create XML document input can only be a type DOCUMENT

    #1 Am I missing something here?
    You are mixing two different issues together here.
    The Create File Document step is indeed not needed or supported for creating an XML document. That is why there is a unique step; to trigger XML parsing within the MIVR subsystem.
    Accessing the file system is restricted to a single folder within the VOS model (i.e. 8.0+). This folder is not backed up, replicated, or cleaned up automatically. It was intended to give developers some FS access as a temporary swap location only.
    #2  Do you assume that you'll be able to load a script that
    worked fine in UCCX 7 into UCCX 8 and that it should completely
    function when you're doing everything according to the step reference
    documentation.
    Assume nothing; read the documentation and attend one of the dozens of partner training sessions that CCBU put on advising of the upcoming changes.
    #3 Cisco didn’t document this in any way that I can find.
    You're right, I guess, on the Create File vs. XML Document step. AFAIK Cisco never wrote a notice into the Step Reference Guide explicitly stating that you cannot use the Create File Document although the documentation seemed pretty clear to me without it. File system restrictions are documented in the 8.0 release notes.
    Scripting and Development Series: Volume 2, Editor Step ReferenceUse the Create XML Document step to create a logical document that maps a document to another document variable (where the document has already been pre-parsed as an XML document and is ready to be accessed by the Get XML Document Data step).Use this step before the Get XML Document Data step to obtain data from a document formatted using the Extensible Markup Language (XML).
    #4 How can you use the Create XML Document step in a fashion that would
    let you construct the path of the file and the filename previously in
    the script so you could pass it to a subflow ?  It would seem this functionality has been killed in UCCX 8
    No it hasn't; just concatinate a string to build the Source Document parameter the step needs. Example:  "DOC[" + myFilePath + "]"

  • Problem in creating file on local machine

    Hello everbody...
    i m using forms and reports 6i
    i m creating file out_file := Text_IO.Fopen(:filepath || '.csv', 'a'); using this command in before_report trigger. And closing file in after_report trigger.
    here filepath is = \\IP address of local machine\d$\file name
    now problem is that if i m giving IP address of local machine then its giving error ORA-39856.
    And if i m giving IP address of server machine then it is going to create file on server machine from local machine.
    Why its not creating file on client machine?
    i think there r problems related to rights
    can anyone has solution then please tell me

    yes in report there is report output and with that it also creating file in coding by
    out_file := Text_IO.Fopen(:filepath || '.csv', 'w');
    this open stmt is written in before report trigger
    Below lines r written for each row thats fetch by report main query.
    str := rpad(:apt_bil_no,8,' ') || ',' || lpad(:apt_bil_dt,10,' ') || ',"' ||
                   rpad(:supl_name,30,' ') || '",' || rpad(:supl_tin_no,11,' ') || ',' ||
                   rpad(:aptvat_hsn_no,10,' ') || ',' ||
                   lpad(ltrim(to_char((apt_amt2 - apt_vat_amt2),'999999990.00')),12,' ') || ',' ||
                   lpad(apt_vat_amt2,12,' ') || ',' ||
                   lpad(ltrim(to_char(apt_amt2,'999999990.00')),12,' ');
    Text_IO.Put(out_file, str);
    Text_IO.New_Line(out_file);
    file is closing in after report trigger.
    text_io.fclose(out_file);
    now i wants to create this file on local machine.
    yes using report server and its started window service.
    can u have any idea?

  • Photoshop CC won't open or create files in Windows 8.1 Pro

    When I open up Photoshop CC 2014, the program won't open or create files... it just sits there. No error message of any sort. This happens when opening from within the program and from opening through windows. I installed CC as soon as I installed Windows on this computer.
    Here's other pertinent information:
    Operating System
      Windows 8.1 Pro 64-bit
    CPU
      Intel Xeon E3 1231 v3 @ 3.40GHz 87 °F
      Haswell-WS 22nm Technology
    RAM
      16.0GB Dual-Channel DDR3 @ 799MHz (10-10-10-27)
    Motherboard
      ASRock H97M Anniversary (CPUSocket) 85 °F
    Graphics
      HP S2031 (1600x900@60Hz)
      1023MB NVIDIA GeForce GTX 650 (PNY) 103 °F
    Storage
      931GB Crucial CT1000BX100SSD1 (SSD) 76 °F
    Optical Drives
      hp DVD A DH16AAL
    Audio
      Realtek High Definition Audio
    I've seen lots of other threads of this exact problem. Any help appreciated. Thank you so much!
    AC

    If CC 2014 starts can you use menu Help>System Info and post that info here.

  • Error "creating file: 1008:5, -5000 Access Denied Error"

    I'm unable to install Flash Player 9 in OS X (10.4.8). I
    followed the following tech note:
    http://www.adobe.com/go/4aa64290
    * I uninstalled Flash Player using the uninstaller
    * I repaired disk permissions
    * I tried re-installing Flash Player
    I still get the error message saying I don't have the
    appropriate permissions.
    Some background: I'm upgrading from a G5 tower to a new Mac
    Pro. I ran the migration utility to copy over my user settings,
    apps, etc. I noticed that pages with Flash were crashing the
    browser(s) instantly. Of course, that's because the PowerPC version
    was previously installed. I uninstalled and tried to re-install.
    When I got the above error, searched the support area and found the
    tech note saying to uninstall (done), repair permissions (done),
    then re-install (fails.)
    I'm stumped.
    Any suggestions?

    I have the same problem, after trying more than a few times
    to install the
    player, uninstall it, uninstall the Firefox 2, reinstall
    Firefox... with the
    same result : it says that I need a plugin, and put me to the
    page of the Flash
    player installer...
    I had this new error message after erasing, as it was
    proposed on a forum, the
    Internet plug-ins directory... "creating file: 1008:5, -5000
    Access Denied
    Error"
    I never had this message before. I have all the rights and
    have installed lots
    of softwares. I tried to use the terminal way... but this is
    a long way for me
    on a Mac... I would be able on a PC but I can't even
    "navigate to this
    directory"...
    Do I have to say that this Flash player is now quite
    important for lots of web
    sites... This is really the first time I have a problem with
    Flash. Is it the
    Intel Mac ?? No, it seems Windows have also its probs. Thanks
    for a reply... or
    a solution !

  • I have created file adapter in  logical path in soa,

    I have created file adapter in in logical path in soa,ignore message is no source path

    Thats fine. What is the issue that you are facing, provide some error message with your usecase to help you.
    Thanks,
    Vijay

  • What is easiest way to create file labels in Pages?

    I am a new Mac user and cannot figure out how to create a file label in Pages.

    You can download the Avery File label template of your choosing here. Then import that template into Pages and go forth and create file labels.

Maybe you are looking for