My page generates an Excel file but sometimes fails if the page loads to slowly...

I'm having a problem generating an Excel file using CF and
looping over a bunch of queries to get a table of data to display
to the user. This is slow but works fine except for an instance
recently where the page seems to be loading but after a few minutes
it stops and says "the page cannot be displayed". The error leads
me to believe it is a server error and not a CF error but I'm not
sure. I don't have timeout checked in my CF Admin so that should
mean that I can request pages for as long as I need to right?
I'm using the cfheader and cfcontent to dynamically generate
an Excel spreadsheet from my HTML. I tried using the cfflush tag
and that seemed to help since it pushes content to the browser
during the page load but it doesn't work with the cfheader and
cfcontent tags.
So then I tried using the cfsavecontent tag and then save the
HTML to a file but again I couldn't use the cfflush tag inside the
cfsavecontent tag so now I'm stuck.
The page DOES load when I run in on my local machine with MX
6.1 Developer Edition and SQL Server Personal Edition. It DOES NOT
work when I run it on my production server that then calls my
separate database server. I'm wondering if there is a timeout (non
CF) set somewhere on the productions server or the database server
or if there is some sort of limit to the amount of data you can
transfer between servers?
I'm totally stumped now so any advice is greatly
appreciated!

That didn't work for me and the page times out right about 5
minutes (300 seconds). I don't have timeout checked in the CF
Administrator so I don't think it is CF that is causing the
timeout. I checked IIS also and the timeout is set to 900 seconds.
Is there a possibility that SQL Server has some sort of
connection limit and I'm using too many cfquery tags? If anyone has
experienced a similar problem I would really appreciate the help,
thanks.

Similar Messages

  • I want to create a document/spreadsheet (whichever) that I can send to agencies to type in information for work projects. Any ideas? I have an Excel file but it does not convert over very well and I am having trouble making changes to it.

    Need to create a new spreadsheet or be able to edit the one I have.
    I use this spreadsheet as a work order form for social service agencies. They enter name address etc., and then there are various work projects that they can select as well.
    The one I have from the organization I work with is an excel file but it does not convert over very well. Instead of being 7 pages it is more like 11 or so because things run off the page.  I am trying to delete certain things and move them over but not working out very well so thought it might be easier to start over fresh.
    Is numbers the program to use? If so, any useful tips?

    If the form is going to be used on an iPad, Numbers is the only game in town.
    Numbers is available for Macs only (and iOS devices). Excel is available for PCs and Macs. If you are in a mixed environment of Windows PCs and Macs and you are using this document as an electronic form, Excel is probably the better choice. Otherwise you will need to export to Excel for the PC users then import from Excel to retrieve their data. The import/export process is not perfect. A file that has been exported then reimported will not be the same as the original file. I would assume social services agencies are almost entirely PC-based. 
    If the form is to be printed or turned into a PDF for distribution and use by the social services agencies, either Excel or Numbers would do the job but right now Excel might be the better choice. I would have recommended Numbers '09 but I cannot recommend Numbers 3 for anything thsat requires printing until they give us the layout and printing functionality we used to have (editing in Print View, ability to set margins, etc).
    If everything else in your department/operation/agency is Windows PC and Microsoft Office based, you would be better off sticking with the standard.
    I hope that helps.

  • Need to send a dashboard page as an excel file in an iBot

    Hi,
    Is it possible to send a whole dashboard page as an excel file in an iBot/agent?
    We're using OBIEE 11.1.1.5.0 and have a requirement where different users need to access the dashboard pages via excel. Most of the pages have multiple requests and some also have charts.
    The other alternative that we looked at is using the MSOffice plugin but even with that i'm only able to access the individual requests one at a time but not the dashboard page.
    Thanks!!

    I think I found a workaround that resolves our issue: I send the dashboard page as an html attachment in an iBot and then open it with excel once received (open with).
    Thanks for your replies..

  • Can I use then Forms 6i DDE build-in package to generate 2010 EXCEL  File?

    Hi All,
    My company' application is used Oracle FORMS 6i Solution,Client /Server environment to generated EXCEL file
    I coding the PL/SQL in the Oracle FORM , it's succeed generated EXCEL file in MS office Excel 2007/2003/2000.
    Now I have problem in MS office Excel 2010 , It's just open the Excel file but no data can write into excel file,
    It's always raise the error exception "dde.dmlerr_no_conv_established"
    some one can help me,thanks !!
    my pl/sql code wrote in Button Item's trigger WHEN-BUTTON-PRESSED
    declare
    obj ole2.obj_type;
    path varchar2(256);
    p_excel_path varchar2(255);
    appid pls_integer;
    convid pls_integer;
    begin
    begin
    obj := ole2.create_obj('excel.application');
    path := ole2.get_char_property(obj,'path');
    ole2.release_obj(obj);
    ole2.invoke(obj,'quit');
    exception
    when others then
    message('office excel not found!');
    return;
    end;
    p_excel_path := path||'\excel.exe';
    synchronize;
    appid := dde.app_begin(p_excel_path, dde.app_mode_normal);
    dde.app_focus(appid);
    convid := dde.initiate('excel','book1');
    dde.poke(convid,'r1c1','abc',dde.cf_text,100000);
    dde.poke(convid,'r2c2','abc',dde.cf_text,100000);
    exception
    when dde.dmlerr_no_conv_established then
    message('dmlerr_no_conv_established');
    raise form_trigger_failure;
    when others then
    null;
    end;
    帖子经 Ronald Wang编辑过

    Hi all,
    I can understand what you say, and I know the Forms version is very old ,but I don't know how to explained to my boss,
    My boos always say : Delphi can export data to Excel until now!...
    I always say : I will upgrade my Forms version......
    Because my company use Oracle EBS r12 ,the technical based on Oracle FORM/Report 10g
    I tried to install the OAS 10g ,but the 10g server is unstable....
    Then I thinking to upgrade the Form 6i to Form 11g.....,what are you think it's feasibility??
    My OS version is windows XP.....
    BTW...some Oracle Rport 6i can't not preview in Windows 7 's platform,but not all........Orz
    In XP platform ,all Report preview is well...
    Edited by: Ronald Wang on 2011/5/26 下午 6:23

  • I saved my Form Central spreadsheet file once as a excel file but it will not allow me to save it a second time as an excel file.  It says that I cannot complete this action because the file me be open in another application, but it is not open in another

    I saved my Form Central spreadsheet file once as a excel file but Forms Central will not allow me to save the file a second time as an excel file.  I am informed that I cannot complete this action because the file me be open in another application, but it is not open in another application. What is the problem, and how do I solve the problem.  Thank you. Jeff

    First check the version of the document with Jongware's script "Identify.jsx" (ExtendScript/JavaScript).
    You can find it here:
    [Ann] Identify Your InDesign File
    If it is CS 5.5 or above, you need someone to open it in the version the script says and export an IDML representation from that. Another way would be to install a 30days version of CS6 or above (CC) and do it yourself.
    In regards of the script showing a result for InDesign files higher than CS6:
    CS7 = CC v9
    CS8 = CC v10 = CC-2014 or CC2014.1
    Uwe

  • I have tried to vonvert a PDF file to an excell file, but it appears to still be a PDF.

    I have tried to vonvert a PDF file to an excell file, but it appears to still be a PDF.

    If you have a mac, when you Sync your iphone, it will automaticly Sync your contacts to Adress book on the Mac. If this is not the case, you can take a look in iCloud, maybe you have backed them up there.
    This is not a problem caused by iOS6, but by iCloud... it has happend to alot of people, its due to pressing the wrong OK or CANCEL button at a certain pop-up.
    Good luck

  • I need to read Pages files but  I can't install Pages on osx 10.6

    I  need to read Pages files, but I can't install Pages because I have OSX 10.6.  Is there some version that will work?

    You can get iWork 09 on the net. You haven't had Pages before? Who is sending you Pages documents? Ask them to export the document to Word or Rtf and you will be able to read the documents in TextEdit, which you have on your computer

  • Poi hssf api to generate MS-Excel file

    I am using apache's poi hssf api to generate an excel file. Is there any way I can FREEZE PANES of excel sheet.
    thanks,
    Pramod

    You're wanting to make certain areas of your spreadsheet un-editable, yes? POI currently does not support this, as mentioned in the FAQ: http://jakarta.apache.org/poi/faq.html#faq-5 .

  • Generate an excel file of a query automaticaly on weekly basis

    Hi
    I have a requirement like I need to automatically generate
    and excel file from BW query.
    and send it to the user. we are currently on SAP BW 3.0bversion.
    I have seen RSCRM_BAPI  will it be possible to use it.
    If so if someone did this earlier?
    please guide me.
    Thanks in advance
    Cheers
    Ajay

    Hi Ajax,
    As I know APD tool is available from 3.5 release. You can find documents on APD always on www.service.sap.com/bi.
    About reporting agent you have 4 option for precalculate data: HTML for mobile - HTML normal - Data (in this case you only produce data for WEB reporting - Excel (with this option you produce file in MS-Excel that you can subsequently download on your PC or on Network with the Download Scheduler under Start --> Business Explorer --> Download Scheduler).
    Ciao.
    Riccardo.

  • Create excel file in document library from the data in datatable

    Hi ,
    I want to generate files dynamically and have then saved to my documetn library instead of  some location on the  harddisk.
    I want to generate and excel file  which will read data from the sharepoint list.
    Form that data excel will be genereated in the code ,and i want the generated excel directly available in the  document library.
    I could use open xml of excel itneroperablity for the excel file generation.
    How can i do that.

    Hi,
    According to your description, you might want to gather data from a SharePoint list as an excel file and upload it to a Document Library.
    As you said, you can generate an Excel file using the Open XML SDK, I will provide some information about how to get data from SharePoint list and how to upload files
    to a Document Library.
    About the retrieving data from a SharePoint list, we can use SharePoint Object Model:
    SharePoint Object Model -
    SPListItem class
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.splistitem.aspx 
    Add, Update and Delete List Items Programmatically in SharePoint
    http://www.mindfiresolutions.com/Add-Update-and-Delete-List-Items-Programmatically-in-Sharepoint-372.php 
    About
    How to: Upload a File to a SharePoint Site from a Local Folder:
    https://msdn.microsoft.com/en-us/library/office/ms454491(v=office.14).aspx
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support,
    contact [email protected]
    Patrick Liang
    TechNet Community Support

  • Please Help.  compare two excel files.  Can't get the find command to work

    Hello, I'm new to applescript.  I'm trying to write a script to compare column B of one excel file to column B of the another excel file.
    I will have to had a repeat loop to proceed down the column but I'm stuck on the find command. 
    Below is some of the code I have so far.  The applescript error message is "Microsoft Excel got an error: The object you are trying to access does not exist. It highlights the find column." 
    set patientFile to choose file with prompt "Please select the patient Excel file:"
    set patientName to name of (info for patientFile)
    tell application "Microsoft Excel"
    open patientFile
    set thepatientFile to workbook patientName
    end tell
    display dialog "Is your patient SNP data in column B of the " & " " & patientName & " " & "excel file?" buttons {"No", "Yes"} default button 2
    if the button returned of the result is "No" then
    display dialog "Please put your data in column B" buttons {"Cancel"} default button 1
    if the button returned of the result is "Cancel" then
    end if
    else
    display dialog "Is column E empty? The results of this program will be stored in column E of the" & " " & patientName & " " & "excel file." buttons {"No", "Yes"} default button 2
    if the button returned of the result is "No" then
      display dialog "Please put your data in empty column E" buttons {"Cancel"} default button 1
      if the button returned of the result is "Cancel" then
      end if
    else
      set relativeFile to choose file with prompt "Please select the relative Excel file:"
      set relativeName to name of (info for relativeFile)
      tell application "Microsoft Excel"
      open relativeFile
      set therelativeFile to workbook relativeName
      end tell
    end if
    end if
    display dialog "Is your relative SNP data in column B of the" & " " & relativeName & " " & "excel file?" buttons {"No", "Yes"} default button 2
    if the button returned of the result is "No" then
    display dialog "Please put your data in column B" buttons {"Cancel"} default button 1
    if the button returned of the result is "Cancel" then
    end if
    else
    display dialog "Does column C contain the result data you would like copied from" & " " & relativeName & " " & "excel file?" buttons {"No", "Yes"} default button 2
    if the button returned of the result is "No" then
      display dialog "Please put the data you would like copied in column C." buttons {"Cancel"} default button 1
      if the button returned of the result is "Cancel" then
      end if
    else
      tell application "Microsoft Excel"
      activate object workbook patientName
      copy value of cell "A1" to cellPatientFile
      find (range "B:B" of workbook relativeName) what cellPatientFile
      if cellPatientFile is true then
      set bold of font object of cellPatientFile to true
      end if
      end tell
    end if
    end if
    Does any one have any hints towards solving this problem?  Thank you for any help.

    Hi,
    taffners wrote:
    Thank you everyone for your help.  I attached my code.  It works now but kinda slow.  Does anyone have any hints on making it faster.
    Important : when you use the find command, it's preferable to use the properties ( look in and look at).
    Example : find searchRange what searchTerm look in values look at whole
    Otherwise, it will search according to the criteria of your last find.
    Example, if you uncheck 'Find entire cells only', and after that you run the script,
    find column 2 what 10.0 -->  match 110.0 or 1110.0 or 310.0, .... , because it look at part.
    set screen updating to false : Yes it improves the speed.
    Here are my tests (no duplicate values in the Excel column ) on old computer (Powermac G5) .
    set screen updating to false without any activate object command
    2000 rows --> 3.7 minutes,  your script : 11.5 minutes
    4000 rows --> 7.5 minutes, your script : 23 minutes
    8000 rows --> 15 minutes,  your script : 46 minutes
    But, it's faster to search through a list without using the Excel find command, no need to set the screen updating, You can continue working on the workbook or another workbook, this will not disturb the script.
    Tests on my script :
    2000 rows --> 4 seconds
    4000 rows --> 21 seconds
    8000 rows --> 1.3 minutes
    17000 rows --> 6 minutes
    Here is the script :
    main()
    display dialog "Done"
    on main()
          script o
                property patientSNP_list : {}
                property relativeSNP_list : {}
                property resultsList : {}
                property copyAnswerList : {}
                on findLookAtWhole(value) -- case sensitive
                      set {low, high} to {1, count my relativeSNP_list}
                      considering case
                            repeat while low ≠ high
                                  set mid_ to (low + high) div 2
                                  if value is in items low thru mid_ of my relativeSNP_list then
                                        set high to mid_
                                  else
                                        set low to mid_ + 1
                                  end if
                            end repeat
                      end considering
                      if (item low of my relativeSNP_list is value) then
                            set end of my resultsList to item low of my copyAnswerList
                      else
                            set end of my resultsList to {"no"}
                      end if
                end findLookAtWhole
          end script
          --opens File1.  Names it patientName
          set patientFile to choose file with prompt "Please select the patient Excel file:"
          set patientName to name of (info for patientFile)
          tell application "Microsoft Excel"
                open patientFile
                set thepatientFile to workbook patientName
                set patientSheet to sheet (name of active sheet) of thepatientFile
          end tell
          --This Dialog assigns where the data is stored for file1
          display dialog "What Column is your patient SNP data of the " & " " & patientName & " " & "excel file?" default answer "" buttons {"submit"} default button 1
          set PatientSNPCol to (text returned of the result)
          --This Dialog assigns what row your data starts at for file1
          display dialog "What row does your patient SNP data start in the " & " " & patientName & " " & "excel file?" default answer "" buttons {"submit"} default button 1
          set patientSNPRow to (text returned of the result)
          set patientStartCell to PatientSNPCol & patientSNPRow
          --This Dialog assigns the last row of data for file1
          display dialog "What row is the last row of you patient SNP data start of the " & " " & patientName & " " & "excel file?" default answer "" buttons {"submit"} default button 1
          set patientLastRow to (text returned of the result)
          set patientLastCell to PatientSNPCol & patientLastRow
          --This Dialog assigns the location of the data copied from file2
          display dialog "What column would you like the results of this program stored in of the" & " " & patientName & " " & "excel file." default answer "" buttons {"submit"} default button 1
          set resultsLocation to (text returned of the result)
          --opens File2.  Names it relativeName
          set relativeFile to choose file with prompt "Please select the relative Excel file:"
          set relativeName to name of (info for relativeFile)
          tell application "Microsoft Excel"
                open relativeFile
                set therelativeFile to workbook relativeName
                set relativeSheet to sheet (name of active sheet) of therelativeFile
          end tell
          --This dialog assigns the column of data in file2
          display dialog "What Column is your relative SNP data of the " & " " & relativeName & " " & "excel file?" default answer "" buttons {"submit"} default button 1
          set relativeSNPCol to (text returned of the result)
          --This dialog assigns the column of data begining copied to excel file1.
          display dialog "What Column contains the data you would like copied to the " & " " & patientName & " " & "excel file in column" & " " & resultsLocation & " " & "?" default answer "" buttons {"submit"} default button 1
          set copyAnswer to (text returned of the result)
          tell application "Microsoft Excel" -- get values
                set o's patientSNP_list to value of range (PatientSNPCol & patientSNPRow & ":" & PatientSNPCol & patientLastRow) of patientSheet
                set lastrow to first row index of (last cell of used range of relativeSheet)
                set o's relativeSNP_list to value of range (relativeSNPCol & "1:" & relativeSNPCol & lastrow) of relativeSheet
                set o's copyAnswerList to value of range (copyAnswer & "1:" & copyAnswer & lastrow) of relativeSheet
          end tell
          set tc to (count o's relativeSNP_list)
          repeat with i from 1 to tc --convert list of lists to one list
                set item i of o's relativeSNP_list to item 1 of item i of o's relativeSNP_list
          end repeat
          set tc to (count o's patientSNP_list)
          repeat with i from 1 to tc -- AppleScript find method, not the Excel Find
                o's findLookAtWhole(item 1 of (item i of o's patientSNP_list))
          end repeat
          tell application "Microsoft Excel" -- set values
                set value of range (resultsLocation & patientSNPRow & ":" & resultsLocation & patientLastRow) of patientSheet to o's resultsList
          end tell
    end main
    If you have lots of rows and you want it to go faster.
    I have another script that uses the power of (/usr/bin/awk and his associative arrays) in a do shell script
    17000 rows --> awk : 2 seconds, applescript : 6 seconds, total : 8 seconds
    34000 rows --> awk : 3 seconds, applescript : 11 seconds, total : 14 seconds

  • I have an older Sony digital camcorder, and I am having trouble importing the movie files. Sometimes I get the audio in iTunes without the picture. I have a Pinnacle Dazzle interface. What am I doing wrong. Is there a way to skip the dazzle device?

    I have an older Sony digital camcorder, and I am having trouble importing the movie files. Sometimes I get the audio in iTunes without the picture. I have a Pinnacle Dazzle interface. What am I doing wrong. Is there a way to skip the dazzle device?

    Chances are the pinnacle is producing .avi files or MPEFG1/2 streams - iTunes may know how to decode the audio but not the video. Download Handbrake and try running the Pinnacle files through it and adding to iTunes - use Universal format unless you have a specific device in mind.
    Keep copies of the originals.
    Another option might be to try to install Perian.  Can't remember if the Apple MPEG2 plugin allows MPEG2 to be played in iTunes.
    AC

  • How to Load the data from excel file(Extension is .CSV) into the temp.table

    Hi
    How to Load the data from excel file(Extension is .CSV) into the temporary table of oracle in Forms11g.
    My Forms Version is - Forms [64 Bit] Version 11.1.2.0.0 (Production)
    Kindly Suggest the Solution.
    Regards,
    Sachin

    Hello Sachin,
    You can use the following metalink note:How to Read Data from an EXCEL Spreadsheet into a Form Using Webutil Client_OLE2 (Doc ID 813535.1) and modify it a little bit.
    Instead of copy values into forms you can save them in your temporary table.
    Kind regards,
    Alex
    If someone's helpful or correct please mark it accordingly.

  • Adapter Module Error-Sending excel file as an attachment of the mail

    Hi ,
    My scenario is as follows
    1)I am sending an excel file as an attachment of the mail.I need to read that excel attachment as a payload.
    So mail adapter is used in sender side.
      To configure this, have used standard PayloadSwapBean  module with proper module key.
      Next to convert excel to XML another custom adapter module is being used.
    Both this adapter module , I configured into the CC of sender mail adapter.
    The order in which adapter modules are being used in the sender CC are as follows
    1)localejbs/AF_Modules/PayloadSwapBean
    2)localejbs/MDPExcelToXMLConversion
    3)sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
    MDPExcelToXMLConversion-Custom adapter module written to convert excel to xml.
    I am getting the following error
    exception caught during processing mail message [4899]com.sap.aii.af.lib.mp.module.ModuleException
    And also,
    no messages in coming MONI of PI.
    Pls suggest what to do.
    Thanks
    Ayan

    Shabarish,
    Will the ordering in which the adapter modules(In this case there are two-PayloadSwapBean & MDPExcelToXML) are appearing into Module tab of sender adapter matter?
    Firstly, what is happenning
    1)If I take out the custom  adapter module MDPExcelToXML and put only PayloadSwapBean  then it is successfully converting mail attachment into the main Payload i.e PayloadSwapBean   module is working.
    2)Nextly, my local code( i.e java code without including standard Module specific method like ejbActivate(),ejbPassivate(),process()  etc etc.)) for MDPExcelToXML is successfuly converting the excel file into the XML file.Then I am making the local code into adapter module specific code and deploying that.
    A few question arises here,
    Do I need to do any specific configurations here in PI for this particular things.Maybe both the adapter module is clashing with each other.
    And also using tracing and logging into my custom adapter module code.Getting the following error,
    java.io.IOException: Unable to read entire header; 116 bytes read; expected 512 bytes#
    Thanks
    Ayan

  • How do I set a specific page to open when I open a new tab in Firefox? I can open the page when initially opening Firefox, but not for subsequent tabs/pages.

    How do I set a specific page to open when I open a new tab in Firefox? I can open the page when initially opening Firefox, but not for subsequent tabs/pages.

    You can use an extension to set which page to open in a new tab:
    *NewTabURL : https://addons.mozilla.org/firefox/addon/newtaburl/
    *My Homepage: https://addons.mozilla.org/firefox/addon/my-homepage/

Maybe you are looking for

  • Keynote 6.0 Play Slideshow from Beginning

    Is there a way to play from the beginning of the presentation other than selecting the first slide? Was hold down option key and press play button in 5.3.

  • Off-center Printouts in Mac OS X V10.5

    All print outs are shifted to the left. Word, Appleworks, Mail, Websites everything

  • IPhoto undoes my manual album sort

    Hi, after I had to rebuild my iPhoto library, there is now a behavior I've not seen before: After (spending much time) manually sorting folders and albums (albums chronologically inside folders), after closing and re-opening iPhoto, the sequence is m

  • Matrix Footer

    Hi to All, I had created a  user screen with matrix..The matrix contains the calculation part..All the values of the particular column should be added and it should be displayed in the footer area of the matrix..(For Ex) MainMenu --> Reports --> Quer

  • Spry:State and PagedView

    Dear Member, hope that somebody can help me this time.. I am using spry, and a lot of trick to make it work. The spry:state="loading" options don't wanna work for me it's only work if i don't use the PagedView... Here the simple code I have a simple