Cursor group by error

I have the following cursor defined in a oracle procedure:
Cursor counts_cursor_comb is
Select period, sum(count) as count, sum(group_cnt_total) as group_cnt_total, sum(total_income) as total_income,
sum(group_income_total) as group_income_total, sum(total_itd) as total_itd, sum(group_itd_amt) as group_itd_amt
From rpt_recency_counts_report
Where trim(country) = 'US'
Group by trim(period);
The SQL runs fine in SQL Worksheet
but when I run it in my procedure I get the following error:
ERROR at line 1:
ORA-00937: not a single-group group function
ORA-06512: at "DEMO.P_RECENCY_COUNTS_REPORT", line 63
ORA-06512: at "DEMO.P_RECENCY_COUNTS_REPORT", line 635
ORA-06512: at line 1
line 63 is where the cursor is defined and line 635 is where I open it.
Any help would be appreciated.
Thanks,
Ravi

Try removing the trim() from the GROUP BY, or add it to the select

Similar Messages

  • Group instantiate error

    hi,
    Scenario : - i had two cap. categories A and B.  Under A the cap groups a1, a2 etc., and under B the cap groups b1, b2 etc., are mapped.  Now i changed the mappings of a1 and a2 to come under hte category B deleting the a1 and a2 under A.  I ran the /RPM_FICO_INT_PLANNING for the entire data.  i am getting "Group Instantiate" error in hte Planning and roll up mode.  Also when i ran the integration mode(each item is linked to an internal order in FICO) it dumps.
    Appreciate if anyone can suggest how could this be resolved.
    Thanks

    Thanks again Priyatham
    i first ran the program you mentioned(successfully) and it gave me no errors in /RPM/FICO_INT_PLANNING when on Planning and roll up mode.  However, when i run it with integration it dumps and the error analysis shown as below.
    Error analysis
        The program "CL_DPR_FIN_GECCO_IAOM_SERVICESCP" contains the CALL FUNCTION
         statement.
        The name of the function module to be called is "IAOM_ACCOUNT_MANAGER".
        No function module exists with the name "IAOM_ACCOUNT_MANAGER".
        All function modules are listed in the Function Library (SE37).
        Possible reasons:
        a) Wrong name specified. Pay particular attention to
           upper/lower case and underscores ("_").
           or
        b) Transport error
        c) In the case of an enqueue/dequeue module,
           the lock object may not have been activated
           (ABAP/4 Dictionary).
    pls reply.

  • I can not uninstall the newest Muse, the error that i get is: ERROR: The older version of Adobe Muse CC 2014 cannot be removed.  Contact your technical support group.    ERROR: Install MSI payload failed with error: 1603 - Onherstelbare fout bij installat

    Can somebody please help me, i can not work on my websites anymore. Thanks !!

    ERROR: The older version of Adobe Muse CC 2014 cannot be removed.  Contact your technical support group. 
    ERROR: Install MSI payload failed with error: 1603 - Onherstelbare fout bij installatie.
    MSI Error message: The older version of Adobe Muse CC 2014 cannot be removed.  Contact your technical support group. 
    ERROR: Third party payload installer Muse_2014_2_CC_LS24.msi failed with exit code: 1603

  • AI Group Config Error 10001 using Virtual Channels

    In my LabVIEW block diagram, I usually enter in numbers, e.g. 0,1,2 for the channel string input of AI Config. When I try to use a virtual channel, I simply type in the virtual channel, e.g. 0,K Thermocouple,2. However, this causes AI Group Config Error 10001, which applies to an invalid channel string. What is the correct way to enter a virtual channel into the channel string?

    Do you have channels with virtual names of "0", and "2"?
    If not you may be confusing MAX by using both naming conventions.
    Try using only Virtual names.
    I generally will use an array of strings where each element is the vitual channel name with no problems.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • While I have create group asset error occured Assert condition is voilated?

    Hi  All,
    while I have create group asset error occured Assert condition is voilated . Its runtime error .
    please can you send screen shot  screen layout of group asset in asset master data?
    Thanks
    Shailesh.
    9604645129.

    Hi
    what is the message number/ Dump ananlysis (check it in ST22) ?
    VVR

  • ORA-33273: Analytic workspace FPA.FPAPJP has open cursors ... error?

    Gurus,
    When we try to detach analytic workspace, I get the following error
    ## Detail 0 ## java.sql.SQLException: ORA-33273: Analytic workspace FPA.FPAPJP has open cursors and cannot be detached.
    ORA-06512: at "APPS.FPA_UTILITIES_PVT", line 129 ORA-06512: at "APPS.FPA_PROCESS_PVT", line 4685
    ORA-34684: All of your attached analytic workspaces are read-only. Therefore, the UPDATE command will not save changes. ORA-06512: at line 1
    The workspace " FPA.FPAPJP" has been opened in read-write mode and no explicit cursors are present in the code.
    Any inputs are truly appreciate.
    Thanks - Srujan

    This is a new error to me. For what it is worth, here is a dba query to list open cursors by session.
    select
    vses.username||':'||vsst.sid username,
    vstt.name,
    max(vsst.value) value
    from
    v$sesstat vsst,
    v$statname vstt, 
    v$session vses
    where
    vstt.statistic# = vsst.statistic# and
    vsst.sid = vses.sid and
    vstt.name in
      ('opened cursors current',
       'opened cursors cumulative') and
      vses.username is not null
    group by
    vsst.sid,
    vses.username,
    vstt.name
    order by
    vsst.sid,
    vses.username,
    vstt.name
    /Here is a query to list all attach aws.
    set pages 500 lines 110
    col usn format a23 heading "USER (SID,SERIAL#,SVR)"
    col aw format a22 heading "OLAP AW (ATTACHED)"
    col generation format 99999 heading "Genrtn"
    select username||' ('||sid||','||serial#||','|| decode(server,
      'DEDICATED','D',
      'SHARED', 'S', 'U')||')' usn,
      gvawo.inst_id,
      owner||'.'||daws.aw_name||' ('||
      decode(attach_mode,
       'READ WRITE', 'RW', 
       'READ ONLY', 'RO',
       'MULTIWRITE', 'MW',
       'EXCLUSIVE', 'XW', attach_mode)||')' aw,
      generation
    from
      dba_aws daws,
      gv$aw_olap gvawo,
      gv$aw_calc gvawc,
      gv$session gvses
    where
      daws.aw_number = gvawo.aw_number and
      sid = gvawo.session_id and
      gvawc.session_id = sid and
      gvawo.inst_id = gvawc.inst_id and
      gvses.inst_id = gvawc.inst_id
    order by
      username,
      sid,
      daws.aw_nameWas this a one off event or is it happening repeatedly? If it is a one-off, then closing the session or stopping and starting the database instance should resolve the problem.

  • Changing from dev to standard edition causes "Could not obtain information about Windows NT group/user error code 0x6e."

    Hello,
    We recently upgrade our SQL Server 2012 SP1 (64bit) dev edition to standard edition, after we purchased the required licence and it was deployed in production.
    Since the edition change, we are now receiving the following error, with some of our jobs, which have an e-mail step in them, which is causing the jobs to fail.
    Msg 14661,Level 16, State 1, Procedure sp_send_dbmail, Line 517
    Query execution failed: Msg 15404, Level 16, State 19, Server BL-SVR15, Line 1
    Could not obtain information about Windows NT group/user 'BLUELIZARD\savaa', error code 0x6e.
    Any ideas how to fix this issue? We were also having a similar error, when executing the jobs, but changing the job owner to SA has fixed this issue.
    Thanks,
    Andy.

    Hi,
    Which user account you used for SQL Server service, domain account or local account?
    If it is domain account, are you able to log in to a machine with it?
    Make sure that the password of account is not expired.
    Also, grant the user Allowed to Authenticate permission and see how it helps.
    Refer to the below article:
    http://geeks.ms/blogs/ozonicco/archive/2013/01/14/208266.aspx
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Delivery Notes - No VAT Group (SAP Error Code -10)

    Hi
    I already created delivery notes before, but today an error occured "VAT-Group Missing..."
    Do I have to set the VATGroup property manually in the Document Line? If I do with a fixed value, it works again.. But where do I get the right VAT Group? From customer (Business Partner) or from Item? (Maybe if you could paste me a little code example if you already solved this)
    Thanks and Regards

    Hi
    Thanks for the hint.
    I already solved it, it was a mistake in the input data of the Addon: I did not set the Warehouse Code..
    If Warehouse Code is empty (""), obviously the VAT cannot be calculated (though the error message "VAT-Group Missing.." does not really help here.)
    Regards

  • Product group creation error

    Hi Guys,
    While creating product group i am getting the following error can any one help me out to resolve the same
    The error
    Required parameters missing when calling up module
    Message no. M3749
    Thanks and regards
    Thamizhchelvan G

    Dear Thamizhchelvan,
    I think you must be working in ECC 5.0 or ECC 6.0 version.
    If so means first create a material say test using material type PROD - Product group in T Code MM01
    and then assign the members in MC85/MC86 for the product group.
    check this link
    product group
    This will solve your problem.
    Regards
    Mangalraj.S

  • AD Group provisioning error

    Hi ,
    I am trying to create group from OIM but getting below error. Please provide me solution on this.
    Running CREATEOBJECT
    Target Class = oracle.iam.connectors.icfcommon.prov.ICProvisioningManager
    <Nov 15, 2013 2:40:23 PM PST> <Error> <ORACLE.IAM.CONNECTORS.ICFCOMMON.PROV.ICPROVISIONINGMANAGER> <BEA-000000> <oracle.iam.connectors.icfcommon.prov.ICProvisioningManager : createObject : Error while creating user
    java.lang.NumberFormatException: For input string: ""
            at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
            at java.lang.Long.parseLong(Long.java:431)
            at java.lang.Long.parseLong(Long.java:468)
            at oracle.iam.connectors.icfcommon.prov.ICProvisioningManager.init(ICProvisioningManager.java:104)
            at oracle.iam.connectors.icfcommon.prov.ICProvisioningManager.init(ICProvisioningManager.java:123)
            at oracle.iam.connectors.icfcommon.prov.ICProvisioningManager.createObject(ICProvisioningManager.java:267)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADIDCCREATEOBJECT.CREATEOBJECT(adpADIDCCREATEOBJECT.java:109)
            at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpADIDCCREATEOBJECT.implementation(adpADIDCCREATEOBJECT.java:54)
            at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:196)
            at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2492)
            at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:3148)
            at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(tcScheduleItem.java:716)
            at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:602)
            at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
            at com.thortech.xl.dataobj.tcScheduleItem.insertResponseMilestones(tcScheduleItem.java:1864)
            at com.thortech.xl.dataobj.tcScheduleItem.eventPostUpdate(tcScheduleItem.java:890)
            at com.thortech.xl.dataobj.tcDataObj.update(tcDataObj.java:662)
            at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:508)
            at com.thortech.xl.adapterfactory.events.tcAdpEvent.updateSchItem(tcAdpEvent.java:187)
            at com.thortech.xl.adapterfactory.events.tcAdpEvent.finalizeProcessAdapter(tcAdpEvent.java:3773)
            at com.thortech.xl.adapterfactory.events.tcAdpEvent.finalizeAdapter(tcAdpEvent.java:3955)
            at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpCGADPTUBUPDATEFORMFIELD.implementation(adpCGADPTUBUPDATEFORMFIELD.java:73)
            at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:196)
            at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2492)
            at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:3148)
            at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(tcScheduleItem.java:716)
            at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:602)
            at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
            at com.thortech.xl.dataobj.tcORC.insertNonConditionalMilestones(tcORC.java:847)
            at com.thortech.xl.dataobj.tcORC.completeSystemValidationMilestone(tcORC.java:1162)
            at com.thortech.xl.dataobj.tcOrderItemInfo.completeCarrierBaseMilestone(tcOrderItemInfo.java:794)
            at com.thortech.xl.dataobj.tcOrderItemInfo.eventPostInsert(tcOrderItemInfo
    Thanks,
    Amit

    Have you supplied a value for all the neccessary fields?  You could also try enabling your debug logging.  There is some value that you are not providing.  Are there any default values that you have not supplied a 1 or 0 for that are checkboxes?
    -Kevin

  • Supplier Group Creation Error  in SRM 7.0

    Hello,
      We are on SRM 7.0, SP 9. When creating a root supplier group using tcode PPOCV_BBP in SRM, we are  getting a "DATA_LENGTH_0", "CX_SY_RANGE_OUT_OF_BOUNDS" error in the program "SAPLRHOMDETAIL_PP01".
    This error happens during the new supplier group creation process, when we change the default name of the vendor group with a custom name and try to save the new supplier group.
    Please let me know if any one has come across this issue.
    Thanks,
    Raj

    HI Raj,
    you have to implement the note 1572049  to resolve this issue.
    Regards
    Ajay
    Edited by: ajay ch on Aug 15, 2011 10:57 AM

  • Partner, group editing error

    Welcome to everyone! I am the first BlackBerry user.
    All well and good for all. Fortnight flay the classic model. My problem is the following. Partner or group of Irish editing error "The partner can name up to 9 characters in length." Have you tried everything out of 8 characters, 10 characters + - I can not save the contact changes. Error ?????
    It should help!: Dots:

    Yes, there is a language barrier here & I do not understand.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Group Tree: Error in Ajax response - message: missing } in XML expression

    Hi,
    We were using a previous version of Crystal libs and viewer. I wanted to get up to date with the latest jars and viewer so I downloaded and installed the version with Eclipse 3.4.1 and crystal development bundled together.
    I've copied the new jars from there into my existing project. I've also copied the folder cyrstalreportviewers into the project. We're using Tomcat 6.
    I've now got a problem with the Group Tree at the moment since I started using the latest libraries and crystal report viewers.
    My web.xml looks like this.
            <context-param>
              <param-name>crystal_image_uri</param-name>
              <param-value>/crystalreportviewers</param-value>
         </context-param>
         <context-param>
              <param-name>crystal_image_use_relative</param-name>
              <param-value>webapp</param-value>
         </context-param>
            <servlet id="CrystalReportViewerServlet">
              <servlet-name>CrystalReportViewerServlet</servlet-name>
              <display-name>CrystalReportViewerServlet</display-name>
              <servlet-class>
                   web.servlet.ReportingViewerServlet
              </servlet-class>
              <load-on-startup>1</load-on-startup>
         </servlet>
           <servlet-mapping id="CrystalReportViewerServletMapping">
              <servlet-name>CrystalReportViewerServlet</servlet-name>
              <url-pattern>/CrystalReportViewerHandler</url-pattern>
         </servlet-mapping>
    A request to the uri https://......../WebApp/CrystalReportViewerHandler?id=3
    The servlet doesn't do anything that seems to be uncommon. I can post more precisely what it does if needed.
    The report will load correctly, I don't get an error page asking if my crystalreportviewers/ path is accessable to the server.
    I get a parameter page asking for a value. I enter that and click OK.
    The viewer sends a POST request to my Servlet and is handled correctly.
    The report is then loaded.
    On the click of an item in the Group Tree it sends an Ajax POST request and I then get the following error:
    message: missing } in XML expression
    fileName: https://localhost:8080/WebApp/crystalreportviewers/allInOne.js
    lineNumber: 10
    stack: ()@:0
    eval("(\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n)")@:0
    ([object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
    ([object Object],[object Object],[object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:12
    ([object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
    ()@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
    ([object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
    ([object XMLHttpRequest])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
    ([object Object],[object Event])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
    ([object Event])@https://localhost:8080/WebApp/crystalreportviewers/allInOne.js:10
    name: SyntaxError
    Clicking on the Groups headers on the right hand pane work as expected. Although I notice they are not Ajax requests.
    I've spent a few days at this now and I feel like I'm running out of options but to revert back to the previous version we were using. I presume this works elsewhere so I've got to be doing something incorrectly with my setup.
    If anyone needs more info then please ask.
    Thanks,
    Patrick

    Hi Ted,
    Thanks for your reply.
    That's our own Servlet. It extends javax.servlet.http.HttpServlet
    doGet does the following stuff:
    Creates a ReportClientDocument.
    Sets the ReportAppServer to "inproc:jrc".
    Opens the report as read only.
    Gets the DBController and calls logon on it.
    Then calls replaceConnection.
    Adds some discrete param values.
    Creates a CrystalReportViewer.
    gets the report source from the report client document.
    sets the report source on the crystal report viewer.
    set own page to true.
    sets the report source in the session.
    The crystal Report Viewer then processes the Http Request.
    doPost:
    gets the report source from the session.
    creates a CrystalReportViewer.
    sets the report source on the crystal report viewer.
    set own page to true.
    The crystal Report Viewer then processes the Http Request.
    One thing I changed in there was the way the data source was changed. It used to loop through tables.
    Tables tables = clientDoc.getDatabaseController().getDatabase().getTables();
    newTable.setQualifiedName(qualifiedName);
    clientDoc.getDatabaseController().setTableLocation(origTable, newTable);
    Now it does this:
    DatabaseController dbController = clientDoc.getDatabaseController();
    dbController.logon(username, password);
    dbController.replaceConnection(new ConnectionInfo(), connectionInfo, null, DBOptions._useDefault);
    If you need more info please do let me know. Thanks for your help.
    Patrick

  • LabWindows CVI and SQL Toolkit cursor/sch​ema error

    We are using CVI 8.5 and SQL Toolkit 2.0.6 to write data to a SQL Server 2008 database.  We are utilizing the Microsoft ODBC SQL Server (non-native) driver.  We build a transaction that calls stored procedures on the database to write the data.  Occasionally we get the following error:
    "Could not complete cursor operation because the table schema changed after the cursor was declared"
    The error is unusual since we only use one cursor and it is in a stored procedure that gets called by other software hundreds of times a day and never fails.  Our database is also designed to only append records, not change existing ones.  We're trying to pinpoint the error and I'm wondering if anyone knows if the SQL Toolkit uses cursors to build transactions or if this error has been seen by others.  Since upgrading the toolkit or drivers takes a lot of effort, I want to make sure that I understand the problem before I start throwing darts at it.  Thanks in advance for any insight.

    I've attached the function that's failing.  Unfortunately, the code isn't designed with much resolution as to what SQL toolkit call failed, since these calls haven't failed once validated and put into the production environment.  Can you tell if any of these functions use a cursor.  I could certainly try adding more resolution to the error handling, but since we've only seen errors occasionally in the production environment, I'd need to release a temp version and monitor it.  Let me know what you think.  Thanks.
    Attachments:
    StoreTestData.txt ‏5 KB

  • Group Calendar Error in UWC

    Hi,
    We are having a problem in view Group Calendar, After creating group calendar and adding members, when we try to view it in UWC, it gives following error:
    Calendar Not Available*
    Could Not Display View*
    The selected calendar(s) was either deleted or does not exist or you do not have permissions to view it. Select another calendar(s).*
    How ever we can View / Edit the same group calendar through "SUN Java Calendar Express"....Any idea which patch level can fix this issue..???
    Here below are the Product versions:
    UWC Patch Level:
    Patch: 118540-21 Obsoletes: 117287-99, 117819-13, 119156-07 Requires: Incompatibles: Packages: SUNWuwc
    Patch: 118540-42 Obsoletes: 117287-99, 117819-13, 119156-07 Requires: Incompatibles: Packages: SUNWuwc
    Calendar Server Patch level:
    Patch: 116577-24 Obsoletes: 117706-08 Requires: Incompatibles: Packages: SUNWica5, SUNWics5
    Patch: 117860-16 Obsoletes: Requires: Incompatibles: Packages: SUNWica5, SUNWics5
    Patch: 118186-16 Obsoletes: Requires: Incompatibles: Packages: SUNWica5, SUNWics5
    Patch: 118458-03 Obsoletes: Requires: Incompatibles: Packages: SUNWscics
    Patch: 117776-08 Obsoletes: Requires: Incompatibles: Packages: SUNWscics

    Sp00ky_Geek wrote:
    We are having a problem in view Group Calendar, After creating group calendar and adding members, when we try to view it in UWC, it gives following error: Which interface did you use to create the group calendar, how many members did you add and what were they?
    Calendar Not Available*
    Could Not Display View*
    The selected calendar(s) was either deleted or does not exist or you do not have permissions to view it. Select another calendar(s).*Are there any errors in the uwc.log file to indicate what the problem may be?
    How ever we can View / Edit the same group calendar through "SUN Java Calendar Express"....Any idea which patch level can fix this issue..???Not enough information to determine what the cause may be. I would start narrowing down the problem by removing group members one by one and seeing if there is a particular member which is causing the problem. Then look at that account and see if there is anything different/unusual etc.
    Regards,
    Shane.

Maybe you are looking for

  • MRP run without one storage location

    Dear All, My client's requirement is they need to run MRP on plant level without considering one storage location stock e.g if a material is having stock of 10 in unrestricted with storage location 1104. Now when mrp is run for 100 quantity planned o

  • Java n database...

    java store data in Access?? MsSQL server?? MySQL??

  • Tpsend failure return -1 tperror 6

    hi, Iam trying out to write conversational client and server,flags are properly set for tpsend and tprecv both sides.But Iam getting tperror 6 for tpsend and tprecv at both sides.Please help me out for this.Suggest some url also so that i can chk out

  • Software Update does not keep packages.

    When using Software Update, there is a choice to Download and Install Package. The help info, says that this will be kept in the Downloads folder, (as are downloads from Safari). Selecting Download and Install Package from the menu, which starts the

  • IMovie shared "using quicktime"

    Can anyone please tell me: 1) if Macbook can make an iMovie project autoplay when put on a CD? Movies are exported "using Quicktime". 2) A 2 minute movie usually end up being some 50MB in size. Can I reduce file size (for websites) without compromisi