Adding to an output file

Hi,
I am looking to add lines to an output text file without over writing whats already there? do I need the outfile.newline() command somewhere?
BufferedWriter outFile;
try
outFile = new BufferedWriter(new FileWriter("D:/members.txt", true));
outFile.write(Integer.toString(NewMember.regno)+","+NewMember.forename+","+NewMember.surename+
","+NewMember.address1+","+NewMember.address2+","+NewMember.address3+","+NewMember.telephone+
","+NewMember.dob+","+NewMember.email+","+NewMember.fax+","+NewMember.credit+","+NewMember.expiry+","+
NewMember.subscrip+","+NewMember.letter+",");
outFile.close();
catch (IOException ev){
System.err.println("Error in file: " fileName
":"+ev.toString());

You are already appending new text to any given text in that file.
That should work.
But in your code you will create only one line of text that increases with any new call of your code (method?).
If you want to seperate entries by a new line use newLine(). That's what it is for..
But i dont know whether this is the right answer, it seems to be to easy.

Similar Messages

  • Preventing select-string from adding additional undesired strings in the output file

    Hi friends
    in PS 4.0 i am trying to write a function which
    step1: export the list of all eventlogs ----> wevtutil el > "$home\documents\\loglist1.txt"
    step2: deleted the following two lines from loglist1.txt
    DebugChannel
    Microsoft-RMS-MSIPC
    ( the reeson of deleting these two lines is wevtutil cl command, can't clear these two evenlogs among approximately 1000 logs)
    in fact via select-string with -pattern -notmatch parameters, we select anything except these two line
    step3:  pastes the select-string contents into the same file ("$home\documents\loglist1.txt") or into new text file (for example
    "$home\documents\loglist2.txt")
    here is my code:
    function MycleareventsAll {
    cls
    Wevtutil el > "$home\documents\loglist1.txt"
    $mycontents = select-string "$home\documents\loglist1.txt" -pattern DebugChannel, Microsoft-RMS-MSIPC -NotMatch
    cd "$home\documents\"
    $mycontents | out-file loglist2.txt"
    # also i tried ---> $mycontents | set-content "loglist2.txt"# also i tried ---> $mycontents | set-content "loglist1.txt"
    but the problem is, in addition of deletion, unfortunatelly additional strings (filepath, filename, line number) are added into the final text file so wevtutil will fail clearing logs listed in text file.
    here is contents of the final text file
    C:\Users\Administrator\documents\loglist.txt:1:Analytic
    C:\Users\Administrator\documents\loglist.txt:2:Application
    C:\Users\Administrator\documents\loglist.txt:4:DirectShowFilterGraph
    but i need the contents be the same as original file without that two specific line:
    Analytic
    Application
    DirectShowFilterGraph
    i searched but i didn't find a way to prevent select-string cmdlet from adding these edditional strings
    (filepath, filename, line number) into output file while keeping the original contents.
    note: -quiet parameter is not what i want. it removes all contents & simply inserts a true or false.
    any help? 

    don't forget that Guys here know the basics of security such as clearing event logs & ...
    how odd if you don't know this.
    clearing all events is useful in test environment for example when i ma teaching my students & need to see all newly created events & work on them
    Then you are teching your students how not to use an event log.  We use filters and queries to access event logs.  We also use event log CmdLets in PowerShell.  WEVTUTIL is ok but it does not marry wellwith PowerShell as you have seen.
    I have found very few people who are not certified in WIndows administration that know much about eventlogs when it should be a ver important part of administration.  PowerShell has mmade EL management much easier but few take the time to learn how
    to use the EL support in PowerShell.
    I see no point inclearing event logs.  It accomplishes nothing.
    ¯\_(ツ)_/¯
    oh your are introducing me filters & queries in event viewer !! please stop Laughing me this way.
    your problem is you judge about people's knowledge & you persist on your absurd judgments.
    look at your sentence:
    "Then you are teaching your students how not to use an event log" 
    where from you tell this? have you been present in my classes to see what i teach to my students?
    have you seen that i told to my students not to use event viewer?
    my goal of clearing events is related to myself. it's non of your businesses.
    people are not interested to here concurrent irrelevant advises from you like a grandmother. they are searching for a solution. their intent of doing tasks is not up to you.

  • Adding lastline in the output file

    hi
    i have attached my coding with this just i need to add a word in before of last line in output file
    please help out....
    import java.io.*;
    import java.io.FileReader;
    class Filenew
         public static void main(String args[]) throws IOException
              FileReader in = new FileReader("e:/rag.txt");
              FileWriter out= new FileWriter("e:/out2.txt");
              BufferedReader br=new BufferedReader(in);
              String s;
              while((s=br.readLine())!=null)
                   out.write(s);
              out.close();
              in.close();
    }regards
    Raghavan

    hi,
    From your previous post
    http://forum.java.sun.com/thread.jspa?threadID=5226088you are trying to write in a file and add some text before last line in that file,
    if yes
    here is the modified code,
    try to even better;
    file.java
    import java.io.*;
    import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import java.util.Vector;
    import java.util.Enumeration;
    public class file
    public static void main(String args[]) throws IOException
    InputStream in = new FileInputStream("out2.txt");
    FileWriter fo=new FileWriter("out3.txt");
    Vector v = new Vector ();
    int c,pos,pos1;
    String s=new String();
    StringBuffer sb = new StringBuffer();
    while((c=in.read())!=-1)
    sb.insert(0,(char)c);
    sb = sb.reverse();
    s = sb.toString();
    pos = s.indexOf("verify scan_test",0);
    s=s.substring(pos+1);
    int linecount = 0;
    while (pos >= 0) {
                s = s.substring(pos + 1);
                pos = s.indexOf("_cpdp_=", pos);
                pos = s.indexOf("=", pos);
                pos1 = s.indexOf(';', pos);
                v.add(s.substring(pos + 1, pos1));
                   ++linecount;
    Enumeration e = v.elements ();
    String str = "";
    while ( e.hasMoreElements())
    {   --linecount;
         if( linecount == 0)
              str = "what code you to add here \n\r" + e.nextElement ();
         else
              str = e.nextElement().toString();
         fo.write( str +"\n\r" );
    fo.close();
    out2.txt
    verify scan_test  {
      Abb {* verify:0  Value:0  lifecycle:0 *}
      W tset_tp;
      S {  _cpdp_=YYYY10YYYYYYYYYYYYYYYYYYY;
      Abb {* Begin loop test *}
      S {  _cpdp_=YYYY10YYYYYYYYYYYYYYYYYYY;
      S {  _cpdp_=YYYY110YY1YYYYYYYYYYYYYYY;
      S {  _cpdp_=YYYY110YY1YYYYYYYYYYYYYYY;
      S {  _cpdp_=YYYY111YY1YYYYYYYYYYYYYYY;
      }i hope it will give you a clear cut idea

  • Adobe Media Encoder Could not write XMP data in output file.

    Hi there i have searched for this on the forums,
    if there is a Thread on it please Link:)
    This is my Encoding Log from Adobe Media ancoder,
    (se Below).
    im doing a projekt from Mts Files, in Premiere pro
    i have Checked the box that no Xmp Data needs to be added, to the left from the Queue button in the export window.
    Should i Delete all the Xmp in Bridge or somthing like that to Resolve this?
    Regards
    Jonas Dwight
    Encoding Log:
    - Source File: /Users/Blasuk/Library/Caches/TemporaryItems/Mogel_oe_2014_nyeste.prproj
    - Output File: /Users/Blasuk/Desktop/Video_Projekts/Fremkaldte/Moegeloe2014-hq.mp4
    - Preset Used: Custom
    - Video: 1920x1080 (1,0), 25 fps, Upper, 01:18:52:10
    - Audio: AAC, 320 kbps, 48 kHz, 5.1
    - Bitrate: VBR, 2 pass, Target 15.00 Mbps, Max 41.30 Mbps
    - Encoding Time: 11:05:14
    01/05/2015 07:35:01 PM : File Encoded with warning
    File importer detected an inconsistency in the file structure of Moegeloe2014-hq.mp4.  Reading and writing this file's metadata (XMP) has been disabled.
    Adobe Media Encoder
    Could not write XMP data in output file.

    Any help please?! Thank you!

  • Header Name in the output file using content conversion

    Dear All,
    I want to have a text file with a header in the output. I have given the following values for content conversion:
    RecordSet structure = Record,Row
    Record.fieldSeparator='nl'
    Row.endSeparator='nl'
    Row.fieldSeparator=','
    Row.addHeaderLine=1
    but still I am not getting header in the output file. Please tell me where I am making a mistake in getting the header.
    Reg,
    NJ

    hi chirag,
    thnx for replying.
    i m getting the required output file without any error but i m not getting header. i hve added "addHeaderLine" parameter in content conversion but still i m not getting header in the output file.
    reg,
    nj

  • Output file is different than timeline

    Hello everyone,
    This is my first post here, hope you can help me out with an issue I'm having on Premiere Elements 8.
    What happens is the following:
    I'm creating a video with a mix of movie files and still images. The format is a 16:9 Widescreen. As some files do not fit the size, I have unchecked Scale to Frame Size, and I have streched them out a bit. It doesn't look 100%, but it works fine for what I need. So, I have filled the whole black space in the timeline there with the videos and still images. I have added some pan and zooms in the still images, so it doesn't look so boring.
    Now, when I export the video, I'm doing these settings: WMV format HD 720p 30 fps 1.0 Square Pixels.
    Most of the video (98% I would say) exports perfectly. There are only 3 still images which aren't positioned as they were supposed to be. They are all too much to the right side of the screen, therefore showing the black edge on the left and cutting the right side of the image off-screen. All other still images and video files are positioned exactly as I see creating the video. I have done some tests, like 1.21 Pixels, but then it messed up the whole thing, all out of place.
    One problem is that it takes me about 1 hour to export in this WMV format HD 720p 30 fps, so for testing stuff it takes hours.
    Anyway... any clue of what could be wrong for those images to be wrong in the output file?
    I could also try another format, but this is the only one I could find which the quality was fairly good in the output file (size about 170mb). It's for a YouTube video, so I'm looking for a decent quality for a video there, about 5 minutes long, HQ.
    Well, I say beforehand than I'm a noob with video editing in general and Premiere Elements specifically. So, a little help would be extremelly important.
    Thanks a lot for reading my challenge here.
    Fernando

    Great, it worked fine now. No more weird behavior with the still images. I resized them in Photoshop Elements, and imported again into Premiere Elements. All beautiful and file size is smaller in the end.
    NOW... may I use this same thread for another novice question?
    When I'm starting a project, I'm choosing the following configuration:
    NTSC DV Widescreen
    Would I get a better result if using NTSC HDV 720p 30?
    Because at the end, I'm exporting my movie as Windows Media (.WMV) HD 720p 30.
    Thanks!

  • Import/export journals using an output file

    I am looking into loading journals using an output file in SAP BPC intead of entering every journal using the template.
    Hello everybody,
    I have found that 3 DTS packages exist for this issue:
    Export the Journal Tables
    Clear the Journal Tables.
    Restore the Journal Tables.
    I have added these packages (using the three .dtsx files that are in the server, in the "Examples" folder) and, after that, run the packages in the proper order. I have some doubts that I would appreciate if you could solve them:
    1.- When I run "Export the Journal Tables" package, I can NOT make a selection of journals (for example, using Time dimension).There is no possibility. Is it possible modify this DTS package to export only some selected journals? In case it is, how?
    2.- In order to restore journals table, firstly you need to clear all the table using "Clear the Journal Tables" package (I tried to do it without clearing all the journals, and I got an error message that said that I have to clear the journal table before importing ). Would it be possible to restore/import only some journals WITHOUT clearing ALL the previous journals??
    3.- I have exported the Journal Table to an output file, clear all the journals in the Journal Table (using the proper package) and run the "Restore the Journal Tables" package using the output file I have gotten before. I have gotten this error: "Exception from HRESULT: 0x800A005B". Do you know what's the problem?
    4.- Dou you know another way of loading journals using an output file in SAP BPC intead of entering every journal using the template?
    Thank you very much.

    There may be options to your process, but as I have mentioned in other strings, the Journals in the BPC for Microsoft version are sequenced.  That means that there is a system generated sequence ID for each journal.  Any individual selection of journals would possibly cause an issue for the sequence. I have not seen any past work in SSIS to detach the records for export or import.  It may be possible, but I would assume it will take some core SQL coding.
    Regarding your error, you may need to verify that you have the security set correctly to use Journals and use the Data Manager capabilities.  Typically, when security tasks are not correct, you will get an error similar to your HRRESULTX.... error.
    An option for loading the details is to build a worksheet in EVDRE, aggregate the data and send it to the cube at a level that is easy to save the file and submit consolidated results.  Just make sure you send all "like" records at an aggregated to a base member, and send to a datasrc to identify the extra details. Then store the excel file with the input values.
    Hope this helps.
    Edited by: Petar Daniel on Feb 16, 2009 10:06 PM

  • Writing to an output file

    Hello all,
        I have an ABAP program in BW which reads the data from a BW ODS active table and writes the output to an external file on the server.
        The file that is generated is huge(13 MB). The file is generated with the correct results, but along with the data, the program header(filename, path, etc) is also written to the output file which is undesirable. The header is written for every few hundred pages. I want to avoid this.
    Database is Oracle.
       The syntax for the file declaration is..
    PARAMETERS: fileout(120) type c lower case default 'xxxx.csv' 
                        obligatory.
    and the open statement is as follows....
    OPEN DATASET fileout FOR OUTPUT IN TEXT MODE ENCODING DEFUALT.
    In the above statement I want to try taking out the "ENCODING DEFAULT" clause, but it says "in TEXT MODE the ENCODING must be added". I have seen other programs which are already there without that clause.
       Any suggestions will greatly appreciated. Thanks.
    Message was edited by: Ajay

    I can't seem to re-create the problem.  You can you please post the exact code of the program, so that we may try to re-create your problem. 
    This program works fine in my WebAs 7.0  system.
    report  zrich_0001.
    data: d1(100) type c value '/usr/sap/NSP/SYS/test.txt'.
    data: begin of itab occurs 0,
          fld1(20) type c,
          fld2(20) type c,
          fld3(20) type c,
          fld4(20) type c,
          fld5(20) type c,
          fld6(20) type c,
          end of itab.
    data: wa like line of itab.
    start-of-selection.
      do 10000 times.
        wa-fld1 = sy-index.
        wa-fld2 = sy-index.
        wa-fld3 = sy-index.
        wa-fld4 = sy-index.
        wa-fld5 = sy-index.
        wa-fld6 = sy-index.
        append wa to itab.
      enddo.
      open dataset d1 for output in text mode encoding default.
      loop at itab.
        transfer itab to d1.
      endloop.
      close dataset d1.
    Regards,
    Rich HEilman

  • Patchadd command fails with message /usr/bin/split: Exhausted output file

    When adding a patch using patchadd command the error message is "/usr/bin/split: Exhausted output file names, aborting split"
    Pls help me........

    it is a custom patch for one of our softwares and its name is MDM_2012.089 and d complete o/p is
    Validating patches...
    Loading patches installed on the system...
    Done!
    Loading patches requested to install.
    Done!
    Checking patches that you specified for installation.
    Done!
    Approved patches will be installed in this order:
    MDM_2012.089
    Checking installed patches...
    Installing patch packages...
    /usr/bin/split: Exhausted output file names, aborting split
    pwd is /tmp as i have the patch in /tmp

  • Flatfile conversion with output file has a NAMING CONVENTION

    Dear SAP experts,
    I need some advise regarding my scenario.
    I am converting a message into flatfile. (customized .csv)
    But, the output .csv flatfile must have a naming convention.
    E.g.    Globus_20071020   (Customer name_YearMonthDate)
    Can somebody give me ideas/inputs on what will I configure in File Receiver (FCC) in order to have an output file having a naming convention indicated above.
    Or do i need additional configurations?
    Please advise.
    Thank you very much in advance.
    Fred

    Hi,
    You could pass this kind of File name from mapping at runtime or
    You could use the variable substitutions to create the fiel neame as per naming convention as adding date .
    With reference to Variables youcould set file name as Globus_%payload.<Date>%
    Pass the value in date field of payload 
    Refer
    Variable Substitution
    How to use Variable substituion
    /people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi
    /people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
    how to use attributes in variable substitution???:(
    Dynamic file name
    /people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i --> Dynamic File Name using XI 3.0 SP12 Part – I
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii --> Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II
    Dynamic File name in File adapter
    /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    1. In the sender file adapter , select Adapter Specific Attributes --> FileName.
    2. Use the code in this link to read the filename inside a UDF in your mapping.
    DynamicConfiguration conf = (DynamicConfiguration) container
    .getTransformationParameters()
    .get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(
    “http://sap.com/xi/XI/System/File”,
    “FileName”);
    String filename = conf.get(key);
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
    Thanks
    Swarup

  • "Unable to save markup: Cannot create output file" message with ISDK

    Hi,
    We have an integration of AutoVue with OpenText Livelink, and we're seeing that if users open a document, and then work on adding mark-ups for a long time (3 hours) without saving the mark-up when the user saves the markup they get an error message "Unable to save markup: Cannot create output file". If they then press the save button they get the out-of-the-box AutoVue 'Save Markup File As' dialog.
    The ISDK DMS integration servlet and VueServlet servlet are both running under Tomcat with 740 minute session timeout set for the servlet.
    When we look at the logs we're not seeing any attempts to save the mark-up, which is confusing.
    It looks as though the link between the AutoVue applet and the DMS has been lost.
    Is it possible to specify session time-outs in the AutoVue applet?
    Is there a way of checking keep-alives are being sent (if they are ever sent)?
    Help appreciated!
    Thanks
    Paul

    AutoVue default timeout is 30 minutes and is being controlled by the option jvueserver.users.timeout (value set in seconds, default is 1800).
    Adding to the jvueserver.properties the following line:
    jvueserver.users.timeout=50400
    would set AutoVue session timeout to 14 hours (longer than Tomcat session).
    If the issue still persists, the AutoVue session timeout is probably not the cause...
    Edited by: user739124 on Dec 4, 2012 12:02 PM

  • Which AirHelp option produces less output files?

    Hello All,
    My help topics were created using RH8, and am looking into other web base help solution due to the large amount of files that Web Help currently outputs. For example, Adobe Air in RH8 has the following Output Types:
    Adobe Air Application,
    Browser based help,
    Air Application AND Browser based help, and
    Help Content.
    My ultimate goal is simply to have a compact output file (e.g., like a CHM file) so my developer can incorporate into his workflow solution (SharePoint 2010) to automatically deploy my web help to not just the central admin server but also all sub-servers. The initial approach of incorporating the help files (currently using RH WebHelp) into the install package did not address that scenario. Unfortunately, for him, he cannot dynamically include all the files into the solution; they must be included one-by-one, which is pain and will cause issues if new files are added later on. Hence, my inquiry to find another web help platform output to reduce the number of files needed to be included in the solution.
    In closing, what do you recommend out of Adobe Air web help solution?
    Thank you all for your time and consideration,
    ~PM

    Jeff will not be online yet. The AIR file is a single file but not the same as a CHM. A CHM is what the user opens. An AIR file is a bit like a zip file and it installs the AIR help on the user's PC as a program. Within Program Files, it looks much like WebHelp.
    You will need a freely available licence from Adobe if you are also going to install the AIR runtime that will be needed. See the AIR topics on my site.
    With that said, I don't think AIR of any type is your solution any more than a CHM is. The latter is designed to be run from the user's PC and not a server. See http://www.grainge.org/pages/authoring/chm_mspatch/896358.htm
    Quite simply, short of a PDF help file, there isn't a single file help option designed to run from web servers. What seems odd here and where more information is needed is why your developer cannot upload webhelp. Something is not ringing right here.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • XML PUBLISHER/XDO ERROR  - Output file was found but is zero sized - Delete

    Hi XML/XDO experts,
    I am running a XLM publisher report in an internal 12.1 env (mz1dv213) and have this warning when running.
    Beginning post-processing of request 40256141 on node RWS60183REMS at
    23-JUL-2010 09:34:48.
    Post-processing of request 40256141 failed at 23-JUL-2010 09:34:54 with the
    error message:
    One or more post-processing actions failed. Consult the OPP service log for
    details.
    +--------------------------
    OPP log shows
    [072310_010929110][][EXCEPTION] [DEBUG] [sun.cpu.isalist]:[]
    [7/23/10 1:09:31 PM] [1925014:RT40257178] Output file was found but is zero sized - Deleted
    [7/23/10 1:09:31 PM] [UNEXPECTED] [1925014:RT40257178]
    java.lang.reflect.InvocationTargetException
    I also have the same issue at a Customer site (bug is escalated)
    Please advise

    I'm having the same problem.
    I'm getting this error in R12.1.3. Does anyone have solution for this?
    I tried the solution given in the link - "http://forums.oracle.com/forums/thread.jspa?messageID=9552336&#9552336", but it didn't work for me.
    Thanks in advance.
    Thanks,
    Satish
    ----------LOG FILE-------------
    GF AP Custom Application: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    XXGFAPBAAT_XML module: GF AP Bank Account Audit Trail Report
    Current system time is 28-APR-2011 22:47:23
    XDO Data Engine Version No: 5.6.3
    Resp: 50863
    Org ID : 81
    Request ID: 1427740
    All Parameters: P_CREATION_DATE_FR=:P_CREATION_DATE_TO=:P_CREATED_BY=
    Data Template Code: XXGFAPBAAT_XML
    Data Template Application Short Name: XXAP
    Debug Flag: N
    {P_CREATED_BY=, P_CREATION_DATE_TO=, P_CREATION_DATE_FR=}
    Calling XDO Data Engine...
    [042811_104733608][][STATEMENT] Start process Data
    [042811_104733751][][STATEMENT] Process Data ...
    [042811_104733752][][STATEMENT] Executing data triggers...
    [042811_104733752][][STATEMENT] BEGIN
    XXGF_AP_BAAT_XML_PKG.P_CONC_REQUEST_ID := :P_CONC_REQUEST_ID ;
    XXGF_AP_BAAT_XML_PKG.P_CREATION_DATE_FR := :P_CREATION_DATE_FR ;
    XXGF_AP_BAAT_XML_PKG.P_CREATION_DATE_TO := :P_CREATION_DATE_TO ;
    XXGF_AP_BAAT_XML_PKG.P_CREATED_BY := :P_CREATED_BY ;
    :XDO_OUT_PARAMETER := 1;
    END;
    [042811_104733752][][STATEMENT] 1:0 :
    [042811_104733752][][STATEMENT] 2: :
    [042811_104733753][][STATEMENT] 3: :
    [042811_104733753][][STATEMENT] 4: :
    [042811_104733763][][STATEMENT] Executing data triggers...
    [042811_104733763][][STATEMENT] Declare
    l_flag Boolean;
    BEGIN
    l_flag := XXGF_AP_BAAT_XML_PKG.BeforeReport() ;
    if (l_flag) then
    :XDO_OUT_PARAMETER := 1;
    end if;
    end;
    [042811_104733771][][STATEMENT] P_CONC_REQUEST_ID
    [042811_104733771][][STATEMENT] P_CREATION_DATE_FR
    [042811_104733771][][STATEMENT] P_CREATION_DATE_TO
    [042811_104733771][][STATEMENT] P_CREATED_BY
    [042811_104733771][][STATEMENT] Writing Data ...
    [042811_104733780][][STATEMENT] &srwhereclause
    [042811_104733795][][STATEMENT] &srwhereclause1
    [042811_104733797][][STATEMENT] Sql Query :Q_AUDIT_TRIAL: SELECT DECODE(abaaa.audit_transaction_type,
    'I','INSERTION',
    'U','UPDATE',
    'D','DELETION',
    NULL) activity,
    SUBSTR(abb.bank_name,1,24) bank_name,
    -- SUBSTR(abb.bank_number,1,25) bank_number, -- Commented by Bugoy 18-SEP-2003
    SUBSTR(abb.bank_branch_name,1,20) branch_name,
    SUBSTR(abb.bank_num,1,15) branch_number,
    SUBSTR(abaaa.bank_account_name,1,30) old_bank_account_name,
    SUBSTR(abaaa.bank_account_num,1,25) old_bank_account_number,
    -- SUBSTR(abaa.bank_account_name,1,30) new_bank_account_name, -- Commented by Bugoy 18-SEP-2003
    SUBSTR(abaa.bank_account_name,1,50) new_bank_account_name, -- Added by Bugoy 18-SEP-2003
    SUBSTR(abaa.bank_account_num,1,25) new_bank_account_number,
    SUBSTR(abaaa.audit_user_name,1,15) created_by,
    TO_CHAR(abaaa.audit_timestamp,
    'DD-MON-YYYY HH:MI:SS AM') creation_date
    FROM ap_bank_branches abb,
    xxgf_ap_bank_accounts_all_a abaaa,
    ap_bank_accounts_all abaa
    WHERE abaaa.bank_account_id = abaa.bank_account_id
    AND abaa.bank_branch_id = abb.bank_branch_id
    -- AND TRUNC(abaaa.audit_timestamp) BETWEEN to_date(:P_CREATION_DATE_FR,) AND :P_CREATION_DATE_TO
    -- AND abaaa.audit_user_name = NVL(:P_CREATED_BY,abaaa.audit_user_name) -- Added By Bugoy 04-SEP-2003
    AND abaa.set_of_books_id = FND_PROFILE.VALUE('GL_SET_OF_BKS_ID') -- Added By Bugoy 16-DEC-2003
    AND abaa.org_id = FND_PROFILE.VALUE('ORG_ID') -- Added By Adi 12-JUL-2010 PSR-10-4725
    and 1=1
    and 1=1
    ORDER BY SUBSTR(abaa.bank_account_name,1,50);
    --SQLException
    java.sql.SQLSyntaxErrorException: ORA-00911: invalid character
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
    at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:205)
    at oracle.jdbc.driver.T4CPreparedStatement.executeForDescribe(T4CPreparedStatement.java:861)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3449)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3493)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
    at oracle.apps.xdo.dataengine.XMLPGEN.processQuery(XMLPGEN.java:1947)
    at oracle.apps.xdo.dataengine.XMLPGEN.processSQLDataSource(XMLPGEN.java:501)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeData(XMLPGEN.java:445)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeGroupStructure(XMLPGEN.java:308)
    at oracle.apps.xdo.dataengine.XMLPGEN.processData(XMLPGEN.java:273)
    at oracle.apps.xdo.dataengine.XMLPGEN.processXML(XMLPGEN.java:215)
    at oracle.apps.xdo.dataengine.XMLPGEN.writeXML(XMLPGEN.java:254)
    at oracle.apps.xdo.dataengine.DataProcessor.processDataStructre(DataProcessor.java:390)
    at oracle.apps.xdo.dataengine.DataProcessor.processData(DataProcessor.java:355)
    at oracle.apps.xdo.oa.util.DataTemplate.processData(DataTemplate.java:334)
    at oracle.apps.xdo.oa.cp.JCP4XDODataEngine.runProgram(JCP4XDODataEngine.java:294)
    at oracle.apps.fnd.cp.request.Run.main(Run.java:157)
    Start of log messages from FND_FILE
    P_CREATION_DATE_FR:
    P_CREATION_DATE_TO:
    P_CREATED_BY:
    srwwhereclause 1=1
    srwwhereclause1 1=1
    End of log messages from FND_FILE
    Executing request completion options...
    Output file size:
    230
    ------------- 1) PUBLISH -------------
    Beginning post-processing of request 1427740 on node SGPERPVMEBSDB1 at 28-APR-2011 22:47:34.
    Post-processing of request 1427740 failed at 28-APR-2011 22:47:35 with the error message:
    One or more post-processing actions failed. Consult the OPP service log for details.
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 28-APR-2011 22:47:36
    ---------------------CONCURRENT MANAGER LOG--------------------------
    [4/28/11 10:47:35 PM] [OPPServiceThread1] Post-processing request 1427740.
    [4/28/11 10:47:35 PM] [96895:RT1427740] Executing post-processing actions for request 1427740.
    [4/28/11 10:47:35 PM] [96895:RT1427740] Starting XML Publisher post-processing action.
    [4/28/11 10:47:35 PM] [96895:RT1427740]
    Template code: XXGFAPBAAT_XML
    Template app: XXAP
    Language: en
    Territory: 00
    Output type: null
    [4/28/11 10:47:35 PM] [96895:RT1427740] Output file was found but is zero sized - Deleted
    [4/28/11 10:47:35 PM] [UNEXPECTED] [96895:RT1427740] java.lang.reflect.InvocationTargetException
    at sun.reflect.GeneratedMethodAccessor271.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at oracle.apps.xdo.common.xml.XSLT10gR1.invokeParse(XSLT10gR1.java:570)
    at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:235)
    at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:182)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
    at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
    at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1665)
    at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:975)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5936)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3459)
    at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3548)
    at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:302)
    at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:176)
    Caused by: org.xml.sax.SAXParseException: <Line 6, Column 1>: XML-20210: (Fatal Error) Unexpected EOF.
    at oracle.xdo.parser.v2.XMLError.flushErrorHandler(XMLError.java:441)
    at oracle.xdo.parser.v2.XMLError.flushErrors1(XMLError.java:303)
    at oracle.xdo.parser.v2.XMLReader.popXMLReader(XMLReader.java:530)
    at oracle.xdo.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1312)
    at oracle.xdo.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:338)
    at oracle.xdo.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:285)
    at oracle.xdo.parser.v2.XMLParser.parse(XMLParser.java:289)
    ... 16 more
    [4/28/11 10:47:35 PM] [96895:RT1427740] Completed post-processing actions for request 1427740.
    Edited by: user6665827 on Apr 28, 2011 10:56 PM

  • Powershell scripts not writing it to output file

    Hi,
    Below is my script which loops through all sites and web in a site collection and if the particular web part is added in a page, it will give the page URL and it should be written to a output file.
    function enumerateWebParts($Url)
    $webApp = Get-SPWebApplication $Url #Get WebApplication URL
    foreach($web in $webApp | Get-SPSite -Limit All | Get-SPWeb -Limit All) #foreach loop to iterate through all sites and webs of WebApplication
    if ([Microsoft.SharePoint.Publishing.PublishingWeb]::IsPublishingWeb($web)) #Check if site is a publishing site
    $pWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web)
    $pages = $pWeb.PagesList
    foreach ($item in $pages.Items)
    $fileUrl = $webUrl + "/" + $item.File.Url
    $manager = $item.file.GetLimitedWebPartManager([System.Web.UI.WebControls.Webparts.PersonalizationScope]::Shared);
    $wps = $manager.webparts
    foreach ($type in $wps) #loop through each type found $wps
    #Write-Host " type searching";
    Write-Host $type.GetType().Name;
    if ($type.GetType().Name -eq "RightMenu") #if webpart $type -like KWizCom select webpart object
    Write-Host "found";
    $wps | select-object @{Expression={$pWeb.Url};Label="Web URL"},@{Expression={$fileUrl};Label="Page URL"},DisplayTitle, IsVisible, @{Expression={$type};Label="Type"}
    Write-Host $fileUrl;
    $page=$pweb.Url+$fileUrl;
    Write-Output $page;
    else #if web is not a publishing site
    $pages = $null
    $pages = $web.Lists["Site Pages"]
    if ($pages)
    foreach ($item in $pages.Items)
    $fileUrl = $webUrl + "/" + $item.File.Url
    $manager = $item.file.GetLimitedWebPartManager([System.Web.UI.WebControls.Webparts.PersonalizationScope]::Shared);
    $wps = $manager.webparts
    foreach ($type in $wps)
    if ($type.GetType().Name -eq "RightMenu")
    $wps | select-object @{Expression={$Web.Url};Label="Web URL"},@{Expression={$fileUrl};Label="Page URL"},DisplayTitle, IsVisible, @{Expression={$type};Label="Type"}
    Write-Host $fileUrl;
    $page=$pweb.Url+$fileUrl;
    Write-Output $page;
    else
    # Write-Host “… completed processing” $web
    $row = enumerateWebParts(‘http://sptest.danfoss.net’) #call the enumerateWebParts function pass it the URL for the web application
    I run the command through D:\RightMenu.ps1 | Out-File D:\RightMenu.txt
    Aruna

    Try 
    http://stackoverflow.com/questions/10340007/exporting-powershell-output-to-text-file
    You can always redirect the output an exe to a file like so (even from cmd.exe):
    powershell c:\test.ps1 > c:\test.log
    Within PowerShell, you can also redirect individual commands to file
    but in those cases you probably want to append to the log file rather
    than overwrite it e.g.:
    $logFile = 'c:\temp\test.log'
    "Executing script $($MyInvocation.MyCommand.Path)" > $logFile
    foreach ($proc in Get-Process) {
    $proc.Name >> $logFile
    "Another log message here" >> $logFile
    If this helped you resolve your issue, please mark it Answered

  • Output file size doubled

    I have created a movie in Premiere Elements that uses hi-def video, still images, narration and a soundtrack. The movie is about 1 hour long. Once the movie reached its final length of about 1 hour, the output file size of the movie to be burned to Blu-ray was consistently around 11 GB. For reasons I don't understand, the output file size has abruptly grown to 26 GB. I have not added any significant footage or effects since I reached the 1 hour mark. I've only made very small tweaks to the audio balance and transitions.
    The only thing that I can think of that might have caused this growth is that I went into the project settings and turned off "optimize stills." I may also have turned on "maximum bit depth." When I clicked ok, Premiere Elements told me that it had to re-render the project, which i did so. Since then, though, i have re-enabled "optimize stills" and turned off "maximize bit depth." I have also re-rendered the project again. My file size is still 26 GB.
    I am running PE on a 3.06 GHZ laptop with 6 GB of ram. Running Windows 7, 64-bit.
    Has anyone else run into this issue?

    The only thing that I can think of that might have caused this growth is that I went into the project settings and turned off "optimize stills." I may also have turned on "maximum bit depth."
    File size is dependent on Bit-Rate and on Duration. If you have upped the Bit-Rate, you will see an increase in file size. Will the Project still fit on your BD? If so, and you want highest quality, the Bit-Rate and Bit-Depth can just stay higher. If space is an issue, then you can drop these down a bit.
    Something else to think about and look for is has your Duration changed. This can be caused by "Orphans," out beyond where you intend your Timeline to end. This ARTICLE will give you some tips. This is easy to check.
    Good luck,
    Hunt

Maybe you are looking for

  • Table for Year to date payments made to vendors

    Hi friends, I am generating one query, in which I have to show year to date payments made to vendors. can anyone tell me from which table and from which foield can I get this information. Please help.

  • Active directory to oid sync

    hi all, recently i've been given the assignment of sync one Active Directory to one OID. Said so seams easy ..... ...... so I installed a fresh copy of Win2000 adv server with Active Directory PLUS another Win2000 adv server with Oracle AS infra. The

  • Headers are transfering to new pages

    headers are transfering to new pages. i cannot change headers on one page without doing exactly the same on all pages. the cursor is flashing on all headers on each page..thanks

  • Dev6i Installation Error ? (Very Urgent please)

    I have oracle 8.1.5 installed on the NT Server4.0, SP4. When i tried to install the Developer6i by running installed, Dr. Watson comes with access violation. With the same user right I was able to install the database, but with developer it gives err

  • Error in updationg the opportunity in data Migration program

    Hi,   I am getting an error in updationg the opportunity in data Migration program. I am using   CALL FUNCTION 'BAPI_BUSPROCESSND_CHANGEMULTI'           TABLES             HEADER        =    li_header             ITEM          =        lt_bapibus2000