Error in Query (EXCEPT)

Dear Experts,
I Have Error in query
My Query Such as:
Select TransNum from Oinm where transType=310000001
Except
Select Docnum from [dbo].[Opn_Stock] where U_ TransTypeStk=310000001
Show Error: Browse mode is invalid for statements containing a UNION, INTERSECT and EXCEPT operator.
Note: This query smoothly run in Sql 2005 but throw Error in SAP while execute in sap query generator.
Regards,
Sumeet Vaity

The SBO generally inserts a for browse line at the end of the query. But not allways! E.g. probably your query would work if you refrase it in such a way:
Select TransNum from Oinm where transType=310000001
Except --union
Select Docnum from dbo.Opn_Stock where U_ TransTypeStk=310000001
That is it does not insert this line in case of a union, even in the comment part!

Similar Messages

  • Query erroring with OutOfMemory exception

    Hi,
    When I run this query:
    SELECT VENDPACKINGSLIPTRANS.COSTLEDGERVOUCHER, VENDPACKINGSLIPTRANS.ITEMID, VENDPACKINGSLIPTRANS.INVENTTRANSID,VENDPACKINGSLIPJOUR.PURCHID, VENDPACKINGSLIPTRANS.NAME, VENDPACKINGSLIPTRANS.QTY
    FROM VENDPACKINGSLIPTRANS INNER JOIN
    VENDPACKINGSLIPJOUR ON VENDPACKINGSLIPTRANS.PACKINGSLIPID = VENDPACKINGSLIPJOUR.PACKINGSLIPID
    WHERE (VENDPACKINGSLIPTRANS.DATAAREAID = 'agl')
    it returns the results in about 12 seconds.
    This one however runs for about 12 minutes before crashing.
    SELECT VENDPACKINGSLIPTRANS.COSTLEDGERVOUCHER, VENDPACKINGSLIPTRANS.ITEMID, VENDPACKINGSLIPTRANS.INVENTTRANSID,VENDPACKINGSLIPJOUR.PURCHID, VENDPACKINGSLIPTRANS.NAME, VENDPACKINGSLIPTRANS.QTY
    FROM VENDPACKINGSLIPTRANS INNER JOIN
    VENDPACKINGSLIPJOUR ON VENDPACKINGSLIPTRANS.PACKINGSLIPID = VENDPACKINGSLIPJOUR.PACKINGSLIPID
    WHERE (VENDPACKINGSLIPTRANS.DATAAREAID = 'agp')
    As it runs I can see that file C:\Users\carronp\AppData\Local\Temp\2\tmp55B3.tmp grows to over 4GB.
    When it crashes it throws the following error:
    An error occurred while executing batch. Error message is: Exception of type 'System.OutOfMemoryException' was thrown.
    My The data file of my database is on D:\ and the log file is on L:\ so I can't see why C:\ would be getting filled.
    Has anybody seen an issue like this before?
    Cheers
    Paul

    Paul 
    What if you create a procedure that accepts parameters , for  example
    CREATE PROCEDURE sp1
    @Par VARCHAR(5)
    AS
    SELECT VENDPACKINGSLIPTRANS.COSTLEDGERVOUCHER, VENDPACKINGSLIPTRANS.ITEMID, VENDPACKINGSLIPTRANS.INVENTTRANSID,VENDPACKINGSLIPJOUR.PURCHID, VENDPACKINGSLIPTRANS.NAME, VENDPACKINGSLIPTRANS.QTY
    FROM VENDPACKINGSLIPTRANS INNER JOIN
    VENDPACKINGSLIPJOUR ON VENDPACKINGSLIPTRANS.PACKINGSLIPID = VENDPACKINGSLIPJOUR.PACKINGSLIPID
    WHERE (VENDPACKINGSLIPTRANS.DATAAREAID = @Par)
    EXEC sp1 @Par='agp'
    EXEC sp1 @Par='agl'
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Financial Reporting Exception - Error executing query: java.lang.Arithmetic

    Hi all,
    I'm using the Financial Reporting Studio 11.1.2.507 to develop a report to a planning application, so i'm using a planning connection to do it. This report involves some calcs and i have sure that is possible generate a divide by zero. But what happen is: I started developing this report using the user admin and no error message was shown. Then when i tryed to acess this report with a user other than the admin user the error occurs: "Error executing query: java.lang.ArithmeticException: / by zerojava.lang.ArithmeticException".
    So, have you seen this scenario before?
    Could you help me with this issue?
    p.s: if i wasn't clear enough, please tell me!
    Warm regards,
    Rafael Melo - Brasil

    Mehmet,
    Thanks a lot for your quick response. The error message appears when i acess through the workspace. When I was developing I was acessing with admin user (FR Studio) and now I'm using other user to test the report in the workspace. I've commited a mistake when i thought that the user point of view that I defined when i was developing would be applied over all users. So, when I opened the report with a user other than the admin the error ocurred because the default attributes resulted in a empty resultset or something like that.
    Is there a way to define a user point of view (pov) for all user at once?
    Best Regards,
    Rafael Melo

  • Error in loading Exceptions panel

    Hi all
    I'm trying to apply an exception on a worksheet (abs % err > 20 %) to see what items have a inacurate forecast.
    And I'm faceing the next problem:
    I set the exception conditions, hit ok, rerun and the worksheet is the same, when I try to go back to the exception window, the window is empty and stuck, the only buttons available is OK & Cancel if I hit OK -> ERROR Check connection to server.
    When I checked the Java Console the following Error occurred:
    2009-10-26 14:06:41,234 [DataLoaderThread] ERROR collaborator.querywizard.wizard :: Error in loading Exceptions panel
    java.lang.IllegalArgumentException: Malformed pattern "#.##0"
         at java.text.DecimalFormat.applyPattern(Unknown Source)
         at java.text.DecimalFormat.applyPattern(Unknown Source)
         at com.demantra.common.utils.StringUtility.getLocalizedFormat(StringUtility.java:730)
         at com.demantra.portal.querywizard.ExceptionsPanel.getTextFieldStyle(ExceptionsPanel.java:755)
         at com.demantra.portal.querywizard.ExceptionsPanel.showExceptionsTable(ExceptionsPanel.java:434)
         at com.demantra.portal.querywizard.ExceptionsPanel.setInitialContext(ExceptionsPanel.java:383)
         at com.demantra.portal.querywizard.ExceptionsPanel.run(ExceptionsPanel.java:202)
         at com.demantra.portal.querywizard.ExceptionsPanel.<init>(ExceptionsPanel.java:193)
         at com.demantra.portal.querywizard.WizardManager.getPanelById(WizardManager.java:258)
         at com.demantra.portal.querywizard.WizardManager$DataLoaderThread.run(WizardManager.java:1081)
    If someone is willing and able to help I'm waiting for their suggestions.
    Thx
    All

    This is the lo from Java Console when adding exception Adjusted history > 40 reruning the worksheet and trying to reopen the exception window and stopped working:
    2009-10-27 10:49:38,328 [thread applet-com.demantra.partner.client.main.PartnerApplet.class] INFO dpweb.general :: Worksheets Window Logging Started...
    2009-10-27 10:49:38,328 [thread applet-com.demantra.partner.client.main.PartnerApplet.class] INFO dpweb.general :: Worksheets Window is started in Online mode.
    2009-10-27 10:49:38,421 [thread applet-com.demantra.partner.client.main.PartnerApplet.class] INFO dpweb.general :: Worksheets Window Applet codebase : http://localhost:8080/demantra/portal/
    2009-10-27 10:49:38,484 [thread applet-com.demantra.partner.client.main.PartnerApplet.class] INFO tunnel.general :: No proxy selected
    2009-10-27 10:49:38,812 [thread applet-com.demantra.partner.client.main.PartnerApplet.class] INFO dpweb.general :: Worksheets Window is using Server Time Zone Europe/Bucharest
    2009-10-27 10:49:52,750 [Keep_Session_Alive_Thread] INFO dpweb.connection :: Connectivity status is: 'Connected'
    2009-10-27 10:50:00,234 [Get_Meta_Data_Thread] INFO dpweb.query.data :: Note: Query test3 loaded, contains 5142 combinations
    java.lang.NullPointerException
         at com.klg.jclass.chart.JCChartLegendManager.drawLegendItemSymbol(JCChartLegendManager.java:555)
         at com.klg.jclass.util.legend.JCLegend.drawLegendItem(JCLegend.java:548)
         at com.klg.jclass.util.legend.JCLegend.paintComponent(JCLegend.java:437)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at com.klg.jclass.chart.JCChart.paintChildren(JCChart.java:820)
         at javax.swing.JComponent.paint(Unknown Source)
         at com.klg.jclass.chart.JCChart.paint(JCChart.java:716)
         at javax.swing.JComponent.paintChildren(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at javax.swing.JViewport.paint(Unknown Source)
         at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
         at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
         at javax.swing.JComponent._paintImmediately(Unknown Source)
         at javax.swing.JComponent.paintImmediately(Unknown Source)
         at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
         at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    2009-10-27 10:51:19,281 [DataLoaderThread] ERROR collaborator.querywizard.wizard :: Error in loading Exceptions panel
    java.lang.IllegalArgumentException: Malformed pattern "#.##0"
         at java.text.DecimalFormat.applyPattern(Unknown Source)
         at java.text.DecimalFormat.applyPattern(Unknown Source)
         at com.demantra.common.utils.StringUtility.getLocalizedFormat(StringUtility.java:730)
         at com.demantra.portal.querywizard.ExceptionsPanel.getTextFieldStyle(ExceptionsPanel.java:755)
         at com.demantra.portal.querywizard.ExceptionsPanel.showExceptionsTable(ExceptionsPanel.java:434)
         at com.demantra.portal.querywizard.ExceptionsPanel.setInitialContext(ExceptionsPanel.java:383)
         at com.demantra.portal.querywizard.ExceptionsPanel.run(ExceptionsPanel.java:202)
         at com.demantra.portal.querywizard.ExceptionsPanel.<init>(ExceptionsPanel.java:193)
         at com.demantra.portal.querywizard.WizardManager.getPanelById(WizardManager.java:258)
         at com.demantra.portal.querywizard.WizardManager$DataLoaderThread.run(WizardManager.java:1081)

  • ERROR while querying ACM driver's information

    I am using following scheme to transmit sound over network:
    file -> input datasource -> processor -> output datasource -> RTPManager -> network
    File from which i am transmitting is temporary. I am create this file before transmit and delete it after.
    1. Application starts
    2. I am perform transmit first time - everything fine, but in std otput i see message "ERROR while querying ACM driver's information".
    3. I am perform transmit second time - everything fine, but file that i am created for transmitting stays locked by JMF for about 20 minutes.
    4. Any transmit after "ERROR while querying ACM driver's information" locks input file for about 15-20 minutes.
    Any suggestions will be appreciated.
    Thanks for advance!

    I can't download your code RAR, so can you just post the code you're using to handle the shutdown? (and please use the code tags)Thanks for anwser. There is entire test code i wrote (code with "mutex" variable is not nessesary, i wrote it just for clearer output):
    import javax.media.*;
    import javax.media.format.AudioFormat;
    import javax.media.protocol.ContentDescriptor;
    import javax.media.protocol.DataSource;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.File;
    import java.nio.channels.FileChannel;
    public class Test {
        public static void main(String[] args) {
            File sourceFile = new File("1.wav");
            for (int i = 0; i < 3; i++) {
                System.out.format("Try number %d\n", i);
                File tempFile;
                try {
                    tempFile = File.createTempFile("TestTemp", ".wav");
                } catch (IOException e) {
                    System.err.format("Cannot create temporary file %s \n", e);
                    return;
                if (!copyFile(sourceFile, tempFile)) {
                    return;
                DataSource ds;
                try {
                    ds = javax.media.Manager.createDataSource(new MediaLocator("file:" + tempFile.getPath()));
                } catch (Exception e) {
                    System.err.format("Cannot create datasource %s \n", e);
                    return;
                Format[] formats = new Format[1];
                formats[0] = new AudioFormat(AudioFormat.ULAW_RTP, 8000, 8, 1);
                ProcessorModel prm = new ProcessorModel(ds, formats, new ContentDescriptor(ContentDescriptor.RAW_RTP));
                Processor processor;
                try {
                    processor = Manager.createRealizedProcessor(prm);
                } catch (Exception e) {
                    System.err.format("Cannot create processor %s \n", e);
                    return;
                processor.close();
                Object mutex = new Object();
                synchronized (mutex) {
                    try {
                        mutex.wait(1000);
                    } catch (InterruptedException e) {
                        System.err.format("Thread interrupted, try number " + i + "\n");
                        return;
                if (!tempFile.delete()) {
                    System.err.format("Cannot delete temporary file, try number " + i + "\n");
                System.out.format("Try end number %d\n", i);
        public static boolean copyFile(File sourceFile, File destFile) {
            FileChannel source = null;
            FileChannel destination = null;
            try {
                source = new FileInputStream(sourceFile).getChannel();
                destination = new FileOutputStream(destFile).getChannel();
                destination.transferFrom(source, 0, source.size());
            } catch (Exception e) {
                System.err.format("Error while copying files %s \n", e);
                return false;
            finally {
                if (source != null) {
                    try {
                        source.close();
                    } catch (IOException e) {
                        System.err.format("Error while trying close source file %s \n", e);
                if (destination != null) {
                    try {
                        destination.close();
                    } catch (IOException e) {
                        System.err.format("Error while trying close destination file %s \n", e);
            return true;
    }I have figured out that if i continue to try deleting files used by processor (that already closed) while program is running, files will be deleted after ~15 minutes. I have figured out this while testing my main application. This test app also may be modified to reproduce this behaviour. If you want, i can submit a modified test code to reproduce this behaviour.
    If JMF is maintaining a file lock, then I assume you've improperly shutdown the processor / datasink...About resource deallocation. First, there is no datasink i have been created manually (may be jmf create it internally, but i dont think so). In my test application i've been created only input datasource and processor. I have tried deallocate datasource also, but this is dont have any effect. In JMF reference we can see this description of method Processor.close():
    "Releases all resources and cease all activity."
    I think this is enough to call Processor.close() to deallocate input file, is that right?

  • Error while querying workflow message attributes for task

    Can some one please help me with this error?
    I get this error when I submit a task in worklist app. I have figure out that it is causing due to one payload in the table in the task. If remove that payload I am able to submit the task.
    Error while querying workflow message attributes for task a99d1cf3-5e91-4c4a-8660-aeae91bfbec0 with version 5.
    Check the underlying exception and the database connection information. If the error persists, contact Oracle Support Services.
    oracle.jbo.JboException: Error while querying workflow message attributes.
    Error while querying workflow message attributes for task a99d1cf3-5e91-4c4a-8660-aeae91bfbec0 with version 5.
    Check the underlying exception and the database connection information. If the error persists, contact Oracle Support Services.
         at oracle.bpel.services.datacontrol.XSDDataControl.invokeOperation(XSDDataControl.java:460)
         at oracle.adf.model.bean.DCBeanDataControl.invokeMethod(DCBeanDataControl.java:430)
         at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:261)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1635)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2144)
         at oracle.adf.model.bean.DCBeanDataControl.invokeOperation(DCBeanDataControl.java:467)
         at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:307)

    Can anybody help me on this?
    I did some google but I get this only which is not much helpful.
    http://download.oracle.com/docs/cd/E14571_01/core.1111/e10113/chapter_bpm_messages.htm

  • FR reports error-5200: Error executing query

    I'm working on FR-11.1.1.3.0238 version. i'm facing issues with some of the reports related to planning application db while launching reports in workspace. Where as the reports are opening with out any issues in FR studio and there is no error message recorded in the studio.The error message is recorded in the workspace related log file.
    I thought that there might be any pov corruption issue so i ran the ManageUserPov utility as well but there is no luck.
    Let me know the cause of this error message and also the resolution for it.
    Below is the error message info,
    *12-12 09:29:10 ERROR jsp     5200: Error executing query: java.lang.ArithmeticException: / by zerojava.lang.ArithmeticException*
    com.hyperion.reporting.util.HyperionReportException: 5200: Error executing query:  java.lang.ArithmeticException: / by zerojava.lang.ArithmeticException
         at com.hyperion.reporting.webviewer.WebDynamicReport.execute(Unknown Source)
    jsp_servlet._modules._com._hyperion._reporting._web._reportviewer.__hrrunjob._jspService(__hrrunjob.java:1411)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.hyperion.reporting.webviewer.HRLocaleFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:531)
         at weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:459)
         at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:159)
         at weblogic.servlet.jsp.PageContextImpl.include(PageContextImpl.java:180)
         at jsp_servlet._modules._com._hyperion._reporting._web._reportviewer.__hrcheckforpovorprompt._jspService(__hrcheckforpovorprompt.java:1486)
         at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.hyperion.reporting.webviewer.HRSecurePagesFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at com.hyperion.reporting.webviewer.HRLocaleFilter.doFilter(Unknown Source)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Thanks in advance
    Edited by: kailash on Dec 13, 2012 5:59 PM

    Neeraj,
    In the FR report server the settings are as you suggested except the TcpTimedWaitDelay = 60, this setting is set to 30.
    The same settings are there in Essbase and Planning servers.
    So i would like to know what exactly is all about the setting and the possible cause of the problem. It would be very helpful if i can get the cause.
    Thanks in advance
    Edited by: kailash on Dec 19, 2012 9:03 PM

  • Error in Raising exceptions in a method and handling the same in the WF

    Hi All
    I tried to implement Raising exceptions in a method and handling the same in the workflow
    in the same way given in SAPtechnical site .
    1.by adding a error msg in exception parameter .
    2. if the select query fails, to fetch the agent then :exit_return 9001 'ztable name' space space space.
    3.in the Background activity in which this method is called there automatically one outcome appears ,and I hav acitvated that outcome and in that done what need to be done for that error handling - just send a mail to concern person .
    4. in the normal outcome of the activity , the step to be executed are there .
    but its not working , if exception come then the WF stuck there only . it do not follow the exception outcome .
    Kindly help me , How can I do the exception handly in WF.
    thanks & Regards
    Kakoli

    > That is usually the case - you catch an error in the underlying program and pass that back so the workflow can go into error.
    > You're doing it correctly.
    I don't think that's quite right.
    If you define an error/exception in a method, it is automatically mapped to an outcome of the step/task.
    If you activate that outcome, then you can handle the exception in a branch of the workflow.
    For example: 'Remote connection is down, please contact Basis'
    The step should only go into error if an outcome occurs that you have NOT activated.
    So the original question is valid. Please give some more information on what the error message is..
    chrs
    Paul

  • ORABPEL-9708 Error while querying workflow task WFTask. Caused by:ORA-00936

    Hi,
    I am trying to integrate my Primavera p6 web version8.0 with the BPM setup 11.1.1.3 . The BPM is setup fine.
    But when I integrated with primavera p6 and on load of workflows portlet of p6 web where the BPM tasks are listed, I am getting following exception in BPM console:
    Error while querying workflow task WFTask.
    Check the underlying exception and the database connection information. If the error persists, contact Oracle Support Services. .
    ORABPEL-9708
    Error while querying workflow task WFTask .
    Error while querying workflow task WFTask.
    Check the underlying exception and the database connection information. If the error persists, contact Oracle Support Services. .
    at oracle.bpel.services.workflow.repos.driver.WFTask.getWFTask(WFTask.java:2181)
    at oracle.bpel.services.workflow.repos.driver.PersistencyService.getWFTask(PersistencyService.java:907)
    at oracle.bpel.services.workflow.query.impl.TaskQueryService.queryTasks(TaskQueryService.java:751)
    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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:89)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.workflow.test.workflow.ExceptionTestCaseBuilder.invoke(ExceptionTestCaseBuilder.java:155)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.common.dms.MethodEventAspect.invoke(MethodEventAspect.java:70)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.common.dms.MethodPhaseEventAspect.invoke(MethodPhaseEventAspect.java:82)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy220.queryTasks(Unknown Source)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryServiceBean.queryTasks(TaskQueryServiceBean.java:120)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryService_oz1ipg_EOImpl.queryTasks(TaskQueryService_oz1ipg_EOImpl.java:1019)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryService_oz1ipg_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused By: java.sql.SQLSyntaxErrorException: ORA-00936: missing expression
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:95)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:135)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:210)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:473)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:423)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1095)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:201)
    at oracle.jdbc.driver.T4CCallableStatement.executeForDescribe(T4CCallableStatement.java:864)
    at oracle.jdbc.driver.T4CCallableStatement.executeMaybeDescribe(T4CCallableStatement.java:948)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1335)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3568)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3620)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1667)
    at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:135)
    at oracle.bpel.services.workflow.repos.driver.WFTask.getWFTask(WFTask.java:2153)
    at oracle.bpel.services.workflow.repos.driver.PersistencyService.getWFTask(PersistencyService.java:907)
    at oracle.bpel.services.workflow.query.impl.TaskQueryService.queryTasks(TaskQueryService.java:751)
    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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.bpel.services.workflow.common.WorkflowServiceCacheEventAdvice.invoke(WorkflowServiceCacheEventAdvice.java:89)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.workflow.test.workflow.ExceptionTestCaseBuilder.invoke(ExceptionTestCaseBuilder.java:155)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.common.dms.MethodEventAspect.invoke(MethodEventAspect.java:70)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at oracle.bpel.services.common.dms.MethodPhaseEventAspect.invoke(MethodPhaseEventAspect.java:82)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy220.queryTasks(Unknown Source)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryServiceBean.queryTasks(TaskQueryServiceBean.java:120)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryService_oz1ipg_EOImpl.queryTasks(TaskQueryService_oz1ipg_EOImpl.java:1019)
    at oracle.bpel.services.workflow.query.ejb.TaskQueryService_oz1ipg_EOImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Could anybody please help me out in resolving the issue?
    Thanks and Regards,
    Krish

    I have the same problem with P6 R8 integration with BPM 11g (running on WL 10.3.5.0). Any sugestions how to solve this?

  • Syntax error (parsing query)

    I'm trying to search based on two properties and got an exception:
    syntax error (parsing query);location=trexsahqt1v:30003 (Errorcode 2029)
    If i set only one condition my code is working fine
    My code....
    for(int i = 0; i < searchParams.length; i++)
    IQueryEntry queryEntry = indexCollection.getNewQueryEntry()    
    if ("createdby".equalsIgnoreCase(searchParams<i>.getPropertyName()))
             queryEntry.setRowType(IQueryEntry.ROW_TYPE_ATTRIBUTE);
             queryEntry.setTermAction(IQueryEntry.TERM_ACTION_EXACT);
             queryEntry.setPropertyName(PropertyName.createCreatedBy());
             queryEntry.setValue("same value")
             queryEntry.setPropertyOperator(IQueryEntry.PROPERTY_OPERATOR_EQUAL);
             queryEntryList.add(queryEntry);
       if ("modifiedby:".equalsIgnoreCase(searchParams<i>.getPropertyName()))
             queryEntry.setRowType(IQueryEntry.ROW_TYPE_ATTRIBUTE);
             queryEntry.setTermAction(IQueryEntry.TERM_ACTION_EXACT);
             queryEntry.setPropertyName(PropertyName.createCreatedBy());
             queryEntry.setValue("same value");
             queryEntry.setPropertyOperator(IQueryEntry.PROPERTY_OPERATOR_EQUAL);
             queryEntryList.add(queryEntry);
    Is any "AND" or "OR" operators I have to setup , if yes please let me know how?
    Really appreciate your help

    I'm trying to search based on two properties and got an exception:
    syntax error (parsing query);location=trexsahqt1v:30003 (Errorcode 2029)
    If i set only one condition my code is working fine
    My code....
    for(int i = 0; i < searchParams.length; i++)
    IQueryEntry queryEntry = indexCollection.getNewQueryEntry()    
    if ("createdby".equalsIgnoreCase(searchParams<i>.getPropertyName()))
             queryEntry.setRowType(IQueryEntry.ROW_TYPE_ATTRIBUTE);
             queryEntry.setTermAction(IQueryEntry.TERM_ACTION_EXACT);
             queryEntry.setPropertyName(PropertyName.createCreatedBy());
             queryEntry.setValue("same value")
             queryEntry.setPropertyOperator(IQueryEntry.PROPERTY_OPERATOR_EQUAL);
             queryEntryList.add(queryEntry);
       if ("modifiedby:".equalsIgnoreCase(searchParams<i>.getPropertyName()))
             queryEntry.setRowType(IQueryEntry.ROW_TYPE_ATTRIBUTE);
             queryEntry.setTermAction(IQueryEntry.TERM_ACTION_EXACT);
             queryEntry.setPropertyName(PropertyName.createCreatedBy());
             queryEntry.setValue("same value");
             queryEntry.setPropertyOperator(IQueryEntry.PROPERTY_OPERATOR_EQUAL);
             queryEntryList.add(queryEntry);
    Is any "AND" or "OR" operators I have to setup , if yes please let me know how?
    Really appreciate your help

  • Runtimr error OBJECTS_OBJREF_NOT_ASSIGNED and Exception  CX_SY_REF_IS_INITI

    Hi All
    when I schedule any BDC pgm in Background by giving job name in SM36 .
    It is giving an runtimr error OBJECTS_OBJREF_NOT_ASSIGNED and Exception  CX_SY_REF_IS_INITIAL .
    Error analysis
        An exception occurred that is explained in detail below.
        The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
         caught in
        procedure "C14T_LISTTOOL_CALL_ALV_GRID" "(FUNCTION)", nor was it propagated by
         a RAISING clause.
        Since the caller of the procedure could not have anticipated that the
        exception would occur, the current program is terminated.
        The reason for the exception is:
        You attempted to use a 'NULL' object reference (points to 'nothing')
        access a component (variable: "GRID1").
        An object reference must point to an object (an instance of a class)
        before it can be used to access components.
        Either the reference was never set or it was set to 'NULL' using the
        CLEAR statement.
    But it is working fine when i running with options 'N' & 'A' in call transaction. when i execute  I'm searching for sap note but not able to find it,
    If any one can solve this issue please ... its very urgent requirement
    Thanks in Advance

    I believe the better forum to post yorr query to, will be [ABAP, General|ABAP Development;.
    From the header of that forum:
    General questions about the ABAP language and language implementations.
    This is not a forum for application specific questions. Web Dynpro , BSP , CRM
    development, ... have their own forums.
    - Ludek

  • FRM-40735 on-error raised unhandled exception ORA-06502

    Hi there,
    I have a form and all the items on canvas are base table items. If iam in normal mode and click on buttons, the LOVs show up correctly.
    If i query records and i click on any of buttons to get LOV i get " FRM-40735 on-error raised unhandled exception ORA-06502". I checked insert_allowed,enabled,update_allowed properties and also format mask for each items and all are correct.
    ANy help is appreciated.
    Thanks

    Use the debugger to single step through your code line by line. The debugger will stop at the line where the error is occurring. Look at that line of code. You will probably see a problem with a data type or the data length.

  • BI scheduler error, 1064: An exception occurred in the service

    I am getting an error below while trying to restart BI scheduler,
    "could not start the oracle bi scheduler service on local computer, error 1064: An exception occurred in the service when handling the control request".
    Obiee is running on windows 2003 server. Scheduler was working fine until env went down, when l tried to restart it, suddenly i get this error message. The other services restart fine. Answers, dboard work fine. Its only the scheduler.
    I tried a couple suggested things on the Forum,
    1) l tried to connect the scheduler user using sqlplus, i get an error, ORA-12560: TNS:protocol adapter error. i cant connect. checked with the DB the user is not locked.
    2) I checked the tnsnames.ora everything is fine.
    3) I tried tns ping the user from cmd line i get an error TNS-03505: Failed to resolve the name.
    The scheduler log details are below
    2010-09-24 07:44:01
    [68008] Scheduler Error:
    Current Table: S_NQ_JOB.
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database.
    Current Table: S_NQ_JOB_PARAM.
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database.
    Current Table: S_NQ_INSTANCE.
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database.
    Current Table: S_NQ_ERR_MSG.
    [nQSError: 17001] Oracle Error code: 12154, message: ORA-12154: TNS:could not resolve the connect identifier specified
    at OCI call OCIServerAttach.
    [nQSError: 17014] Could not connect to Oracle database.
    If enable tracing on sqlnet.ora i get
    (4472) [24-SEP-2010 09:10:14:390] nnftmlf_make_system_addrfile: entry
    (4472) [24-SEP-2010 09:10:14:390] nnftmlf_make_system_addrfile: system names file is E:\oracle\product\10.2.0\client_1\network\admin\tnsnames.ora
    (4472) [24-SEP-2010 09:10:14:390] nnftmlf_make_system_addrfile: exit
    (4472) [24-SEP-2010 09:10:14:390] nnftboot: exit
    (4472) [24-SEP-2010 09:10:14:390] nnftrne: entry
    (4472) [24-SEP-2010 09:10:14:390] nnftrne: Original name: S_NQ_SCHED
    (4472) [24-SEP-2010 09:10:14:390] nnfttran: entry
    (4472) [24-SEP-2010 09:10:14:390] nnfgrne: Query unsuccessful, skipping to next adapter
    (4472) [24-SEP-2010 09:10:14:390] nnfgrne: exit
    (4472) [24-SEP-2010 09:10:14:390] nnfun2a: address for name "S_NQ_SCHED" not found
    (4472) [24-SEP-2010 09:10:14:390] niqname: Return code from nnfsn2a is 1
    (4472) [24-SEP-2010 09:10:14:390] nigtrm: Count in the NI global area is now 0
    Thanks
    Farai

    hi,
    I tried tns ping the user from cmd line i get an error TNS-03505: Failed to resolve the name.Is there any whitespaces in your DSN name or in tnsnames(.ora) file ? please check it once
    Confirm this ,are you using same DB connection in Job manager and connection pool settings ??
    thanks,
    Saichand.v

  • Dynamic query exception

    How to handle dynamic query exception
    in my dynamic query say if i pass the wrong table name it is showing some errors instead i would like to use my own error statement as output
    eg:
    mytable :test_table
    declare mytable varchar2 :=test_table1234 --(which is not present in DB)
    begin
    execute immediate ('select * from '|| mytable);
    -- Error handling here
    end;

    I wouldn't use WHEN OTHERS, not unless you want to be fired for breaking coding standards. If you insist, at least follow it with RAISE.
    Here is a an exposition of the problem, http://www.orafaq.com/wiki/WHEN_OTHERS and another http://tkyte.blogspot.co.uk/2008/06/when-others-then-null-redux.html

  • Errors with querying a query table using non-QoQ query and QoQ query

    HELP ! ! !  Going into testing soon. I need this to work to get correct report results ! ! ! !
    My issue seems similar to the one just answered about Query of Queries RunTime Error
    and the reply from lawhite01 caught my eye.
    This is a 2 parter. The second part is the QoQ part, but the 1st part has a line in the query that is similar to the QoQ one and it uses the same data. Part 1 also throws an error.
    PART # 1.
    I'm trying to use a query table created through QueryNew and then query it.
    I need multiple columns in the query table I create:
    <cfscript>
            tot_AllCurrentDraftListing = QueryNew("AnnounceNum, JP_PDLoc, JP_JS_Title, JP_JS, JP_KW_1, JP_JobTitle, JP_Open, JP_Close, JP_CloseType, JP_CloseName, JP_PosNeed, JP_DirectHire, JP_Desc, JP_Draft, JP_Archived, JP_State, JP_AreaName, JP_AreaID, JP_AreaAlias, JP_Fac_SU, JP_Fac_Facility, JP_FAC_ID, JP_Grade1, JP_sal_low1, JP_sal_high1, JP_Grade2, JP_sal_low2, JP_sal_high2, JP_Grade3, JP_sal_low3, JP_sal_high3, JP_Grade4, JP_sal_low4, JP_sal_high4, JP_Grade5, JP_sal_low5, JP_sal_high5, JP_Posted, JP_TypeHire, JP_HRemail");
        </cfscript>
    Then I populate all the cells of the query table.
    Then I set up to use the created query table.
    I do this first:
        <cfquery name="qAltPostID" datasource="#at_datasource#">
             SELECT AltPoster, fk_Job_AnnounceNum
             from JOB_JPContacts
             Where AltJPContactType = 'AltPosterID'
             and AltPoster = '#session.IHSUID#'
             </cfquery>
    Then, in my first query using the created query, I expect to need to choose from multiple values, so I'm using this line in the query (this is NOT a QoQ query):
                and AnnounceNum IN (<cfqueryparam cfsqltype="CF_SQL_varchar" value="#ValueList(qAltPostID.fk_Job_AnnounceNum)#">)
    I've also tried:
                   and AnnounceNum IN (#ValueList(qAltPostID.fk_Job_AnnounceNum)#)   
    and:
                   and JOB_AnnounceNum IN
                    SELECT fk_Job_AnnounceNum
                    from JOB_JPContacts
                    Where AltJPContactType = 'AltPosterID'
                    and AltPoster = '#session.IHSUID#'
    ERROR is: one record should return. I get 0.
    PART # 2: Here's the QoQ part.
    I get the error:
    Query Of Queries runtime error.
    Comparison exception while executing IN.
    Unsupported Type Comparison Exception: The IN operator does not support comparison between the following types:
    Left hand side expression type = "LONG".
    Right hand side expression type = "STRING".
    A tutorial I found gave an example using only one column for this part of the fix:
         tot_AllCurrentDraftListing = QueryNew("AnnounceNum", "CF_SQL_VARCHAR")
    How would I set up the query with the datatype when I'm using multiple columns:
    <cfscript>
            tot_AllCurrentDraftListing = QueryNew("AnnounceNum, JP_PDLoc, JP_JS_Title, JP_JS, JP_KW_1, JP_JobTitle, JP_Open, JP_Close, JP_CloseType, JP_CloseName, JP_PosNeed, JP_DirectHire, JP_Desc, JP_Draft, JP_Archived, JP_State, JP_AreaName, JP_AreaID, JP_AreaAlias, JP_Fac_SU, JP_Fac_Facility, JP_FAC_ID, JP_Grade1, JP_sal_low1, JP_sal_high1, JP_Grade2, JP_sal_low2, JP_sal_high2, JP_Grade3, JP_sal_low3, JP_sal_high3, JP_Grade4, JP_sal_low4, JP_sal_high4, JP_Grade5, JP_sal_low5, JP_sal_high5, JP_Posted, JP_TypeHire, JP_HRemail");
        </cfscript>
    I used this code after all the cells contained values and before running my QoQ query:
            <cfloop index="intID" from="1" to="#tot_AllCurrentDraftListing.recordcount#" step="1">
                <cfset tot_AllCurrentDraftListing["AnnounceNum"] [intID] = JavaCast("string", intID) />
            </cfloop>
              Is that correct?
    Thanks.
    Whoever can help me with this should be awarded extra points ! ! ! !

                and AnnounceNum IN (<cfqueryparam cfsqltype="CF_SQL_varchar" value="#ValueList(qAltPostID.fk_Job_AnnounceNum)#">)
    If you're passing a list as a param, you need to tell <cfqueryparam> it's a list.  Read:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags_p-q_18.html#1102474
    ERROR is: one record should return. I get 0.
    It's a bit hard to comment on this sort of thing without knowing the data involved.
    A tutorial I found gave an example using only one column for this part of the fix:     tot_AllCurrentDraftListing = QueryNew("AnnounceNum", "CF_SQL_VARCHAR")
    How would I set up the query with the datatype when I'm using multiple columns:
    Again, this is a matter of reading the relevant docs:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/functions_m-r_19.html#292759
    As a general rule, if you're having trouble with the syntax of a CFML statement, look it up in the docs.
    Adam

Maybe you are looking for

  • Backed Up to External HD, Now can't put files back to C drive

    Before my daughter's computer went in for service, I backed up her Itunes to an external HD. Tonight I moved the "Itunes Music Folder" from the ExHD to C:\Documents and Settings\Compaq_Administrator\My Documents\My Music\iTunes\iTunes Music, which is

  • IMac overheating problem? This may help in some cases!

    My daughters iMac frequently suffered of a kernel panic after about 2 hours of use. Symptoms lead to suspect overheating of some component. How I fixed the economical way: http://www.tervis.fidisk.fi/saveimac.html

  • Custom Tag problem - NoSuchMethodError at MyAttInfo

    I am having the following problem when trying to use a taglibrary in my web           application. Does anybody know why I am having this problem?           Thanks,           Ozzie Gurkan           Mon Jan 08 16:55:30 GMT+05:00 2001:<I> <WebAppServle

  • How to install APEX wit E-Business Suite Release 12.0.4

    Hi Community, We have just installed the VISION demo database and the E-Business Suite Release 12.0.4 on a test environment, under SUSE SLES 10 SP3. In order to see if we can take advantege of APEX with the EBS 12.0.4, I would like to know what kind

  • Trying to delete content and settings from iPhone 4 and restoring with an iBackUpBot backup?

    So after iOS 7, I'm experiencing a lot of problems with my iPhone 4 (8gb) with things like the storage filling up too easily with messages. I read a lot of articles online on how to fix the problem and I'm using iBackUpBot to delete all of the SMS at