APEX 5.0 Export to CSV produces duplicate records

Good day to you all:

I use APEX 5.0, and I have a classic report that has a total number of lines of 274.  (274 documents also in SQL Developer).  However, when I export the report to CSV, duplicate records are produced and the total number of lines increases to 365.  Has anyone already known this before bug in APEX 5.0?  I tried to reproduce the report to a type of interactive, but I get the same results when you export to CSV.  Advice or guidance would be appreciated.  Thank you.

Aqua

Hey Aqua,

If you are APEX 5.0.0 or 5.0.1? And which version of the database, you are on?

There was a problem with CLOB (which are used for the download) in 5.0.0 running on specific versions of 11 GR 2. A fix is included in the 5.0.1 patch set.

Concerning

Patrick

Tags: Database

Similar Questions

  • Export to CSV problem...

    Hello

    I have a problem, hope I have explained it well.
    First of all, I have all report (SQL query) region with a silmple select (SELECT col1, col2 from table1).

    In this selection, I select the column which is a varchar2, a table.
    In some cases, the values in the column is for example 3-3' 2-2 "or 1-1'... etc.

    So I implements the integrated Apex for the export of data to CSV format:-report attributes-> export-> output CSV report activate: YES, Link label: export to CSV.

    When I click on the link 'Export to CSV', APEX exports to CSV and run my local excel to open this CSV... well...

    Well, the problem is that when I look in excel, he interpreted values such as: 2 Feb or March 3 or 1. Jan and so on... This is not true, of course.


    My question:
    Is it possible to get data excel for this column in a table, it is...
    Instead mar 3. I need to 3-3,... etc.


    Thank you very much...
    Zlatko

    Zlatko,

    I use this technique often to display zeros on the digital data defined as varchar2.

    Encode your column varchar2 like that and to preserve its format when exporting:

    SELECT "=" "| your_tbl.your_col | ' ' ' 'Date ' ' ' '.
    Of your_tbl

    In addition, you will need to select your date/varchar2 column twice in your SQL. Once the way you have it now and a second time as above. Then the report of two columns should be conditionally displayed, your old method on the report and the new method on your export.

    Under conditional display in the attributes column, place a Type of Condition of PL/SQL Expression of:
    INSTR (NVL(:REQUEST,'YABBADABBADO'), 'EXCEL') = 0
    INSTR (NVL(:REQUEST,'YABBADABBADO'), 'EXCEL')! = 0

    The first condition is your column of report and the latter is for your column of export.

    Jeff

  • Remove "< div" Excel file when exporting to CSV format

    Hello
    I have a report has the following properties:
    Export of reports
    Activate the output CSV = > Yes
    Bind the Label = > export to CSV format

    but when I run the report and press the link, I get an excel sheet indicating the reeport data, but the problem is that the report began with
    < div id = "report_11749113153378136_catch" >, Iam if you're wondering how to solve the problem.
    Thank you
    Abdul Alkhateeb

    Published by: dtabed on March 18, 2009 07:58

    Hi Adam,.

    What version of APEX are you running? I think that this has been fixed in 3.1.2. If you disable partial-page refresh, that should get rid of your problem.

    Martin

    -----
    [http://apex-smb.blogspot.com/]

  • SSRS 2012 export to CSV with no data by generating coma separated with an empty value

    I have a report that have no data due to parameter motor (both have true noheader configuration).

    In SSRS 2005 its generate empty csv file and for SSRS 2012 his record still generate with coma and an empty value, something like this:

    ,,,,

    Those that were generated by Server (SSRS 2005 and 2012 SSRS), tnot different heres in the rsreportserver.config file to make segment.

    If I exported the csv file to SQL Server Data Tools for Visual Studio 2012, it generated an empty file (which is correct).

    Anything I missed here?

    Just realized, its due to my 2012 SSRS is the RTM version and its due to SSRS bugs has been fixed on SP2 + CU3

    https://support.Microsoft.com/en-us/KB/3002049

  • Overall summary of environmental export to CSV (Free Edition)

    2 request free editions & other versions:

    1 Free Edition could would export info 'summary of global environment. file csv tab Explorer environment?

    2. Annex export these CSV files to the email and the UNC path

    Hi, Edward - you can do both of these points with the full paid version of Foglight for virtualization Standard Edition. If you click the upgrade option, it will allow the full functionality for 30 days. You can also download the full version here - http://www.quest.com/foglight-for-virtualization-standard-edition/

    Let me know if you need more info - thanks Danny

  • Leading zeros and export to CSV


    Hello

    I run a sql query for retrieving telephone numbers and when exporting to CSV 0 are deleted. I understand that this is a problem of excel formatting, however does it perform a work around in the SQL that can preserve the leading zeros when exporting to CSV?

    sliderrules wrote:

    The format of data is of type char

    SELECT «=» | test ctelno

    When they are copied to surpass the value bed = 0999 6767 in excel (including =)

    You need double quotes

    '="'|| c.ctelno |' » "

  • How can we export itno csv data file for oracle forms

    Hello

    How can we export itno csv data file for oracle forms

    For example. I have the block called A.what never the data displayed on a block, when I click on a button, displays the block data, must be exported to the csv file.

    My application is running on the unix operating system.

    Please help on this.

    First of all.  What is your version of forms (for example: 11.1.2.2.0 not 11g).  Finally, who will use the .csv file?  If it is a user on their client computer - CLIENT_TEXT_IO TEXT_IO or WebUtil are standard packages used to export data to a file of Oracle Forms.

    The amount of data to be exported?  If you export only a couple hundred lines - export of Froms will be OK.  If you export more lines than that (300 + lines) then the export will be extremely slow to your username.  Keep in mind that forms is not designed to perform data exports - there are better tools available for this...

    Craig...

  • A column value a comma, which leads to a column different while export to CSV file

    Hi all

    I have a few columns that will be built in the CSV file. The problem is in one of the column value of a comma in there. Thus, it creates a separate column two in CSv file.

    For example:

    Name of the column: description.

    Value: Bumpers, cushion

    But then that export in CSV file, it gives me bumper as a column and seat cushion in the second column.

    I'm using Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

    Appreciate your help.

    Thank you

    Suresh

    Hello

    REPLACE (str

    , '"'

    , '"'

    )

    Returns a copy of the string str, but with all the ' "" ' changed substrigs in ' ' ' "

    This assumes that your front-end is not treat & like variable substitution marker.  If it is so, and -is your SQL * more escape character, then you can say

    REPLACE (str

    , '\"'

    , '"'

    )

  • Export to CSV from a form of manually created tab

    Version 4.1.1.00.23

    Hello

    I have seen a lot of messages about the present, and of course, I do not find anything!

    So, I have a form tab created manually, built using the API APEX_ITEM and Collections and now demand came to allow the report to export in CSV and activation of export, I get all the values that are in the list select etc..

    How can I get the export of the recovered data in the report?

    Thank you

    Joe

    Fixed.

  • The information in the form of e-mail in Muse can be exported to CSV or Excel?

    Have a customer who wants his argument of forms of e-mail to export in CSV or Excel, any ideas?

    You can export data from any client as csv:

    https://support.Microsoft.com/en-us/KB/290859

    Thank you

    Sanjit

  • Find records VM size and export to csv format

    Hello

    I need this script to export to csv format, but I have problems to make it work.

    Notice-EEG - ViewType VirtualMachine-property name, Config.Hardware.Device, LayoutEx | %{

    $viewVM = $_; $viewVM.Config.Hardware.Device |? {$_-is [VMware.Vim.VirtualDisk]} | %{

    # for each device VirtualDisk, get some info

    $oThisVirtualDisk = $_

    # get the disk element LayoutEx, which corresponds to the VirtualDisk

    $oLayoutExDisk = $viewVM.LayoutEx.Disk |? {$_. {Key - eq $oThisVirtualDisk.Key}

    # get the FileKeys that correspond to the LayoutEx-> sort items of this VirtualDisk

    $arrLayoutExDiskFileKeys = $oLayoutExDisk.Chain |? {$_-is [VMware.Vim.VirtualMachineFileLayoutExDiskUnit]}

    New-Object PSObject-property @ {} TypeName

    # Add the VM name

    VMName = $viewVM.Name

    # disc label, such as "disk 1".

    DiskLabel = $_. DeviceInfo.Label

    # the path to the data store for the file VirtualDisk

    DatastorePath = $_. Backing.FileName

    # the size provisioned to the VirtualDisk

    ProvisionedSizeGB = [Math]: tour ($_.) CapacityInKB / 1 MB, 1).

    # Get the file LayoutEx elements that correspond to the FileKeys for this LayoutEx disk and the size for items that are "diskExtents" (retrieved in the form of bytes, so convert to GB)

    SizeOnDatastoreGB = [Math]: round (($arrLayoutExDiskFileKeys | % {$_.)) FileKey} | % {$intFileKey = $_; $viewVM.LayoutEx.File |?} {($_. Eq - $intFileKey - button) and ($_.) Type - eq "diskExtent")}} | Measure - Object - size of the sum). Summary / 1 GB, 1).

    } # end new object

    } # end foreach-object

    } # end external foreach-object

    Capture all the output in a variable and send this variable in a CSV file.

    Something like that

    $result = Get-View -ViewType VirtualMachine -Property Name, Config.Hardware.Device, LayoutEx | %{
        $viewVM = $_; $viewVM.Config.Hardware.Device | ?{$_ -is [VMware.Vim.VirtualDisk]} | %{
            ## for each VirtualDisk device, get some info         $oThisVirtualDisk = $_        ## get the LayoutEx Disk item that corresponds to this VirtualDisk         $oLayoutExDisk = $viewVM.LayoutEx.Disk | ?{$_.Key -eq $oThisVirtualDisk.Key}
            ## get the FileKeys that correspond to the LayoutEx -> File items for this VirtualDisk         $arrLayoutExDiskFileKeys = $oLayoutExDisk.Chain | ?{$_ -is [VMware.Vim.VirtualMachineFileLayoutExDiskUnit]}
            New-Object -TypeName PSObject -Property @{
                ## add the VM name            VMName = $viewVM.Name
                ## the disk label, like "Hard disk 1"            DiskLabel = $_.DeviceInfo.Label
                ## the datastore path for the VirtualDisk file            DatastorePath = $_.Backing.FileName
                ## the provisioned size of the VirtualDisk            ProvisionedSizeGB = [Math]::Round($_.CapacityInKB / 1MB, 1)
                ## get the LayoutEx File items that correspond to the FileKeys for this LayoutEx Disk, and get the size for the items that are "diskExtents" (retrieved as bytes, so converting to GB)            SizeOnDatastoreGB = [Math]::Round(($arrLayoutExDiskFileKeys | %{$_.FileKey} | %{$intFileKey = $_; $viewVM.LayoutEx.File | ?{($_.Key -eq $intFileKey) -and ($_.Type -eq "diskExtent")}} | Measure-Object -Sum Size).Sum / 1GB, 1)
            } ## end new-object    } ## end foreach-object } ## end outer foreach-object
    
    $result | Export-Csv "C:\report.csv" -NoTypeInformation -UseCulture
    
  • Is it is possible to add script in Adobe Muse? I have added the functionality to export file .csv to the contact form

    Is it is possible to add script in Adobe Muse? I have added the functionality to export file .csv to the contact form

    Hi Vicky,

    Yes, you can add scripts customized to a page of muse. To do this, you must go to 'properties-> metadata-> html to head page' or ' object-> insert html.

    - Abhishek Maurya

  • script to get the csv vm disk usage and export to csv format

    Hi all

    I am trying to create a script to get the use of disk for vm - space - free space and total disk space.

    I used this script that allows me to get the required result.

    but I need to edit the script for each cluster, VM he should get computers virtual cluster and check the vm disuage. and export of csv file

    $vms = import-CSV "C:\Cluster.csv".

    $outputfile = "c:\Diskusage.csv".

    SE connect-viserver VC-vcadmin username-password

    {foreach ($vm to $vms)

    Get - VM $vm.name | Where {$_.} PowerState - eq "Receptor"} | Get-VMGuest | Select the ExpandProperty - VMName disks | Select VMName, path, @{Name = "DiskCapacityGB"; Expression = {[math]: Round ((($_.))} {{((Ability) / 1 GB), 2)}}, @{Name = "DiskUsedMB"; Expression = {[math]: Round ((($_.))} Capacity - $_. {{((FreeSpace) / 1 MB), 2)}}, @{Name = "DiskFreeMB"; Expression = {[math]: Round ((($_.))} {{((FreeSpace) / 1 MB), 2)}} | Export-Csv - NoTypeInformation $outputfile}

    Viserver disconnect

    Joint the output file

    Veuileez help me in creating the script

    You can try like this?

    Connect-viserver VC -user vcadmin -password
    foreach($cluster in Get-CLuster){
        $outputfile = "c:\" + $cluster.Name + "-Diskusage.csv"    Get-VM -Location $cluster |
        Where { $_.PowerState -eq "PoweredOn" } |
        Get-VMGuest |
        Select VMName -ExpandProperty Disks |
        Select VMName, Path,
            @{Name="DiskCapacityGB";Expression={[math]::Round((($_.Capacity)/1GB),2)}},
            @{Name="DiskUsedMB";Expression={[math]::Round((($_.Capacity - $_.FreeSpace)/1MB),2)}},
            @{Name="DiskFreeMB";Expression={[math]::Round((($_.FreeSpace)/1MB),2)}} |
        Export-Csv -NoTypeInformation $outputfile}
    
    Disconnect-viserver
    

    The script creates a CSV file for each cluster.

  • Several properties of the vm to export to CSV

    I am trying to query the properties of many virtual machines and placed them in a csv file. Thanks RvdNieuwendijk, I have a simple means to recover some of the properties, as described below.


    $VMs = "vm1', 'vm2', 'vm3.

    {foreach ($i in $vms)
    Get - VM $i | `
    Select-Object - property name,
    @{N = 'DNS Name'; E={$_. ExtensionData.Guest.HostName}},
    PowerState, numCPU MemoryMB, Version.
    ID, ProvisionedSpaceGB, UsedSpaceGB, $vmhost.
    @{N = "ToolsVersion"; E={$_. ExtensionData.Config.Tools.ToolsVersion}},
    @{N = "ToolsStatus"; E={$_. ExtensionData.Guest.ToolsStatus}} | `
    Export-Csv - NoTypeInformation - UseCulture-path E:\scripts\$i.csv
    }

    However when I use the cmdlet export-csv file contains an entry for the latest vm. So my question is how I export to CSV so that each virtual machine is on its own line in the file even with no headers?

    Hello, sas23-

    You were pretty close.  The key was to make the Export-CSV call outside the foreach loop, as:

    $VMs = "vm1", "vm2", "vm3"&{foreach ($i in $VMs) {    Get-VM $i | Select-Object -Property Name,        @{N="DNS Name";E={$_.ExtensionData.Guest.HostName}},        PowerState,numCPU,MemoryMB,Version,        Id,ProvisionedSpaceGB,UsedSpaceGB,VMHost,        @{N="ToolsVersion";E={$_.ExtensionData.Config.Tools.ToolsVersion}},        @{N="ToolsStatus";E={$_.ExtensionData.Guest.ToolsStatus}}}} | Export-Csv -NoTypeInformation -UseCulture -Path E:\scripts\VMsInfo.csv
    

    or, to cut a few lines, you can move the names of virtual machine directly to Get-VM, since the names are not used elsewhere in the script.  Which would look like:

    (Get-VM "vm1", "vm2", "vm3" | Select-Object -Property Name,    @{N="DNS Name";E={$_.ExtensionData.Guest.HostName}},    PowerState,numCPU,MemoryMB,Version,    Id,ProvisionedSpaceGB,UsedSpaceGB,VMHost,    @{N="ToolsVersion";E={$_.ExtensionData.Config.Tools.ToolsVersion}},    @{N="ToolsStatus";E={$_.ExtensionData.Guest.ToolsStatus}}) | Export-Csv -NoTypeInformation -UseCulture -Path E:\scripts\VMsInfo.csv
    

    Both ways should translate into a single CSV file with a line of header information and three 3 lines of info from the VM.  You don't say: "no header", but I took this to mean that you didn't want a header for each VM to info line, no is not that you didn't no whether header.

    Enjoy

  • Output on screen and EXPORT. CSV

    Hi all

    Were the creation of scripts for some general tasks and I got a little confused on what is happening.  I have two scripts that are output on the screen even with EXPORT. CSV commond to end.  I get the output sent to the CSV fine and there is no obvious errors.

    Any whay Idears, that this could happen?  I can post my script if that helps.

    Thank you

    Phil

    This is the line with only $objHba in it.

    It will display the content of this variable to the screen.

    # $vmlist = Get-VM
    $table = @()
    
    foreach ($vmhost in (Get-view -ViewType Hostsystem )) {
         foreach ($hba in ($vmhost.config.storagedevice.hostbusadapter | where {$_.PortWorldWideName})) {
              $objHba = "" | Select-Object Hostname,Device,Model,Driver,Pci,Wwpn
              $objHba.HostName = $vmhost.Name
              $objHba.Device = $hba.Device
              $objHba.Model = $hba.Model
              $objHba.Driver = $hba.Driver
              $objHba.Pci = $hba.Pci
              $objHba.Wwpn = "{0:x}" -f $hba.PortWorldWideName
    #           $objHba
              $table += $objHba
         }
    }
    
    $table | Export-Csv $outputDir\data\$date.$viserver.$filename.csv -NoTypeInformation
    

    BTW what is the first (of line) doing here? It has nothing to do with the rest of the script.

    Copy & paste mistake I guess?

    ____________

    Blog: LucD notes

    Twitter: lucd22

Maybe you are looking for