10g exporting to CSV using client_text_io is not working correctly.

I have an odd issue which i could do with some help with. I run an function that exports to CSV based on an pre defined record group.
This has been working fine for many months with various customers. Recently a new customer used it and they have 28k rows in his record group and the export is actually not exporting correctly.
The record group has a record count of 28331.
The CSV produced has only 3756 in my CSV file. These are the last 3756 records in the Record group so its as if its overwriting the data as it goes yet all smaller datasets work
FUNCTION fun_export_csv (vgraphid NUMBER, p_filename VARCHAR2)RETURN BOOLEAN IS
  out_file                      client_text_io.file_type; 
     i                                             NUMBER;
  lv_line              VARCHAR2(5000);
BEGIN
rg:=populate_group('RG11_EXP');               
synchronize;
lv_line:= ('"GIN","Gin Date","PO Num","PO Required Date","Mat Num","Mat Description","Supplier Part No","On Time Delivery(Yes-1, No-0)"');
client_text_io.put(out_file, lv_line);
client_text_io.new_line(out_file,1); 
For i in 1..get_group_row_count('RG11_EXP') Loop--this count is 28331
lv_line:= ('"'||get_group_number_cell('RG11_EXP.col1', i )                 ||'"'|| ',' ||'"'||
     get_group_date_cell('RG11_EXP.grn_date', i )                 ||'"'|| ',' ||'"'||                                          
     get_group_number_cell('RG11_EXP.po', i )       ||'"'|| ',' ||'"'||
     get_group_date_cell('RG11_EXP.daterqd', i ) ||'"'|| ',' ||'"'||
     get_group_char_cell('RG11_EXP.item_no', i ) ||'"'|| ',' ||'"'||
     get_group_char_cell('RG11_EXP.desc', i )                    ||'"'|| ',' ||'"'||
     get_group_char_cell('RG11_EXP.part_no', i )               ||'"'|| ',' ||'"'||
     get_group_number_cell('RG11_EXP.ontime', i )                    ||'"');
client_text_io.put(out_file, lv_line);
client_text_io.new_line(out_file,1); 
END LOOP;     
client_text_io.FCLOSE(out_file);
RETURN TRUE;          

Hello,
Try to insert a "synchronize" instruction from time to time:
i  pls_integer := 1;
Loop
  If mod(i, 500) = 0 Then
     synchronize;
  End if ;
  i := i + 1 ;
End loop;
...<p>But keep in mind the the CLIENT_TEXT_IO generate a lot of network traffic, so it is better and faster to generate the file on the A.S., then after transfer it to the client machine.</p>
Francois

Similar Messages

  • Crystal report 8.5 export to csv and rtf format not working with office 2013

    Hi Experts,
    Crystal report version 8.5 hangs and eventually crash when i export my report to csv or rtf format on windows 7 with office 2013 installed, code is written in VB 6 although the same scenario is working with office 2010 installed.
    i debugged the code and found the application hangs at function Report.Export(False).
    below is the code snippet
           .PDFExportAllPages = True 'ePDFExportAllPages
           .PDFFirstPageNumber = ePDFFirstPageNumber
           .PDFLastPageNumber = ePDFLastPageNumber
           .RTFExportAllPages = True 'eRTFExportAllPages
           .RTFFirstPageNumber = eRTFFirstPageNumber
           .RTFLastPageNumber = eRTFLastPageNumber
           .UseReportDateFormat = eUseReportDateFormat
           .UseReportNumberFormat = eUseReportNumberFormat
           .UseReportNumberFormat = eUseReportNumberFormat
           .XMLAllowMultipleFiles = eXMLAllowMultipleFiles
           .XMLFileName = eXMLFileName
           Report.Export (False) ----Application hangs here and eventually crash
    Looking forward for your help, as it is very urgent
    Regards
    Mohit

    Hi Mohit
    CR 8.5, being about 15 years old, does not support Windows 7. I am surprised this works for you with MS Office 2010 and to be honest, I'd consider my self lucky there. The fact that is does not work with office 2013... well, like I said, lucky with Office 2010 and your luck ran out with Office 2013.
    Your option; rewrite the app in VS 2010 / 2012 / 2013 and use the CR Assemblies for VS .NET from SAP Crystal Reports, Developer Version for Visual Studio .NET. The CR Java SDK would be another option.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Purchased Motion backgrounds to use in FCE - not working correctly!

    Hi there,
    Perhaps someone can help me. I ordered some motion backgrounds from actionbacks.com and have been trying to use them in FCE. These backgrounds are meant to loop seamlessly when they are stacked side by side...
    When i drag one into the timeline, copy it and put the copied one next to it they are seamless and look very nice. But as soon as I add a video to the timeline above the background and render it, i am getting a black flash that happens inbetween the two looped backgrounds. Tech support for the product says it sounds like a Final Cut Express issue. Any insight anyone?
    Thanks a lot,
    Karen

    Hello Tom - Sorry for the very long delay in getting back to you on this. My Aunt passed away and I haven't been back to my computer for some time... I just launched this problem again and found where we left off. (Hopefully you don't mind re-examining this issue with me after so long).
    To answer your last question, yes, when I exported a quicktime self-contained movie of the loops stacked side by side, i still get the black flicker. I see it when i watch it in QT and also when I re-import it into FCE. I even see it before I ever add a video clip to V2!
    Yes, I can put the loops side by side on the timeline and play them and I don't see the black flash. It seems that I only see the flicker when I render (after placing the video on V2) OR when I export the loop as a QT movie.
    Any more thoughts on this? Actionbacks is a very reputable company... I know this problem must be on my end, otherwise they wouldn't stay in business!
    Thanks for any additional help you may be able to offer.
    Karen

  • Trim Tool Using Merged Clips Not Working Correctly

    I have a project that's made up of mostly merged Alexa clips. The camera spits out ProRes422 clips along with WAV audio files that were merged in Final Cut pro. The problem is that when I try to trim using the Trim tool, it will kick the footage in the viewer several seconds away from the frame I'm trying to trim. It's fine when it's in the sequence, but I can't view the frames I'm trimming in the viewer windows. For example, it will say that the "In Shift" is + or - 4:10 when it should only be reading :01 at a time.
    Any ideas why this would happen and how to fix it?
    Thanks,
    Eddie

    You may not be zoomed in enough in the Timeline window, the more you zoom in, the more detailed edit you can perform. Zoom out too much, and you won't have the sensitivity.

  • Export option in Apps menu is not working

    Hi all
    Since yesterday,it seems our export on Oracle apps is not workin.
    Both exports on Application and export when doing File-Export from Concurrent Request are not working.
    The action seems initiated but no error and no popup window is displayed.
    Usually a popup window should tell us to open or save file.But this is not the case.
    Thanks for your help,

    hi
    check
    Export the Form Data to Excel File using FILE > EXPORT
    and
    Export option in Apps menu is not working in Windows-XP OS
    fadi

  • After installing iPhone Configutilities in my Mac, Personal Hotspot using USB is not working! Please help, I am using 10.7 Lion OS

    After installing iPhone Configutilities in my Mac, Personal Hotspot using USB is not working! Please help, I am using 10.7 Lion OS

    Did you talk to your carrier?

  • I am using a Application in c dll calling from jni jar by java applet in firefox version 19.0 , the problem is click event message box will not working correct

    I am using a Application in c dll calling from jni jar by java applet in firefox version 19.0 , the problem is button click event message box or popup window will not working correctly. Please any one suggest me the steps to overcome this not responding or slowness in the responding problem of Button click event.

    Hello,
    In Firefox 23, as part of an effort to simplify the Firefox options set and protect users from unintentially damaging their Firefox, the option to disable JavaScript was removed from the Firefox Options window.
    However, the option to disable JavaScript was not removed from Firefox entirely. You can still access it from about:config or by installing an add-on.
    '''about:config'''
    # In the address bar, type "about:config" (with no quotes), and press Enter.
    # Click "I'll be careful, I promise"
    # In the search bar, search for "javascript.enabled" (with no quotes).
    # Right click the result named "javascript.enabled" and click "Toggle". JavaScript is now disabled.
    To Re-enable JavaScript, repeat these steps.
    '''Add-ons'''
    You can alternatively install an add-on that lets you disable JavaScript, such as
    *[https://addons.mozilla.org/firefox/addon/noscript/ No-Script] (to disable JavaScript on a per page basis, as required)
    *[https://addons.mozilla.org/firefox/addon/quickjava/ QuickJava] (to easily disable and enable JavaScript, automatic loading of images, and other content)
    Thank you and I hope this helps!

  • HT2216 I am on OSX 10.7.5 and recently had to reinstall it due to 'mail' not working correctly.  That problem was resolved but now my I can't use the 'right click' function on the apple usb mouse.  Any clues?

    I am on OSX 10.7.5 and recently had to reinstall it due to 'mail' not working correctly.  That problem was resolved but now my I can't use the 'right click' function on the apple usb mouse.  I only have a previous version re-install disc as I bought the latest OSX off the app store.  Any help gratefully received?

    Hmmm, no, no drivers needed, now it sounds like a bad install... unless you might have some old Mouse software installed???
    If 10.7.0 or later...
    Bootup holding CMD+r, or the Option/alt key to boot from the Restore partition & use Disk Utility from there to Repair the Disk, then Repair Permissions.
    If that doesn't help Reinstall the OS.

  • Windows Server 2012 - Printing using UNC path not working

    Hi,
    I have a problem printing using the printer's UNC path ("\\Server_Name\Printer_Hostname") to work with a web
    app hosted on IIS 8. With a windows forms application the UNC path is working fine and the app prints.
    With
    the web app I receive an error "The data area passed to a system call is tool small". 
    Also,
    in the event viewer under Applications and Services Logs -> Microsoft -> PrintService -> Operational, I receive the error "The print spooler failed to reopen an existing printer connection because it could not read the configuration information
    from the registry key S-1-5-82-1980832875-2702362896-1795126167-3622310632-1152289074\Printers\Connections. The print spooler could not open the registry key. This can occur if the registry key is corrupt or missing, or if the registry recently became unavailable."

    I have contacted IIS forum support.
    Please review the link: http://forums.iis.net/p/1213109/2079229.aspx?Re+Windows+Server+2012+Printing+using+UNC+path+not+working
    Their final response:
    Printing from ASP.NET using System.Drawing.Printing itself is a horrible approach, as this namespace was designed for Windows Forms only. The designers did not take everything about ASP.NET in mind, so any issue can happen. That can answer why the HP model
    works while the Samsung fails, as the HP one just "happens
    to work",
    http://msdn.microsoft.com/en-us/library/system.drawing.printing.printdocument.aspx
    Similarly, System.Printing was designed just for WPF.
    About which printing API to use in ASP.NET/IIS, there is no clear answer so far. Thus, your only resource is Microsoft support, who can perform further analysis (with their dedicate utilities and of course Windows source code) and might come across a solution
    to help you out. This is not a trivial scenario.

  • Where used list is not working for IMG nodes/Document   in solar01

    hi experts
    In template project , we are using same IMG objects in different business processes and subsequent configuration document is attached to each IMG node in configuration tab.  ( like same IMG node  -  define order types used in different business process configuration tab )
    when i use " where used list " from the configuration tab , its not showing the IMG objects  used in different business processes in the same project. whereas its showing the IMG nodes used in the different project.
    I need to find out the same IMG objects/ document  used in the same project using the " Where used list " button.
    Please provide your answers
    Note : we have linked one configuration document to same IMG nodes used in different business. " where used list " also not working for documents as well
    Thanks
    Sol man

    Hello there,
    I just tried some tests and couldn't face any problem with locating other usages for the objects in configuration tab.
    You mentioned a configuration document, so have in mind that the document usage will only be considered if it is a link to the same document and not just a copy.
    e.g:
    Here I created a document in this node:
    Then I added it as a link here:
    and as a copy here:
    When I go back to the original node and use the where-used, it'll only show the original and the link:
    This happens because after copying a document, it is considered as a new one instead of another usage of the original one.
    best regards,
    Fabricius

  • Web Template - Variable & Export to Excel Web Items are not working

    Hi Experts,
    In a Web Report & Web Template Variable & Export to Excel Web Items are not working ; Any body have any idead ?
    Do i need to write any HTML code to funtion those web items.
    Thanks
    KAruna

    Dear Karuna,
    Review your default template. Probably is 0ANALYSIS_PATTERN.
    Reactive the version D and check again.
    Also, you are able to modify the webitems on Export to Excel on 'BUTTON_TOOLBAR_2' -> Button list number  4.
    And, you are able to check the 0ANALYSIS_PATTERN_EXPORT, in case of configuration.
    If you want to remove/add new items, I suggest you to save as another name. SAP does not allow to modify delivered objects
    ex:. 0Objects.
    Best Regards,
    Edward S. John

  • I keep getting a message that my ipad could not be activated because activation server is unavailable and when i try to use itune its not working as well.Plssss help

    i keep getting a message that my ipad could not be activated because activation server is unavailable and when i try to use itune its not working as well.Plssss help

    Has this iPad ever been jailbroken, had the OS rolled back, or used a beta version?

  • I upgraded to 6.02 and still get this message from Gmail: "You are using an old version of Firefox which Gmail no longer supports. Some features may not work correctly. Upgrade to new version."

    When I opened Gmail in my Firefox browser, I got a message I've never seen, before: "You are using an old version of Firefox which Gmail no longer supports. Some features may not work correctly. Upgrade to new version." I clicked on upgrade to a new version and was taken to the Mozilla site, where I downloaded the latest version of Firefox... then, when I restarted my computer, Gmail still gives me the same message!! What's going on?

    Firefox 4 and later require at least OS X 10.5 and a Mac with an Intel processor.
    *http://www.mozilla.org/firefox/12.0/system-requirements/
    For an unofficial Firefox ESR 10.0.4 compatible version (TenFourFox) that runs on PowerPC Macs with OS X 10.4.11 or OS X 10.5.8 you can look at:
    *http://www.floodgap.com/software/tenfourfox/
    *http://www.macupdate.com/app/mac/37761/tenfourfox
    Be aware that TenFourFox doesn't support plugins.
    *http://code.google.com/p/tenfourfox/wiki/ReleaseNotes1004
    *http://code.google.com/p/tenfourfox/wiki/PluginsNoLongerSupported
    *http://code.google.com/p/tenfourfox/wiki/AAATheFAQ

  • Validations using OB28 is not working for GL posting using FB01

    Hi Experts,
    Validations using OB28 for posting using FB01 is not working.
    My requirement is after entering a line items and click post validations should be triggerd.
    i want to block a posting based on document type.
    i have maintained as below..
    Prerequisite.
    ( BKPF-TCODE = 'FB50' OR BKPF-TCODE = 'FB01' ) AND (
    BKPF-BUKRS = '1000' OR BKPF-BUKRS = '0001' OR
    BKPF-BUKRS = '0002' ) AND BKPF-BLART = 'XX'.
    check.
    Used userexit to check sy-ucomm = 'BU'  (for posting).
    entries are maintained in OB28 for relevant company codes.
    it is working for FB50 but not FB01.
    same thing i tried to maintain at header level as well as item level. but it is working only for FB50 but for FB01.
    Please help me.
    Regards.
    Venu.

    Hi Venu,
    Go to GGB0 and expand the navigation till you reach the validation name of line item level and choose menu item *Validation -> Simulate.
    Here you can enter the inputs, those you are entering while doing FB01 and execute it.
    Then in the results, you will have the log for each step of your total validation of line item level.
    Check , whether your questioned STEP's pre requisite is met and check is not fullfilled.
    Accordingly you can make the changes to the STEP.
    This info may help you.
    Regards,
    Srinivas

  • SSRS 2008 R2/SSRS 2012 Tab Delimited setup is not working correctly in Report Designer

    I have changed a RSReportDesigner.config to add a tab delimited option for report export, but it is not working correctly in vs2008/vs2010 report designer. I get a duplicate of CSV (comma delimited) in the export dropdown list.
    I have tested SSRS 2008 R2/SSRS 2012 on Windows 7 64 bit professional.
    It is working correctly in the report manager.
    <Extension Name="TAB" Type="Microsoft.ReportingServices.Rendering.DataRenderer.CsvReport,Microsoft.ReportingServices.DataRendering">
            <OverrideNames>
                <Name Language="en-US">TAB delimited</Name>
            </OverrideNames>
            <Configuration>
                <DeviceInfo>
                    <FieldDelimiter xml:space="preserve">&#9;</FieldDelimiter>
                    <Encoding>ASCII</Encoding>
                    <UseFormattedValues>False</UseFormattedValues>
                    <NoHeader>False</NoHeader>
                    <FileExtension>TXT</FileExtension>
                </DeviceInfo>
            </Configuration>
          </Extension>

    Hi Dave0323,
    According to your description, you want to export your report into TXT file and change the delimiter to be a Tab. Right?
    In Reporting Services, when exporting to a CSV file, we can change the default field delimiter to any character that we want, including TAB, by changing the device information settings in the configuration file. For example, to use TAB,
    update the FieldDelimiter setting to <FieldDelimiter xml:space="preserve">[TAB]</FieldDelimiter>. And we can change the FileExtension to be TXT if we want to export it into a TXT file. So in this scenario, we just need to modify the configuration
    file like below:
    The result looks like below:
    Reference:
    CSV Device Information Settings
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

Maybe you are looking for

  • Do I need to buy a licensed copy of windows 7 or 8 to install it on mac book air/pro 2013?

    I am planning to buy Mac Pro 2013 Retina display 13" and I need to know if I have to buy a windows 7 licensed software to install it on my Mac or does it come with boot camp? Also I would like to know if the windows I run on boot camp will be able to

  • Import pages to numbers

    hi  i need to  import  pages to numbers  i have  put in numbers cost and vat  number in pages and need to  export it to numbers to add vat and cost  every year  3% thanks craig wilson

  • Has nokia forgot C5-00...????

    I think Nokia has forgot  that it has made C5-00 mobile also, and it doesn't care about the users of C5-00, as all users of C5 are waiting for its new firmware update for more than 4 months, but still there is no report from Nokia about any update fo

  • How to use the b2b to send and recieve HL& message  without SOA Composite

    Hi Guru's We are doing HL7 transactions at our end. We have following use case Inbound partner gets the HL7(ADT) message and then without any transformation we wan't to send the message to another partner ( set up in the same b2B). I understand I can

  • Default Web Template for port 8001

    Hi, We are using single sign on with EP and BI.  When I execute my queries port 8001 is used.  I really like the standard template that is shown but need to add a couple of buttons.   What template is this and how do i hook it up to use my modified v