File append

Hi !
I have a file log.txt. I want to add data to this file at the begenning without deleting the previously present data in log.txt.
How can I do this ?

Append to the end of this file:
boolean append = true;
FileOutputStream out = new FileOutputStream(file, append);The data isn't added to the beginning of the file, you say? Look at the file from a different point of view, says I.
And if you are logging, there are better ways to do it: {color:orange}http://logging.apache.org/log4j/1.2/index.html{color}

Similar Messages

  • OSB File append

    I have setup a File protocol based Business Service in OSB. This Business Service is called by a Proxy Service after setting the file name in the outbound transport header and assigning the text to be written to the file. When executed, the file is successfully created. When the proxy service is executed again, a new file is created. I would like the data to be appended to the existing file. How do we achieve this?
    I know there is a property - 'Append' which should be set to true in case of file adapters. I tried setting the outbound transport header to 'Append', 'append', 'jca.file.append', 'jca.file.Append'. None of these seem to help.

    Thanks for the link. That really helped!
    However, though the file is created by the file adapter, the contents are missing. While configuring the File Adapter in JDev, I defined the following XSD as the message for the write operation.
    <xsd:element name="log">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="logMessage" type="xsd:string" />
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    And I am sending the following in the SOAP Request...
    <log:log xmlns:log="http://myNS/LogFileWriter">
    <log:logMessage>My Log message...</log:logMessage>
    </log:log>
    I expect the value 'My Log message...' to be written to the file. However, it is always empty.

  • ODI - IKM SQL to File Append - Header not Generated

    I'm using ODI IKM SQL to File Append to create a text file, but the header is not being generated. And the GENERATE_HEADER is set to Yes. The file is Tab delimited and the Heading (number of lines) is set to 1.
    Seems to only be an issue with HFM files coming from the Unix server.
    Any suggestions?
    Thanks, Mike

    Ok, getting the following error in step 6 - Integration - HFM_EA_Translate - Insert Column Headers
    java.lang.NumberFormatException
         at java.math.BigDecimal.<init>(BigDecimal.java:459)
         at java.math.BigDecimal.<init>(BigDecimal.java:728)
         at com.sunopsis.sql.SnpsQuery.updateExecStatement(SnpsQuery.java)
         at com.sunopsis.sql.SnpsQuery.addBatch(SnpsQuery.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execCollOrders(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlI.treatTaskTrt(SnpSessTaskSqlI.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.h.y(h.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Thread.java:662)
    The last two columns in the file are numeric which seems to be causing the issue. Will change formatting for the two columns (String, Numeric, etc.) to see if I can resolve the header issue.
    Thanks,
    Mike

  • Log4j file appender

    Hi,
    I am using log4j for logging. I am working on a huge application and there would be lots of logs each day. Thereby it is requried that the log files be stored and renamed each day. The date is appended to the log file and that day's log file is stored. The logs start writing afresh each day. The problem here is that at times the application simply starts logging to the previous day's log file, for a while, and then starts writing back to the current day's file again. I am not able to figure out what goes wrong and when. The application is running on weblogic. Can anybody please help? The log4j properties file is here....
    # DO NOT MODIFY
    log4j.categoryFactory=com.myapp.util.logger.LoggerCategoryFactory
    log4j.rootCategory=INFO,DISABLED
    # EVENTS
    log4j.category.nmy.STATE=INFO,0,DAY,OBS
    log4j.category.nmy.EXCEPTION=DEBUG,10,DAY
    log4j.category.nmy.SESSION=INFO,0,DAY
    log4j.category.nmy.REQUEST=INFO,0,DAY
    log4j.category.nmy.MESSAGE=INFO,0,DAY
    log4j.category.nmy.OBJECT=INFO,0,DAY
    log4j.category.nmy.DATA=INFO,0,DAY
    log4j.category.nmy.NONE=DEBUG,5,DAY
    # DO NOT MODIFY
    log4j.appender.DISABLED=com.myapp.util.logger.NullAppender
    # STANDARD OUTPUT DRIVER SETTINGS
    log4j.appender.CON=org.apache.log4j.ConsoleAppender
    log4j.appender.CON.Target=System.out
    log4j.appender.CON.layout=com.myapp.util.logger.LoggerLayout
    log4j.appender.CON.layout.ConversionPattern=+{DATE_TIME};{EVENT_ID};{SESSION_ID};{SEVERITY};{MODULE};{THREAD_ID};{EVENT_TYPE};{ERROR_CODE};{DESCRIPTION};{DEBUG_INFO}
    # ROLLING FILE OUTPUT DRIVER SETTINGS
    log4j.appender.ROL=org.apache.log4j.RollingFileAppender
    log4j.appender.ROL.File=/var/opt/apps/myapp/var/logs/application.log
    log4j.appender.ROL.MaxFileSize=4000KB
    log4j.appender.ROL.MaxBackupIndex=5
    log4j.appender.ROL.layout=com.myapp.util.logger.LoggerLayout
    log4j.appender.ROL.layout.ConversionPattern=+{DATE_TIME};{EVENT_ID};{SESSION_ID};{SEVERITY};{MODULE};{THREAD_ID};{EVENT_TYPE};{ERROR_CODE};{DESCRIPTION};{DEBUG_INFO}
    # DAILY OUTPUT DRIVER SETTINGS
    log4j.appender.DAY=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.DAY.File=/var/opt/apps/myapp/var/logs/daily_application.log
    log4j.appender.DAY.DatePattern='.'yyyy-MM-dd
    log4j.appender.DAY.layout=com.myapp.util.logger.LoggerLayout
    log4j.appender.DAY.layout.ConversionPattern=+{DATE_TIME};{EVENT_ID};{SESSION_ID};{SEVERITY};{MODULE};{THREAD_ID};{EVENT_TYPE};{ERROR_CODE};{DESCRIPTION};{DEBUG_INFO}
    # ===========================================================================
    # SIMPLE FILE OUTPUT DRIVER SETTINGS WITH DEBUG_INFO
    log4j.appender.FIL=org.apache.log4j.FileAppender
    log4j.appender.FIL.File=/var/opt/apps/myapp/var/logs/fil_application.log
    log4j.appender.FIL.Append=false
    log4j.appender.FIL.layout=com.myapp.util.logger.LoggerLayout
    log4j.appender.FIL.layout.ConversionPattern=+{DATE_TIME};{EVENT_ID};{SESSION_ID};{SEVERITY};{MODULE};{THREAD_ID};{EVENT_TYPE};{ERROR_CODE};{DESCRIPTION};{DEBUG_INFO}
    # ===========================================================================
    # DAILY OBSERVATION FILE OUTPUT DRIVER SETTINGS
    log4j.appender.OBS=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.OBS.File=/var/opt/apps/myapp/var/logs/obslog.out
    log4j.appender.OBS.DatePattern=.yyyyMMdd
    log4j.appender.OBS.layout=com.myapp.util.logger.LoggerLayout
    log4j.appender.OBS.layout.ConversionPattern={DESCRIPTION}
    # log4j.appender.OBS.layout.ConversionPattern=+{DATE_TIME};{EVENT_ID};{SESSION_ID};{SEVERITY};{MODULE};{THREAD_ID};{EVENT_TYPE};{ERROR_CODE};{DESCRIPTION};{DEBUG_INFO}
    Regards...

    I found from the log4j 1.3 API javadoc, the DailyRollingFileAppender is deprecated. They use the RollingFileAppender instead and give one sample .
    Hope it helps!
    <?xml version="1.0" encoding="UTF-8" ?>
    <!DOCTYPE log4j:configuration>
    <log4j:configuration debug="true">
    <appender name="ROLL" class="org.apache.log4j.rolling.RollingFileAppender">
    <rollingPolicy class="org.apache.log4j.rolling.TimeBasedRollingPolicy">
    <param name="FileNamePattern" value="/wombat/foo.%d{yyyy-MM}.gz"/>
    </rollingPolicy>
    <layout class="org.apache.log4j.PatternLayout">
    <param name="ConversionPattern" value="%c{1} - %m%n"/>
    </layout>
    </appender>
    <root">
    <appender-ref ref="ROLL"/>
    </root>
    </log4j:configuration>

  • Log4j Logger and File appender

    I have a problem with my logger file. It look like this :
    # appender "file" writes to a file
    log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.file.File=src/logs/test.log
    log4j.appender.file.layout=org.apache.log4j.PatternLayout
    log4j.appender.file.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
    log4j.appender.file.threshold=DEBUG
    The problem is when I write to the logfile test.log. The contents of the previous "run" is still there. What I want to achieve, is whenever I run my application, only the content of that "run" should be present on the logfile.
    What to add ?
    Cheers !

    It works fine now. I only had to add the line :
    log4j.appender.file.append=false
    so now it look like :
    # appender "file" writes to a file
    log4j.appender.file=org.apache.log4j.DailyRollingFileAppender
    log4j.appender.file.File=src/logs/babel.log
    log4j.appender.file.append=false
    log4j.appender.file.layout=org.apache.log4j.PatternLayout
    log4j.appender.file.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
    log4j.appender.file.threshold=DEBUG

  • Reading in a txt file, appending numbers to it.

    So I'm a student at Georgia Tech working on a relatively simple Java program for a research internship, but it's been awhile since I've had my Java course and I'd really like some help on this. Basically, what I'm looking to do is to take in a text file with data that only consists of the numbers 1,2,4 and 5, with up to four digits in each line and no number may be repeat itself in the same line. A sample of data would look like the following:
    12
    21
    154
    2
    1
    45
    24
    4125
    Lines like '12' and '21' would count as the same however, as would '4512' to '1245'. I'm trying to determine how often each number 'interacts' with each other number, and then append that data to the end of the text file by saying something along the lines of:
    One-Two Interactions = 4
    Four-Five Interactions = 6
    Etc. etc. The real problem I'm having is I can't remember how to get the BufferedReader to 'identify' the particular numbers and combinations of numbers before adding to the count in each variable. If you have any advice or answers, it would be greatly appreciated.

    import java.io.*;
    import java.util.*;
    public class ExchangeProgram{
         public static void main(String[] args) {
              int one = 0;
              int two = 0;
              int four = 0;
              int five = 0;
              int one_two = 0;
              int four_five = 0;
              int one_four = 0;
              int two_five = 0;
              int four_two = 0;
              int one_five = 0;
              int one_two_four = 0;
              int two_four_five = 0;
              int one_two_five = 0;
              int one_four_five = 0;
              int all = 0;
              Set h = new HashSet();
              File file = new File("test.txt");
    StringBuffer contents = new StringBuffer();
    BufferedReader reader = null;
    try
    reader = new BufferedReader(new FileReader(file));
    String text = null;
    // repeat until all lines is read
    while ((text = reader.readLine()) != null)
                             h.add(text);
    } catch (FileNotFoundException e)
    e.printStackTrace();
    } catch (IOException e)
    e.printStackTrace();
    } finally
    try
    if (reader != null)
    reader.close();
    } catch (IOException e)
    e.printStackTrace();
              for (int i=0; i>h.size(); i++){
                        if (h.contains("1")){
                             one++;
                        if (h.contains("2")){
                             two++;
                        if (h.contains("4")){
                             four++;
                        if (h.contains("5")){
                             five++;
                        if (h.contains("12")){
                             one_two++;
                        if (h.contains("45")){
                             four_five++;
                        if (h.contains("14")){
                             one_four++;
                        if (h.contains("25")){
                             two_five++;
                        if (h.contains("42")){
                             four_two++;
                        if (h.contains("15")){
                             one_five++;
                        if (h.contains("124")){
                             one_two_four++;
                        if (h.contains("245")){
                             two_four_five++;
                        if (h.contains("125")){
                             one_two_five++;
                        if (h.contains("145")){
                             one_four_five++;
                        if (h.contains("1245")){
                             all++;
    // show file contents here
    System.out.println(one_two);
    Here's what I've come up with so far, though I'm getting this error: Note: Recompile with -Xlint:unchecked for details.
    Any comments on any major mistakes I'm making here? Haven't used the Set interface much before.

  • Multiple flat files appended, is file locked until all processed?

    Hi All,
    Have a scenario in place where we are collecting multiple flat files on ECC and using append mode on the receiver file adapter to create a single file for final output. We are only interested in submitting the output to it's target after all files sent to PI have been appended.
    Does PI 7.0 lock the appended file until all files have been appended so I am sure I end up with a complete single file on output? If not, what are my options to ensure a completely appended file is output? Would it be a viable option to pass the appending file through another sender file adapter using 'msecs to wait before modification check'?
    Thanks!
    Don
    Edited by: donald.meredith on Dec 1, 2011 2:31 PM

    How many files are you collecting from ECC and appending at receiver side and how much time it is taking to complete the process?
    if its possible to schedule your business to read data from FTP after completing append then no worries, else sometimes it creates trouble.
    The option you mentioned is reliable one , but you ended up creating one more interface.
    Regards,
    Raj

  • Regarding file append

    Hi Guys,
    I have a requirement to append a file from 2 files.
    I mean, i have 2 files at my source and i need that 2 files as one file in target.
    so iam using 2 sender communication channels to pick 2 files from source and 2 communication channels for target. one receiver channel to create a file and another communication channel to append to the first file.
    file A
    file B from Source
    and File C in the receiver
    channel1 to pick file A source file name "A.txt"
    channel2 to pick file B source file name "B.txt"
    channel3 to create file C target file name "C.txt"
    channel4 to append to fileC target file name "C.txt" with append mode.
    After all the efforts i found file B is not appending to file C.
    Note: all the 3 files have same structure.
    I dont want to use BPM
    Guys, Please suggest. Productive solution is highly appreciated..
    Thanks,
    Madhu

    Hello Madhu,
    What is the criteria (Processing Sequence) to pickup the files from Source Directory? (By Name or Date)
    Select accordingly in the sender File CC with wild card entry (*.txt) for File Name convention.
    Also In the Sender File CC, use EOIO as QOS which ensures the correct order of execution.
    In the receiver CC, use Append as file construction mode.
    So one File Sender CC & one File Receiver CC required is enough for your requiremet.
    Thanks,
    Gujjeit.
    Edited by: Praveen Gujjeti on Feb 2, 2009 10:53 AM

  • Binary file appended instead of created

    I have two machines for data acquisition. The first computer (labview 8, 2.8GHz, 1GB ram) contains a pci-6133 and pci 6052e. I am using the 6133 card to acquire 8 analog inputs at 50kHz  and the 6052E to generate a trigger pulse.  On the second computer (labview 8, 2GHz 512MB ram) I have a pci-6602 that I am using to acquire two channels for buffered event counting.  I  export the sample clock from the second computer to the first and have them both started on the same trigger.  Since I need the files on both computers to be referenced to each other, I generate a timestamp and convert it to a string. Then, using the shared variable engine I share the string between both computers for use in generating filenames. For example, I concatenate "Tracking_","<timestamp>",".dat" on the first computer and "Spectrum_", "<timestamp>", ".dat" on the second computer. Whenever I stop and start the data acqusition I want a new file created on each computer with the correct filename.
    I set the open/create/replace vi to "create only" on both computers.  When both computers are running, computer two successfully creates a new file with the correct filename and saves the data until the acquisition is stopped. However, with both computers running, computer one only creates a file once after I initially start the vi. When I stop the data acquisition and restart it (without stopping the vi), computer one appends the new data to the previous file and no more new files are created.
    When only computer one is running (and I generate the sample clock from a spare counter) , the code works correctly.  A new file is created when the data acquisition is stopped and started.
    From the symptoms, it would seem to be a problem with the use of the shared variable engine but I am not sure how. Any help on this problem would be appreciated.

    Without a look at your code, I am correct in understanding that the filestamp from the shared variable will 'name' the file?
    In that case make sure you get a 'new' timestamp.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Log Entries in Table CDPOS with a Z File Append in VBAK

    Hi
      I'm trying to log changes of a new field appended in VBAK in table CDPOS, I already marked the data element of this new field with the checkbox for changes, but when i make some changes in VA02 on this new file, i can't see the changes in the  modifications log.
    Do i have to do any other thing in order to see the changes of this new field ??.
    Regards
    Soraya

    Hi,
    I think for logging the changes the table should have the <b>check box  Log data changes under technical settings</b> checked.This check box is not selected for VBAK. Selecting  the Change document checkbox at the data element level will mark that field in the table for logging.
    I Assume in order to log changes both the check boxes at table level and dataelement level need to be selected.
    Hope this helps.

  • Files appended but not loaded

    Hi
    I have created a save function in my program to save new data and append it at the end of a single file. Here is the code.
    private void SaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SaveActionPerformed
           Vector<PointOnFret> vectorToSave = gPanel1.getFretPointsVector();
           String chordName = JOptionPane.showInputDialog("Enter chord name");
           Chord  chordToSave = new Chord();
           chordToSave.setName(chordName);
           chordToSave.setPositions(vectorToSave);
         try{
                FileOutputStream fis = new FileOutputStream(FILENAME,true);           
                ObjectOutputStream out = new ObjectOutputStream(fis);           
                out.writeObject(chordToSave);
                out.flush();
                out.close();
         catch(IOException ioException)
            JOptionPane.showMessageDialog(null, "Error opening File","Error",JOptionPane.ERROR_MESSAGE );
        }But I think the save works just fine...
    Probably the problem is in the loading of the vector that contains those records in the file.
    It loads the name of the first record of the file but does not open it...
    private String [] loadChordsVector()
            try
                FileInputStream fis = new FileInputStream(FILENAME);
                ObjectInputStream ins = new ObjectInputStream(fis);
                int records  = 0;
                boolean read = true;
                 Chord savedChord  = null;
                do
                     records++;
                     savedChord = (Chord)ins.readObject();
                     if(savedChord != null)
                         chords.add(savedChord);
                }while(savedChord == null);
                ins.close();
                System.out.println("Records "+ records);
                String [] chordNames = new String[chords.size()];
                for(int i = 0; i < chords.size(); i++)
                    Chord chord = chords.get(i);
                    chordNames[i] = chord.getName();
                return chordNames;
            catch (ClassNotFoundException ex) {
                Logger.getLogger(GFriendView.class.getName()).log(Level.SEVERE, null, ex);
                String[] dummy = {"Test"};
                return dummy;
            catch(IOException ioException)
                ioException.printStackTrace();
                JOptionPane.showMessageDialog(null, "Error opening File","Error",JOptionPane.ERROR_MESSAGE );
                String[] dummy = {"Test"};
                return dummy;
        }Can you pls tell me where do you see something wrong?
    I'm a bit confused

    I don't really understand your problem, but it seems to me your while condition is not logical.

  • Mutiple Objects , single file append

    Hi,
    I am getting UUIDs using the following Command:
    get-wmiobject Win32_ComputerSystemProduct  | Select-Object -ExpandProperty UUID (http://www.waynehoggett.com/2009/08/get-local-computer-uuidguid-using.html)
    how I can store the output on a network share that will append the itself if new record entered (UUID of a second machine)?
    Also, can we get serial number or MAC as well, to differentiate which UUID belongs to which machine?
    UUID         Serial           MAC
    1234          Sssssss        ABCD
    9876          Sxyz            A1B2C3
    N.A.Malik

    You would have to write a script that manages a file on the network
    Here is an example
    Get-WmiObject Win32_ComputerSystemProduct -computer system01 |
    select name,uuid,IdentifyingNumber |
    Export-Csv \\server\share\report.csv -append
    Start by learning the basics of PowerShell and how to use PowerShell to create custom output.
    Once you understand how to do the simple things you will be able to create your report.
    Start here:
    http://technet.microsoft.com/en-us/scriptcenter/dd793612.aspx
    ¯\_(ツ)_/¯

  • ODI file append with unix command problem

    Hi everyone,
    I will apennd multiple files to a main file in a directory.I wrote jython code like this:
    import os
    sourceDirectory = "/home/oracle1/Desktop/test"
    inFileNames = "#FILE_NAMES"
    inFileNamesList = inFileNames.split(" ")
    inFileIDS = *"'a','1','2','3'"*
    inFileIDSList = inFileIDS.split(",")
    i = 0
    for item in inFileNamesList:
         command ="awk 'BEGIN {OFS=\"" + "#FILE_DELIMITER\"" + "} {print $0,\"[|]\"" + *inFileIDSList* + ",\"[|]\"NR}' " + sourceDirectory + os.sep + item + " >> " + sourceDirectory + os.sep + "#SESS_CURR_TS"
         os.system(command)
         i = i + 1
    Now my problem is here :
    Yu can seee my inFileIDS values.Ana I have splitted comma and then first I will write file then *inFileIDSList[i]* and at the and NR
    But character a is not written.Number values is appended but character values is not appended.
    Why it can be so ?
    someone has an idea about this problem
    Coluld anyone help me to solve this problem?
    Regards

    import os
    sourceDirectory = "#SOURCE_DIRECTORY"
    inFileNames = "#FILE_NAMES"
    inFileNamesList = inFileNames.split(" ")
    inFileIDS = "#FILE_IDS"
    inFileIDSList = inFileIDS.split(",")
    i = 0
    for item in inFileNamesList:
         command ="awk 'BEGIN {OFS=\"" + "#FILE_DELIMITER\"" + "} {print $0,\"\"*FILENAME*}' " + sourceDirectory + os.sep + item + " >> " + sourceDirectory + os.sep + "#SESS_CURR_TS"
         os.system(command)
         i = i + 1
    My original code is above.Now I am printing file datas and I want to print file name that are being ready.
    First print$0(all line) and field_delimiter(;) and then I will print filename which file is processed.My output file will be like this:
    all line;FILENAME
    But I write FILENAME into awk command it returns with path .So for example likie this:/d102/odi/uca/arrival/data/T02344903302310.txt .But I want to print only file name without paths.
    I want to print T02344903302310.txt so my output file will be like this:
    all_line;T02344903302310.txt and there are many files like this.
    Could anyone has an idea?

  • Column header for file append ?

    My output txt file is getting appended eachtime. If i need to have my column header, everytime the data is appended the header is added as new line as well. I use parameter 'Data.addHeaderLine = 1' on my FCC.
    Current:
    H1                H2                  H3      
    8810             0000054270    0000166909 
    H1                H2                  H3
    5410         0000054072    A1857276
    Actual
    H1                H2                  H3
    8810             0000054270    0000166909 
    5410         0000054072    A1857276

    How is your outbound message structured ?
    Are these two messages which are getting appended on the receiving end. If it is, check the receiver file adapter, which has options to create a new file than appending to existing file.

  • File Appends .xls Extension During Download

    Hi,
    I have a form which generates query results in a new window.
    The output is saved in the form of a .cvs file. The user then
    clicks on a link which opens up a dialog box prompting the user to
    either open the file or save it to disk. The title bar for this box
    has the name of the file, but it appends a .xls to the filename.
    For example, the file will be called PST_0001aajacksn1.cvs.xls.
    This causes the excel program to open up, but the results are
    bunched together in one row instead of individual rows. The file,
    itself, is saved in a temp directory without the .xls behind it .
    It does this in Netscape, but in IE it pulls up a formatted
    spreadsheet correctly.
    Here is the snippet of code:
    <cfif IsDefined("url.SiteType")>
    <cfset Variables.SiteType = url.SiteType>
    <cfelseif IsDefined("form.SiteType")>
    <cfelse>
    <cfset Variables.SiteType = "Z">
    </cfif>
    <cfset fprefix = "PST_" & #Session.this_sid# &
    "_">
    <cfset urlSiteTmp = "/webtmp/">
    <cfset redirLoc = "/web/tmp/BOOKS/">
    <cfquery name="getRptNbr"
    datasource="#application.datasource#">
    select bookRPTnextval RPTNBR
    from dual
    </cfquery>
    <cfset nextRpt =fprefix & #getRptNbr.RPTNBR# &
    ".csv">
    <cfquery name="getSite"
    datasource="#application.datasource#">
    select *
    from sites
    where site_seq_nbr = #url.site#
    </cfquery>
    Could someone help me figure this one out? It would be most
    appreciated. Thanks

    Hi,
    Have you tested with https and http websites both?
    For diving deeper, we would narrow this issue first.
    And then, using process monitor to capture the fault process, in my test, here is the result, we should check if there is anything wrong obviously during file creation:
    Alex Zhao
    TechNet Community Support

Maybe you are looking for

  • Can you make a quicktime movie from a uTube video?

    I can watch a particular UTube video on my computers (iMac, Macbook), but not on my iOS devices ('not available on this platform'). Is there a way to download this video in Quicktime, or .MOV etc. format?  I'd like to be able to share it with those w

  • HT201317 is there a way to view my photos if my phone was stolen and has been turned off?

    is there a way to view my photos if my phone was stolen and has been turned off?

  • Solution Manager migration to other host

    Hi, we have just started a SAP SolMan migration with the SAP migration process export and import. In the source system we have SolMan 7.01 both ABAP and Java, but also an Java instance of Redwoods CPS. We now encounter allot of problems when we run t

  • PGA Size

    Hi All, I have a little question, in our database configuration we have set the PGA size to 720 MB. I'm wondering do we need all this memory size?!! All our applications that connect to the database are using normal select and dml statements no use o

  • Change my country information

    Hello I got an photoshop subscription card at US and now i'm trying to install it at my computer in Brasil. How can I change my Country information in order to suceed? Tks