I am getting: Error in my omniportlet result query

hi
i need your help
i want to count number of records entered in each day, but CREATED_DATE is datetime, so i used the convert to extract the date but i am gettig error in testing query Error in executing Query : [ORA-00936: missing expression ]
this is the sql code:
SELECT
CONVERT(VARCHAR(10),CREATED_DATE,120) AS date FROM FEEDBACK
group by CONVERT(VARCHAR(10),CREATED_DATE,120)
thank u

I'm not too sure what syntax you're using, and Oracle doesnt have a "datetime" datatype. Is that SQLServer datatype and syntax?
Anyway, does this help?
Greg
SQL> select col1 from dt1;
COL1
20-JAN-01
20-JAN-01
20-JAN-01
21-JAN-01
22-JAN-01
22-JAN-01
6 rows selected.
SQL> select count(*) cnt, to_char(col1,'dd-mon-yy') as the_day from dt1 group by
to_char(col1,'dd-mon-yy') order by the_day asc;
       CNT THE_DAY
         3 20-jan-01
         1 21-jan-01
         2 22-jan-01
SQL>

Similar Messages

  • Linked Server - Getting Error when performing Cross Instance Query with joins

    Hi Guys,
    I've successfully created a Linked Server that connects a local DB Engine with another DB Engine through an ip over an extranet. I am able to run simple Select statement queries on the Local DB
    Engine and get results from the linked server. However when attempting to perform more complex queries that join tables from
    the linked server with tables from the local DB server, I get the following error message after several minutes of execution:
    OLE DB provider "SQLNCLI11" for linked server "<ip of Linked Server>" returned message "Protocol error in TDS stream".
    OLE DB provider "SQLNCLI11" for linked server "<ip of Linked Server>"
    returned message "Communication link failure".
    Msg -1, Level 16, State 1, Line 0
    Session Provider: Physical connection is not usable [xFFFFFFFF].
    OLE DB provider "SQLNCLI11" for linked server "<ip of Linked Server>"
    returned message "Communication link failure".
    Msg -1, Level 16, State 1, Line 0
    Session Provider: Physical connection is not usable [xFFFFFFFF].
    OLE DB provider "SQLNCLI11" for linked server "<ip of Linked Server>"
    returned message "Communication link failure".
    Msg 10054, Level 16, State 1, Line 0
    TCP Provider: An existing connection was forcibly closed by the remote host.
    Grateful if you could advise what may be causing this issue and how I can resolve it. I've read on Distributed Transactions but I understand that it only applies to manipulation statements?
    Both are SQL servers. Linked Server is SQL2008R2 if not mistaken. Local DB Engine is SQL2014.
    Thanks and Regards,
    Rhyan.

    Thank you for your insight Erland. Can you advise how I can check the SQL Server errorlog pls?
    I just got word from a user that the query ran successfully this morning but took 15 mins to complete.. does it ring a bell to you in terms of issues that may be causing this?
    This kind of behaviour would suggest something makes the query "time out" or stop abruptly.. How can I further investigate it pls? Can a BEGIN DISTRIBUTED TRANSACTION  statement in the query help me mitigate or resolve the error? ref: https://msdn.microsoft.com/en-us/library/ms188386.aspx?f=255&MSPPError=-2147217396
    SQL Version for Remote Server is : 
    Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64) Oct 19 2012 13:38:57 Copyright
    (c) Microsoft Corporation Standard Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)
    SQL Version for Local Server is:
    Microsoft SQL Server 2014 - 12.0.2000.8 (X64) Feb 20 2014 20:04:26 Copyright
    (c) Microsoft Corporation Enterprise Edition (64-bit) on Windows NT 6.3 <X64> (Build 9600: ) (Hypervisor)
    Thanks and Regards,
    Rhyan

  • Getting error arrayindexoutofbound : 0 in extended VO

    Hi,
    I have extended view object ApInvPoShipmentsVO(added new columns), initially I was getting error 'each row in the query result columns must be mapped to a unique query attribute in the mapped entity columns'  somehow I was able to resolve it.
    But now while running the page I am getting Arrayindex.. 0 when trying to use/print a particular view attribute.
    Also other custom added columns are fetching bad values, whereas when I run the same in sql dev. it is fetching correct value
    I am badly stuck with this, any help will be very great full.
    Regards

    I have extended view object ApInvPoShipmentsVO(added new columns), initially I was getting error 'each row in the query result columns must be mapped to a unique query attribute in the mapped entity columns'  somehow I was able to resolve it.
    For this.. Please create transient attributes first(say column1,cloumn2 etc). Then modify your sql query to add your columns with names as exactly the same transient attribute name and then modify the transient attribute by checking the 'mapped to sql' check box.
    looks like the attribute mapping is distorted. Try the above step and check.

  • I am trying to re-install Creative Suite 5.5 Design Standard on my Widows 7 Professional computer after I had to replace the hard drive. I keep getting error message and I get "Exit Code 15: Media DB Sync failed". I have run C Cleaner with same results. H

    I am trying to re-install Creative Suite 5.5 Design Standard on my Widows 7 Professional computer after I had to replace the hard drive. I keep getting error message and I get "Exit Code 15: Media DB Sync failed". I have run C Cleaner with same results. Have Disabled UAC and Startup items and Services with no success. Please help - frustrated to no end. Can someone help me?

    make sure you're using the adobe cleaner, not crap cleaner, Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    copy the installation files to a desktop folder and install from there.

  • Am unable to download/updaate ACR on windows 8.1 and CS6.  Get error "Application Manger Damaged".  Downloaded new application manager, same result.  How to proceed?

    Have just upgraded to new computer running windows 8.1 and downloaded CS6.  Unable to upload Nikon D800 raw files, but can upgrade Canon G10 raw files.  When I try to upgrade ACR, I get error message "Application Manager Damaged", so download new Application Manager with the same result.  CS6 came with ACR 7.0.0.308 which seems like it should process the D800 raw files.  How do I proceed?

    update by downloading the files directly and then applying them:
    pre cc updates:  http://www.adobe.com/downloads/updates/
    cc updates:  http://prodesigntools.com/adobe-cc-updates-direct-links-windows.html
    cc 2104 updates:  http://prodesigntools.com/adobe-cc-2014-updates-links-windows.html

  • When i am on the 4 step in Search Result Display options, i get errors after 2 radio buttons

    I am using Oracle portal 9.0.2 version
    When i am on the 4 step in Search Result Display options, i get errors after 2 radio buttons
    Default Search Results Page
    This Search Portlet
    An unexpected error has occurred (WWS-32100)
    User-Defined Exception (WWS-11230)
    Unknown Exception (WWC-45131)
    ORA-20101:
    ORA-06512: at &quot;PORTAL.WWSBR_STDERR&quot;, line 437
    ORA-06512: at &quot;PORTAL.WWPOB_API_PAGE&quot;, line 3369
    ORA-01403: no data found
    ORA-01403: no data found (WWC-11230)
    No data found (WWS-32101)
    ORA-1403: ORA-01403: no data found
    ORA-01403: no data found (WWC-36000)
    Error: An unexpected error occurred: User-Defined Exception (WWC-43000)
    Please help me with this one
    P.S I tried to run inctxgrn.sql, but it did not solve the problem

    i solved the problem by runing 2 scripts as a portal user
    You can refer to bug - 2418089. This was fixed in 9.0.2.3
    begin
    wwpre_api_value.set_value_as_number
    p_path => 'oracle.portal.search',
    p_name => 'searchresultpageid',
    p_level_type => wwpre_api_value.SYSTEM_LEVEL_TYPE,
    p_level_name => null,
    p_value => 6,
    p_commit => true
    commit;
    end;
    begin
    wwpre_api_value.set_value_as_number
    p_path => 'oracle.portal.search',
    p_name => 'searchresultpagesiteid',
    p_level_type => wwpre_api_value.SYSTEM_LEVEL_TYPE,
    p_level_name => null,
    p_value => 6,
    p_commit => true
    commit;
    end;
    NOTE - The difference is the value of 'p_name' attribute. If u see carefully it is 'searchresultpagesiteid'. The first time u run this the value is 'searchresultpageid'.

  • I keep getting error when i try to log in to Adobe to post results.  I have created an ID.

    I keep getting error when i try to log in to Adobe to post results. I have created an ID.

    Running the Lion Os requires a MINIMUM of 2 GB of RAM, as you have.  However, with that little RAM the computer will have trouble with many memory based tasks, such as copying and pasting.  You really need to increase the amount of RAM your computer has in order to increase its speed and performance.  Now, when a task requires more RAM than your system has available then the OS will use some harddrive space temporarily instead.  This is called "Virtual Memory."  Is it possible that at this time that your harddrive is very full relative to its stated capacity, so that even "virtual memory" is not really available?  If that is the case, you really need to cleanup your harddrive by deleting a fair number of less used files.
    Hope this helps

  • Getting Error while running a file adapter.

    Hi all,
    I am doing a small application where I need to read an image from a shared path and send the base64code of that image in response. For that I am using File Adapter and Read
    operation. I have just hard coded the image name didnt give any wild card or expressions. I generated a service which is a proxy using the jca of that File Adapter. I added a stage
    replacing the response body with the opaque element of the request body. When I run the proxy I am getting something like *"The invocation resulted in an error: "* in response
    and in the stack trace I am getting *"Failed to set the value of context variable "body". Value must be an instance of {http://schemas.xmlsoap.org/soap/envelope/}Body."* as the fault
    reason I am unable to detect where exactly I am going wrong. Kindly help me in resolving this.
    Thanks,
    Phanindra.

    Not sure why you want to replace. Since the response of the proxy would remain to hold the request body by default.
    If you have stored the opaque element in a variable ($var_opaque), then you can do the following.
    XPath : .
    In variable : body
    Expression : $var_opaque
    Check - "Replace node content"

  • Getting error while schedule a webi report

    Hi All,
    I am getting error "A database error occured. The database error text is: The supplied XML is not valid. [Measures].[4KO5AOUTL3ZKE55WDDOMUB0AI]. (WIS 10901) " while scheduling a Webi report.
    Could anyone help me regarding the error?
    Regards

    Hi Manoj,
    Go to the controls tab in parameters in universe designer and there increase the "Limit size of result set to" and "limit execution time to".
    Also in webi go to the edit query and increase the "maximum rows retrived" and "maximu retrievel time".
    I think this should avoid partial results.
    Thanks,
    Neeraj

  • I get error message when trying to add key tags

    I get error message when trying to add key tags

    You should always backup your iPad before ever doing anything major that coould result in a catastrophic loss is something goes wrong. You can then usually restore from the backup when your iPad has recovered.
    You should also be sure to have transfered any new purchases directly to your iPad to the iTunes app on your computer on a regular basis.

  • I can't update itunes. I get error message can't find "itunes.msi". What can I do?

    What can I do to download updated itunes. I get error message can't locate "itunes.msi." folder.

    Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center. First we have to find a copy of the utility.
    Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. (The results from mydigitallife and Major Geeks are worth checking.)
    After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
    If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove".
    Quit out of CleanUp. Restart the PC, and try another iTunes install. Does it go through properly this time?

  • I'm unable to write/burn a CD-R (Verbatim) from a playlist after upgrading to iTunes 12.0.1.26. I get error 4000. I can however write/burn a CD from Windows Explorer and CDBurnerXP v4.5.4.5143 – which implies the device is working OK

    I’m unable to write/burn a CD-R (Verbatim) from a playlist after upgrading to iTunes 12.0.1.26. I get error 4000. I can however write/burn a CD from Windows Explorer and CDBurnerXP v4.5.4.5143 – which implies the device is working OK – and only fails when I write from iTunes.  The drivers are up to date
    Microsoft Windows 7 x64 Business Edition Service Pack 1 (Build 7601)
    Dell Inc. Latitude E6420
    iTunes 12.0.1.26
    QuickTime 7.7.6
    FairPlay 2.7.39
    Apple Application Support 3.1
    iPod Updater Library 12.0
    CD Driver 2.2.3.0
    CD Driver DLL 2.1.3.1
    Apple Mobile Device 8.0.5.6
    Apple Mobile Device Driver 1.65.0.0
    Bonjour 3.0.0.10 (333.10)
    Gracenote SDK 3.06.0.2770
    Gracenote MusicID 3.06.0.2770
    Gracenote Submit 3.06.0.2770
    Gracenote DSP 3.06.0.2770
    iTunes Serial Number 756D13C00C3583C8
    Current user is not an administrator.
    The current local date and time is 2015-01-13 14:47:35.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Core Media is supported.
    Video Display Information
    Intel Corporation, Intel(R) HD Graphics Family
    **** External Plug-ins Information ****
    No external plug-ins installed.
    iPodService 12.0.1.26 (x64) is currently running.
    iTunesHelper 12.0.1.26 is currently running.
    Apple Mobile Device service 3.3.0.0 is currently running.
    **** CD/DVD Drive Tests ****
    LowerFilters: SbCeCd (3.2.6.3),
    UpperFilters: GEARAspiWDM (2.2.3.0),
    F: HL-DT-ST DVD+-RW GU40N, Rev A103
    Drive is empty.
    The last failed audio CD burn had error code 4000(0x00000fa0). It happened on drive F: HL-DT-ST DVD+-RW GU40N on CDR media at speed 24X.
    F: HL-DT-ST DVD+-RW GU40N, Rev A103
    Audio CD in drive.
    Failed Reading table of contents, error 4000.
    Check the website of your computer or drive manufacturer to verify that you have the latest firmware for your CD / DVD drive.
    Audio CD reading failed. Error Code:   87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87.
    iTunes cannot play or import music from a CD in this drive. The drive may need a firmware update. Check with the manufacturer.
    Get drive speed failed. Error Code: 4000.
    The last failed audio CD burn had error code 4000(0x00000fa0). It happened on drive F: HL-DT-ST DVD+-RW GU40N on CDR media at speed 24X.

    Hi iTunes-1,
    Welcome to the Support Communities!  The error message you posted indicates a possible firmware update is needed for iTunes for Windows to work with your CD drive.  
    iTunes for Windows: Updating the firmware on your CD or DVD drive - Apple Support
    http://support.apple.com/en-us/HT201852
    Having outdated firmware can cause issues using CDs and DVDs with iTunes for Windows. Firmware is a type of software stored in a chip in hardware that can sometimes be updated.Identifying drives and firmware versions
    To run CD Diagnostics, follow the steps in this document.
    After following the steps to run CD Diagnostics linked above, look at section three to find out more about your optical drive(s).
    Here is an example of what section three might look like:
    In this example there are two drives. Drive E is a Samsung DVD-ROM drive with a model designation of SD-616 that has firmware version F000. Drive F is an NEC drive with a model designation of NR-7900A that has firmware version 1.08.Updating the firmware
    If the optical drive you are using came with your computer, check with the support site for your computer for a firmware update. Typically you will need to go to the support website for the computer maker and click on a "downloads" or "updates" link, and then enter your computer model designation and operating system version to see what updates are available. Then look through the available updates for a firmware update for your optical drive. Download the updater and run it. If you need assistance applying the update, contact the maker of your computer.
    If the optical drive you are using came as a separate part (was not included with a computer), check the support site for the drive maker for a firmware update. Sometimes the manufacturer is not clear in the CD Diagnostics results. In that case, you may just have to search the Internet for the drive model designation. You can usually find out who made the drive by looking through the results of such a search. Once you have identified who made your drive, go to the support website for that company. Look for a "downloads" or "updates" link, and then enter your optical drive model designation. Download the updater and run it. If you need assistance applying the update, contact the maker of the optical drive.Verifying that the firmware was updated
    Run CD Diagnostics again.
    Examine the CD Diagnostics results. The firmware version for the drive should be the new version.
    Information about products not manufactured by Apple, or independent websites not controlled or tested by Apple, is provided without recommendation or endorsement. Apple assumes no responsibility with regard to the selection, performance, or use of third-party websites or products. Apple makes no representations regarding third-party website accuracy or reliability. Risks are inherent in the use of the Internet. Contact the vendor for additional information.
    Last Modified: Nov 8, 2014
    Also, you mentioned that you have been successful burning a CD with the Windows OS.  Make sure that you have closed all software programs that can access the CD burner so that there isn't a conflict for the drive.   Sometimes chaning the burn speed from "maximum" to 8x can also help in this situation.
    I hope this information helps ...
    - Judy

  • Getting error-ORA-24381: error(s) in array DML

    Hi i have written the following code to bulk insert into a database table.
    I am getting an error while returning the result of the bulk insert query into the collection
    I have tried to track it by using sql%bulk_exceptions.error_code.
    But the error code that it is showing is just 1.
    I trapped it using sqlerrm.
    and that is showing-error(s) in array DML
    What do i do?
    DECLARE
       CURSOR temp_rec_tap_cur
       IS
          SELECT *
            FROM temp_records_tap;
       TYPE temp_rec_tab IS TABLE OF temp_rec_tap_cur%ROWTYPE;
       v_test_tab   temp_rec_tab;
       v_rec_num    num_tab;
       v_filename   temp_records_tap.file_name%TYPE;
       v_error_code tap_reject.error_code%type;
       v_rej_value  tap_reject.field_rej%type;                      
       v_errors number;   
    BEGIN
       SELECT file_name
         INTO v_filename
         FROM table1
         WHERE ROWNUM<2;
       OPEN temp_rec_tap_cur;
       LOOP
          BEGIN
             FETCH temp_rec_tap_cur
             BULK COLLECT INTO v_test_tab LIMIT 1000;
             FORALL i IN v_test_tab.FIRST .. v_test_tab.LAST SAVE EXCEPTIONS
                INSERT INTO tapdetail_tapin
                     VALUES v_test_tab (i)
                  RETURNING record_num
                    BULK COLLECT INTO v_rec_num;
          EXCEPTION
             WHEN DUP_VAL_ON_INDEX
             THEN
                NULL;
             WHEN OTHERS
             THEN
             v_errors:=sql%bulk_exceptions.count;
             for i in 1..v_errors
             loop
             dbms_output.put_line(sql%bulk_exceptions(i).error_code);
             p3_errorlog ('TAPINDETAWARE', SQLERRM, v_filename);     
             end loop;
             END;
                --RAISE;
          EXIT WHEN temp_rec_tap_cur%NOTFOUND;
       END LOOP;
    INSERT INTO table2
    SELECT file_id, file_name, sender_pmn, recipient_pmn, call_date,
                 call_date_only, call_type, call_number, FIRST_RECORD,
                 service_type, service_code, home_bid, serve_bid,
                 chargeable_subs_type, imsi_min, msisdn_mdn, air_charges,
                 air_charges_sdr, air_time, national_call_charges,
                 national_call_charges_sdr, national_call_time,
                 international_call_charges, international_call_charges_sdr,
                 international_call_time, dir_assist_charges,
                 dir_assist_charges_sdr, dir_assist_time, other_charges,
                 other_charges_sdr, other_time, volume_charges,
                 volume_charges_sdr, volume_units, tot_charges, tot_charges_sdr,
                 tot_duration, state_tax, state_tax_sdr, local_tax,
                 local_tax_sdr, state_and_use_tax, state_and_use_tax_sdr, va_tax,
                 va_tax_sdr, other_tax, other_tax_sdr, charge_refund_indicator,
                 advised_charge_currency, advised_charge, advised_charge_sdr,
                 advised_charge_commission, advised_charge_commission_sdr,
                 exchange_rate, mcc, mnc, process_date, chargeable_units,
                 record_num, mscid,null,null,decode(call_type,0,'250',1,'251',5,'255'),null,'Duplicate Call'
                 from temp_records_tap
                 where record_num not in (select column_value from table(v_rec_num)) ;
    EXCEPTION
    WHEN OTHERS THEN
    p3_errorlog ('TAP', SQLERRM, v_filename);  
    END;Edited by: user8731258 on Sep 14, 2010 2:58 AM
    Edited by: user8731258 on Sep 14, 2010 3:01 AM

    What is the type declaration of num_tab and how is record_num defined?
    ORA-24381: error(s) in array DML
    Cause: One or more rows failed in the DML.indicates that you fail on the insert itself. Are the table definitions the same? Same primary/unique keys?
    Edited by: MBr on 14-Sep-2010 03:16

  • Getting error while creating the Shopping cart.

    Hi ,
    I am getting error while creating the Shopping cart.
    a.Error in account assignment for item 1  (Item  Testing SC ) 
    b.Duplicates of Cost Centre T10063 are defined in SRM  (Item  Testing SC ) 
    Kindly provide the solutions.
    Thanks,
    Dev

    Try the following in the ERP backend system:
    Standard Hierarchy Inconsistencies
    Issue: one Cost Center is repeating in more than one node in Cost Center Standard Hierarchy.
    Update from SAP Global support, the following was the email received:
    in transaction KSH3 please run both the ambiguity and completeness check(Menu -> Extras -> Check and Help functions).
    If you think that your standard hierarchy is inconsistent you can check that as following:
    Run transaction Extras -> Hierarchy - Master data -> Test. The result shows you if there are in consistencies. If that is the case run also Extras -> Hierarchy - Master data -> Comparison.
    Alternatively, you can run the report 'RKCORRH1' (TN SE38).
    Run both the Hierarchy->Master data->test and the
    Hierarchy->Master data->comparison.
    As stated above inconsistency message showed after Test. Run the comparison and you get a similar message.
    Once the above two are run, again when you go to test, the inconsistency disappears.

  • Message "Error in connection:No result set, result attempts = 100" on VC

    Hi,
    I am using a JDBC datasource to retrieve, update, insert and delete information from a SQL Server database using executing store procedures from VC.
    The selection of the data is perfect but for the deletion, insert or update of any data using store procedures I always get the following message:
    "Error in connection:No result set, result attempts = 100"
    At the end the information is modified in the database but I get error.
    Here is an example of one of my store procedure:
    CREATE PROCEDURE [dbo].[DelData]
         @id uniqueidentifier
         -- Add the parameters for the stored procedure here
    AS
    BEGIN
         -- SET NOCOUNT ON added to prevent extra result sets from
         -- interfering with SELECT statements.
         SET NOCOUNT ON;
        -- Insert statements for procedure here
         delete from data     
           WHERE Rowid=@id;
    END
    Let me know if somebody knows the reason of this and if there is something that I am doing wrong.
    Thanks,
    Zareh

    Hi,
    when you SELECT data, you get a result. So your connection gets a result set. When you DELETE, INSERT,... you have no result, because you didn't select data. So your connection can't get any result sets.
    best regards,
    Christian

Maybe you are looking for

  • Removing the default (View As Icon) for the control and Indicator

    If you remove the default selection View As Icon  for all the control and indicator, it is good for the programmer for easy to visualize the Block diagram code.

  • Reader 9 and X won't play slideshow background music

    I have been using Reader 8 satisfactorily, for years, to play slideshows I have made, over many years, using Adobe Album 2.0... admittedly an old program... perhaps 10 years old. Typically I have installed background music in my slideshows. Reader 8

  • How are atributes update?

    Why doesnt update atributes of characteristics in delta loading? I.e. 0MATERAL_ATTR Are transfer only new records of material (new records matnr from MARA) or are also transfer records whose atributes are changed (i.e. if I change matkl for old matnr

  • Does Apple TV support 1080p?

    Hello All, I just purchased an Apple TV and the set up was very easy. My TV is 1080p, but when I hooked up my ATV it only gave me the option of 1080i. Right now I have the ATV hooked up with component and rca audio plugs. If I use HDMI does that some

  • Change Result analysis key in WBS element

    Hi Friends, Is it possible to change result analysis key in WBS element? Any thoughts/suggestions would be welcome. Regards, Soumya