Query showing Error

Dear Experts.,
Am created one query for retreving the data based on location and the document date in A/R invoice i write query in over demodatabase  it getting exact report.. after that i write this query into Original  database it getting error like
"Arithmatic Overflow error converting expression to data type date time  'User-Defined Values'  (CSHS)"
Query-
SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode], T0.[CardName], T0.[DocTotal] FROM OINV T0 WHERE T0.[DocDate] >=[%0] AND  T0.[DocDate] <=[%1] AND T0.[DOCENTRY] IN (SELECT DISTINCT T1.DOCENTRY FROM INV1 T1 WHERE T1.LOCCODE='2')
Regards
Shamseer

Try this one:
SELECT T0.DocNum, T0.DocDate, T0.CardCode, T0.CardName, T0.DocTotal
FROM OINV T0
WHERE T0.DocDate >='[%0]' AND T0.DocDate <='[%1]'
AND T0.DOCENTRY IN (SELECT DISTINCT T1.DOCENTRY FROM INV1 T1 WHERE T1.LOCCODE='2')

Similar Messages

  • SSRS query shows error no columns

    this is the query command Text:
    ="select pallet_id, pallet_create_dm,pn_id from MATS_ITG.pwax_pen_link where pallet_id  in ("& Join(Parameters!pallet_id.Value,",") &")"
    when it querys it shows error
    An error has occurred during report processing. (rsProcessingAborted)
    Query execution failed for dataset 'DsPartial_lookup'. (rsErrorExecutingCommand)
    ERROR [42703] ERROR 2624: Column "SGAC2207H0" does not exist 
     pallet_id is a multiple value  ,SGAC2207H0 is just my data
    can not figure out why, Please help me

    Hi ,
      Pallet_ID parameter seems to passing string like 'SGAC2207H0' . Check and change the parameter to pass numbers by checking the assignment to the value column in the parameter. If still need the string to be passed , Try the below expression  
    ="select pallet_id, pallet_create_dm,pn_id from MATS_ITG.pwax_pen_link where pallet_id in ('"& Join(Parameters!pallet_id.Value,"','") &"')"
    Best Regards Sorna

  • In  RSA1 transaction, I written SELECT QUERY while compile It shows error

    Hi All,
                   While compile my SELECT query in RSA1 trans, ENDROUTINE, It show error...
                Select single MAX( date )
                         from dbtable
                         into W_DATE
                        where DOC_NUMBER = w_itab-DOC_NUMBER
                          and S_ORD_ITEM = w_itab-S_ORD_ITEM
                          and Plant     = 'number'.
    ERROR
    E:Unknown column name " date ". not determined until runtime, you
    cannot specify a field list.
    help me please
    reward

    Hi,
    make sure the column 'date' exists in your dbtable. If that is the case, you may be need to take out the spaces in ( date ).
    regards
    Siggi

  • Urgent,showing error while running form..pls,help...

    Hi,
    I have created my own view named GP_NUIF_V and have also successfully established a Database connection,using FWK_TBX_TUTORIAL.I have developed a personal page in Oracle9i JDeveloper ,which is to fetch particular details from my view and show it .. but whenever I run my form I am continuously getting this type of error..pls,help me out ,as my project delivery is nearing..for this I am not been able to head on to registering the form..I have checked from Pl/Sql developer that my query is just running fine as I wanted it to be..I have also changed the FNDNAM in the .dbc file to my view name but it is giving me the same error..please,look at my error and suggest all other ways in how I can solve my problem ,as early as possible..
    Error Page
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.adf.mds.exception.MDSRuntimeException
         at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:888)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1064)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1794)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    ## Detail 0 ##
    oracle.adf.mds.exception.MDSRuntimeException
         at oracle.adf.mds.internal.MUnResolvedState.resolveState(MUnResolvedState.java:193)
         at oracle.adf.mds.internal.ElementData.resolveState(ElementData.java:509)
         at oracle.adf.mds.internal.ElementData.getUntransAttrVal(ElementData.java:922)
         at oracle.adf.mds.internal.ElementData.getAttrVal(ElementData.java:835)
         at oracle.adf.mds.internal.ElementData.getAttributeValue(ElementData.java:260)
         at oracle.adf.mds.internal.Cache.getAttribute(Cache.java:237)
         at oracle.adf.mds.internal.MetadataManagerBase.getAttributeValueInternal(MetadataManagerBase.java:1069)
         at oracle.adf.mds.internal.MElementImpl.getAttrValueOrExpression(MElementImpl.java:620)
         at oracle.adf.mds.internal.MElementImpl.getAttributeValue(MElementImpl.java:230)
         at oracle.adf.mds.MElement.getLocalRef(MElement.java:291)
         at oracle.apps.fnd.framework.webui.JRADWebBeanMetaData.getUINodeName(JRADWebBeanMetaData.java:1812)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.addAkChildren(OAWebBeanContainerHelper.java:223)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:197)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:123)
         at oracle.apps.fnd.framework.webui.OARowLayoutHelper.setMetaDataProperties(OARowLayoutHelper.java:74)
         at oracle.apps.fnd.framework.webui.OARowLayoutHelper.createWebBean(OARowLayoutHelper.java:53)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1046)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:782)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:469)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:460)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.addAkChildren(OAWebBeanContainerHelper.java:229)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:197)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:123)
         at oracle.apps.fnd.framework.webui.OAContentContainerHelper.setMetaDataProperties(OAContentContainerHelper.java:74)
         at oracle.apps.fnd.framework.webui.OAContentContainerHelper.createWebBean(OAContentContainerHelper.java:55)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1046)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:782)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:469)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:460)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.addAkChildren(OAPageLayoutHelper.java:657)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:197)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:123)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.setMetaDataProperties(OAPageLayoutHelper.java:243)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.createWebBean(OAPageLayoutHelper.java:194)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1046)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:993)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:902)
         at oracle.apps.fnd.framework.webui.OAPageBean.createRootWebBean(OAPageBean.java:3966)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:1962)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1562)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)
    oracle.adf.mds.exception.MDSRuntimeException
         at oracle.adf.mds.internal.MUnResolvedState.resolveState(MUnResolvedState.java:193)
         at oracle.adf.mds.internal.ElementData.resolveState(ElementData.java:509)
         at oracle.adf.mds.internal.ElementData.getUntransAttrVal(ElementData.java:922)
         at oracle.adf.mds.internal.ElementData.getAttrVal(ElementData.java:835)
         at oracle.adf.mds.internal.ElementData.getAttributeValue(ElementData.java:260)
         at oracle.adf.mds.internal.Cache.getAttribute(Cache.java:237)
         at oracle.adf.mds.internal.MetadataManagerBase.getAttributeValueInternal(MetadataManagerBase.java:1069)
         at oracle.adf.mds.internal.MElementImpl.getAttrValueOrExpression(MElementImpl.java:620)
         at oracle.adf.mds.internal.MElementImpl.getAttributeValue(MElementImpl.java:230)
         at oracle.adf.mds.MElement.getLocalRef(MElement.java:291)
         at oracle.apps.fnd.framework.webui.JRADWebBeanMetaData.getUINodeName(JRADWebBeanMetaData.java:1812)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.addAkChildren(OAWebBeanContainerHelper.java:223)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:197)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:123)
         at oracle.apps.fnd.framework.webui.OARowLayoutHelper.setMetaDataProperties(OARowLayoutHelper.java:74)
         at oracle.apps.fnd.framework.webui.OARowLayoutHelper.createWebBean(OARowLayoutHelper.java:53)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1046)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:782)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:469)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:460)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.addAkChildren(OAWebBeanContainerHelper.java:229)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:197)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:123)
         at oracle.apps.fnd.framework.webui.OAContentContainerHelper.setMetaDataProperties(OAContentContainerHelper.java:74)
         at oracle.apps.fnd.framework.webui.OAContentContainerHelper.createWebBean(OAContentContainerHelper.java:55)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1046)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:782)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:469)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:460)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.addAkChildren(OAPageLayoutHelper.java:657)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:197)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.setMetaDataProperties(OAWebBeanContainerHelper.java:123)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.setMetaDataProperties(OAPageLayoutHelper.java:243)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.createWebBean(OAPageLayoutHelper.java:194)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanUsingHelper(OAWebBeanFactoryImpl.java:1046)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBeanFromCustomTables(OAWebBeanFactoryImpl.java:993)
         at oracle.apps.fnd.framework.webui.OAWebBeanFactoryImpl.createWebBean(OAWebBeanFactoryImpl.java:902)
         at oracle.apps.fnd.framework.webui.OAPageBean.createRootWebBean(OAPageBean.java:3966)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:1962)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1562)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:463)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:384)
         at OA.jspService(OA.jsp:40)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:317)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:465)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:379)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:727)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:306)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:767)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:803)
         at java.lang.Thread.run(Thread.java:534)

    Don't put reposts. Follow the issue at one place Re: Urgent,showing error while running form..pls,help...
    --Shiv                                                                                                                                                                                                                                                                   

  • Help, my iphone is in recovery mode, and itunes shows error code 1

    help me, please. my iphone 4 is stuck in recovery mode, and when trying to restore, itunes shows " error code 1, an unknown error occurred"
    please help!!!

    me to ;/
    [23:05:36.0982] [nand_part_core:INF@2289] first 2 pages of boot blocks written with copies of partition table
    [23:05:36.0982] [nand_part_core:INF@3169] next 98 pages of boot blocks written with LLB image of size 150080 bytes
    [23:05:36.0982] [nand_part_core:INF@3172] final 156 pages of boot blocks written with random data in full page format
    [23:05:36.0982] entering update_gas_gauge
    [23:05:36.0982] entering update_ir_mcu
    [23:05:36.0982] looking for mcu nub...no entry from path!
    [23:05:36.0982] TiSerialFlasher not supported on this platform. Exiting.
    [23:05:36.0982] entering update_baseband
    [23:05:36.0982] update_baseband: registering for progress notifications
    [23:05:36.0982] create_baseband_update_options: Got imeisv: 16
    [23:05:36.0982] baseband updater options = <CFBasicHash 0x17533030 [0x59b710]>{type = mutable dict, count = 7,
    [23:05:36.0982] entries =>
    [23:05:36.0982]     0 : <CFString 0xcf1e38 [0x59b710]>{contents = "SystemRoot"} = <CFString 0x1761cb70 [0x59b710]>{contents = "/mnt1"}
    [23:05:36.0982]     5 : <CFString 0xcf1dc8 [0x59b710]>{contents = "DisallowFusiing"} = <CFBoolean 0x59b910 [0x59b710]>{value = true}
    [23:05:36.0982]     6 : <CFString 0xcf1f48 [0x59b710]>{contents = "autoSetupEnv"} = <CFBoolean 0x59b918 [0x59b710]>{value = false}
    [23:05:36.0982]     7 : <CFString 0xcf1e48 [0x59b710]>{contents = "DataRoot"} = <CFString 0x1761e8e0 [0x59b710]>{contents = "/mnt2"}
    [23:05:36.0982]     8 : <CFString 0xcf1d98 [0x59b710]>{contents = "forceUpdate"} = <CFBoolean 0x59b910 [0x59b710]>{value = true}
    [23:05:36.0982]     9 : <CFString 0xcf1f58 [0x59b710]>{contents = "disablePing"} = <CFBoolean 0x59b910 [0x59b710]>{value = true}
    [23:05:36.0982]     10 : <CFString 0xcf1eb8 [0x59b710]>{contents = "IMEISwVersion"} = <CFNumber 0x17533010 [0x59b710]>{value = +16, type = kCFNumberSInt32Type}
    [23:05:36.0982] }
    [23:05:36.0982] update_baseband: querying baseband info
    [23:05:36.0982] bbupdater: BEGIN: Querying info at stage first
    [23:05:36.0982] bbupdater:     BEGIN: Preparing first stage
    [23:05:36.0982] bbupdater:         Requested boot mode:  kBBUBootModeNone
    [23:05:36.0982] bbupdater:         Creating transport, attempts remaining 5...bbupdater:         FAILED(kBBUReturnIOError)
    [23:05:36.0982] bbupdater:         powercycling modem
    [23:05:36.0982] bbupdater:         Creating transport, attempts remaining 4...bbupdater:         FAILED(kBBUReturnIOError)
    [23:05:36.0982] bbupdater:         powercycling modem
    [23:05:36.0982] bbupdater:         Creating transport, attempts remaining 3...bbupdater:         FAILED(kBBUReturnIOError)
    [23:05:36.0982] bbupdater:         powercycling modem
    [23:05:36.0982] bbupdater:         Creating transport, attempts remaining 2...bbupdater:         FAILED(kBBUReturnIOError)
    [23:05:36.0982] bbupdater:         powercycling modem
    [23:05:36.0982] bbupdater:         Creating transport, attempts remaining 1...bbupdater:         FAILED(kBBUReturnIOError)
    [23:05:36.0982] bbupdater:         powercycling modem
    [23:05:36.0982] bbupdater:         Creating transport, attempts remaining 0...bbupdater:         FAILED(kBBUReturnIOError)
    [23:05:36.0982] bbupdater:     END(kBBUReturnIOError): Preparing first stage
    [23:05:36.0982] bbupdater: END(kBBUReturnIOError): Querying info at stage first
    [23:05:36.0982] send_bbupdate_status: sending baseband update status to host
    [23:05:36.0982] update_baseband: calling CFNotificationCenterRemoveEveryObserver
    [23:05:36.0982] update_baseband: bbupdater error: The operation couldn\U2019t be completed. (BBUpdater error 3 - Failed creating a communication transport to baseband.)
    [23:05:36.0982] 0: RamrodErrorDomain/3ec: update_baseband: failed querying baseband info
    [23:05:36.0982] 1: BBUpdater/3: Failed creating a communication transport to baseband.
    [23:05:36.0982] unable to convert ramrod error 1004
    [23:05:36.0982] restore failed with CFError:
    [23:05:36.0982] 0: AMRestoreErrorDomain/ffffffff: failed to update device firmware
    [23:05:36.0982] 1: AMRestoreErrorDomain/ffffffff: ramrod firmware update failed
    [23:05:36.0982] 2: RamrodErrorDomain/3ec: update_baseband: failed querying baseband info
    [23:05:36.0982] 3: BBUpdater/3: Failed creating a communication transport to baseband.
    [23:05:36.0982] waiting for host to acknowledge final status received...
    [23:05:36.0982] void AppleUSBDeviceMuxXXXXXXXXXXXXXXXXXXX(mbuf_t) received reset, closing 0x97b1e4d0
    [23:05:36.0982] recv(12, 4) failed: connection closed
    [23:05:36.0982] unable to read message size: -1
    [23:05:36.0982] received NULL message from host, expected final status
    [23:05:36.0982] attempting to dump restore log
    [23:05:36.0982] writing log file: /mnt1/restore.log

  • Query Engine Error in Crystal Report

    I have a asp application with crystal report as reporting tool. Every thing works fine with Oracle 9i, but when i migrate to Oracle Database 10g Release2 some of the reports in crystal report shows following error report.
    Query Engine Error:'HY00:[oracle][ODBC][ora]ora-01456:may not perform insert/delete/update operation inside a Read Only transaction.
    ORA-06521:at "<dbusername>.<procedure name>,line 58
    ORA-06512:at line1
    I checked the database is in READ WRITE mode.
    any help wolud be appreciated.
    Thanks in Advance
    Debashis

    Hi,
    This is posted in the wrong forum. This forum is for Oracle Berkeley DB. Please find the correct forum and post your question there.
    Regards,
    Alex Gorrod,
    Oracle Berkeley DB

  • In sqlplus after a bad compile where does the show errors data exist?

    I am creating an automated deploy of code for project releases. In sqlplus I use the whenever command for sql errors but it doesn't catch bad compiles. When the process runs it runs as a dba user having the stored procs fully qualified causing the compile error not show in the user_errors but in all_errors. While experimenting I saw that another user could get a new record put into all_errors but my session when in sqlplus I still see the error from my compile from SHOW ERRORS. My question is where is the data from the show errors in my session stored and is it available for me to query so I can check for compile errors within sqlplus?
    Hope that was clear .
    Thanks,
    Ken

    In sqlplus ...You are in the wrong forum. This is for Oracle Forms.

  • Query is executed although sub-query is error?

    Hi everyone,
    I have a problem want to explained.
    My sub-query show an error if it's executed alone: "ORA-00904: invalid column name"
    SELECT id FROM table_A WHERE field1 = 'exam' (field1 is not exist)
    But when execute with:
    SELECT * FROM table_B WHERE id IN (SELECT id FROM table_A WHERE field1 = 'exam')
    it's ok, although we don't have any data filtered. I don't known the reason why? Can anyone explain this?
    Thanks a lot!

    I think you're looking at something like this...
    SQL> select deptno from emp where dname = 'SALES';
    select deptno from emp where dname = 'SALES'
    ERROR at line 1:
    ORA-00904: "DNAME": invalid identifier
    SQL> select deptno from dept where deptno in (select deptno from emp where dname in 'SALES');
        DEPTNO
            30
    SQL> select deptno from dept where deptno in (select deptno from emp where emp.dname in 'SALES');
    select deptno from dept where deptno in (select deptno from emp where emp.dname in 'SALES')
    ERROR at line 1:
    ORA-00904: "EMP"."DNAME": invalid identifier
    SQL> ed
    Wrote file afiedt.buf
      1* select deptno from dept where deptno in (select deptno from emp where dept.dname in 'SALES')
    SQL> /
        DEPTNO
            30In this example, "DNAME" doesn't exist in the emp table, but in the second query it seems to work. However what it's really doing is referencing the "DNAME" column of the outer query. This is proved in the third and fourth query by prefixing the DNAME column with the EMP and DEPT table names to explicitly say where we are expecting the column to come from.

  • Block corruption problem in alert and rman/dbv no show errors

    Hello, I'm new in Oracle's world. I have one problem with Oracle 10.2.0.4 (RHEL 5.6) x64. Archive redo-log enable
    In the alert.log, three days ago show (the server have kernel panic & rebooted):
    Mon Sep 24 18:18:17 2012
    Hex dump of (file 17, block 669888) in trace file xxxxxxxxxx.trc
    Corrupt block relative dba: 0x044a38c0 (file 17, block 669888)
    Bad check value found during buffer read
    Data in bad block:
    type: 6 format: 2 rdba: 0x044a38c0
    last change scn: 0x0000.14eb5309 seq: 0x1 flg: 0x04
    spare1: 0x0 spare2: 0x0 spare3: 0x0
    consistency value in tail: 0x53090601
    check value in block header: 0x6ea3
    computed block checksum: 0x2
    Reread of rdba: 0x044a38c0 (file 17, block 669888) found same corrupted data
    Mon Sep 24 18:18:19 2012
    Corrupt Block Found
    TSN = 23, TSNAME = TABLE_TSD1
    RFN = 17, BLK = 669888, RDBA = 71973056
    OBJN = 86908, OBJD = 86908, OBJECT = SYS_C0040110, SUBOBJECT =
    SEGMENT OWNER = SCHEMA1, SEGMENT TYPE = Index Segment
    Yesterday, we detected this error because SQL don't execute.
    The error repeat 47times and there is 6 different file-block combination (4 index of schemas, 1 of sys and ¡2 tables!)
    First, I launched expdp and exp of the one problematic schema. The export was fine, no errors while exporting, but in the alert.log show one block corruption. Should exp and expd show error and stop?
    Next, I used dbv and verify all dbfs. Only show 2 blocks error in two datafiles (indexes).
    Next, I used RMAN:
    A) check database: no error.
    B) validate database: error in two blocks (logical error) and different from the 6 in alert.log. This two blocks are indexes.
    I re-create this two indexes. When i re-create, the block error disappear (not inmediate, suppose that disappear when block was rewrite). Now dbv and rman show no error.
    I have read one note about types of error, other about procedures if db is in archivelog/noarchivelog. Also if object is index or table. But I find anything about auto-repair corrupt blocks in Oracle or why now the 6 block error are solved. I don't know if two tables with two block corrupt lost rows or not.
    Appreciate any help.
    Regards

    Hello Fran. Result of query before rebuild problematic INDEXES:
    SQL> select * from V$database_block_corruption;
    FILE# BLOCK# BLOCKS CORRUPTION_CHANGE# CORRUPTIO
    3 98857 1 390928740 LOGICAL
    9 48632 1 390325900 LOGICAL
    When I ran RMAN first time to check blocks, it filled V$database_block_corruption with two bad blocks. Different from the 6 errors from alert.:
    RMAN> backup validate check logical database;
    Error backing up file 9, block 48632: logical corruption
    Error backing up file 3, block 98857: logical corruption
    I extracted index name from each block and I re-created it. Also, I created a temporary table in tablespace's datafile to fill blocks empty. Problem solved. Rman / dbv show no error.
    I'm searching for similar experiences and found: Re: Data in bad block
    First 6 bad checksum errors in alert.log disappear with any visible problem?
    Can I sure that DB is fine if RMAN and DBV show no errors?
    Thank you very much
    Edited by: user7755509 on 27-sep-2012 5:43

  • Show errors and test error

    I have used oracle 9.2 for 3 months. I install oralce client 9.0 in my computer. when I write stored procedure. I used SQL Plus to compile. We use package to wrap a store proceure in sql file. we use ref cursor variable to reture record sets to client because we use oledb and ado to acecess oracle. I don't know the reason that my computer didn't worked well yesterday.
    1. in sql plus, all variable changed to char when I made test in sql plus. I used following statement to test:
    variable c ref cursor
    exec package.procedure(:c, variable1);
    print c
    It has error messages: wrong type or numbers in the arguments in calling stored procedure. I checked variable, c changed to char not ref cursor. later, check others, all variable changed to char. very strange. If I defined variable like this: variable c char(20), wrong, like this: variable c char, correct, very strange.
    2. when I compile(in SQL Plus), use statement: @package, If stored procedure has error, use show errors command to display error, cann't display the error. This is first time I met this kind of error.
    In addition, If I connect to other database which is old database we don't use now in sql plus. everythings are ok. I hope somebody could give me reply.
    Thanks.
    My email: [email protected]
    Jerry Mu

    Hi,
    A very common cause for ORA-00942 in a stored procedure (here I'm including packages and functions) is that you have privileges only through a role. Roles don't count in stored procedures if they are compiled with the default "AUTHID DEFINER". Either
    (1) have whatever privileges you need (e.g. "INSERT ON data_quality_report" or "SELECT ON s_org_ext") granted directly to you (the package owner), or to the pseudo-user PUBLIC, and not merely to some role that you have, or
    (2) create the package in the same schema as the tables, or
    (3) create the package with "invoker's rights", like this
    CREATE OR REPLACE PACKAGE data_quality_report_p
    AUTHID CURRENT_USER       -- Added
    AS
        FUNCTION pull_data ...'AUTHID CURRENT_USER" goes right before the keyword "IS" (or "AS") in the package spec; you don't have to do anything to the package body.
    However, if you do this, then whoever runs the package will need to have those privileges, in addition to EXECUTE privileges on the package. Privileges granted through a role will be okay.
    Usually, (1) is the best solution. Have the table owner(s), or someone with the proper authority, grant privileges directly to you.
    By the way, there's no point in having an ORDER BY clause in a sub-query like you're doing, and there's no point in having ORDER BY in an INSERT statement. It's not causing the ORA_00932 error (or any other error), it's just wasting resources.
    Edited by: Frank Kulash on Mar 23, 2011 4:02 PM
    Change DEFINER to CURRENT_USER in a couple of places. (Bad mistake!)

  • HR t.code showing error

    Hii,
    T.code (S_PHO_48000513) in  reporting tools of HR  is showing error
    No user group created
    i have used t.code SQ02,SQ03.
    thanks
    Edited by: aks on Dec 6, 2008 5:33 AM

    Hi Adamski,
    I have been facing the same problem with Ad Hoc query (S_PHO_48000513 ) Your suggestion helped me.
    This tcode will work only for standard query area user groups and infosets
    Whereas S_PHO_48000510 will work for global query areas and infosets.
    Thanks,
    Raghu Kolukuluri

  • How to clear Internal Query Processor Error

    "An unexpected error occured while storing this sales order! Internal Query Processor Error: The query processor excountered an unexpected error during execution.

    Can you show the query? Also, I would run DBCC CHECKDB on the database,  does it return errors?
    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

  • SI_LOCALE - dashboard problem - query result error

    Dear Sirs,
    I have:
    1. Business Objects Business Intelligence platform 4.0 with SP2 and FP 11.
    2. Dashboard Design 2011
    On BI launch pad I have problem with dashboard design object. When user tries to run the dashboard, it shows a error message.
    Query result error:
    The property with ID SI_LOCALE does not exist in the object.
    On the same workstation, If I try to do the same, but using a different user, dashboard displays properly.
    Let me add that the dashboard has 2 queries (from universe).
    I tried to change the regional settings, but without results.
    What does it mean?
    Any idea how to resolve this problem?
    Best regards,
    Michal

    I met the same issue, till now it remains.
    I referred to SAP note
    "1747311
    Receive Error: "The property with ID SI_LOCALE does not exist in the object" when viewing "
    However we already applied SP5. It seems still other factor entails this.

  • 11i Login Page is showing 'Error on Page' while using IE 7

    Hi DBAs,
    I am using Oracle 11.5.10.2 with DB 10.2.0.4 (Single Instance). The EBS is on RUP6 and using JDK 1.6.0_12.
    I was using Firefox and not getting any issue. I used first time IE-7 (7.0.5x) to access the application. I noticed that Pressing the 'Login' button on Login Page , it was saying in the left bottom of the IE says 'Error on page' and was not navigate to any page or did not perform any action.
    I verified all the services and everything was OK. While using Firefox , I was able to navigate the application w/o any issue.
    Using IE 7 , I am able to access
    http://host.domain:8000/OA_HTML/fndvald.jsp?username=sysadmin&;password=sysadmin
    Most of the stuff seems to be working fine while logging in using above URL but the 'GO' buttons are throwing same error in IE 'Error on page'. Rest of the Bottons like 'Edit Navigator' , 'Edit Favorites' are working fine but when on any Page I press the 'Go' button then IE showing Error. It seems to me that when a button need to navigate to next page then IE saying 'Error on page' but when a button have to lunch a new page it is working fine.
    All the responsibilities and links are working fine. Application Navigation using Firefox is working absolutely fine.
    Seeking your advise and suggestions to resolve the issue.
    Thanks
    -Samar-

    Hi Samar,
    You can clear the cache as follows (login as applmgr user, and source the application env file):
    $ cd $COMMON_TOP/_pages
    $ rm -R *
    ML Note: 285218.1 is not helpful as I am on later version of EBS (11.5.10.2 with RUP6 and Developer6i Patchset 19). At Client side I am using Windows XP SP3 with IE 7.0.5.x with JInit 1.3.21 and JRE 1.6.0.12.Did you review the steps under "Recommended MSIE Browser Settings" section?
    Can you reproduce the issue with JInitiator? If yes, any errors in the JInitiator console window? Enable debug (you may also enable trace for Sun JRE) and see if any errors are reported there.
    Note: 549423.1 - How to enable tracing and logging for Sun JRE (Native Plug-in)
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=549423.1
    Regards,
    Hussein

  • Tds report generation showing error

    hi experts ,
    in printing of tds certificate showing error .
    "no data selected for printing " mess no:8i 000
    the problem is comming when i maintained tds certifate no configaration .
    without that tds form printing is working ?
    please help me in this issue ?
    thanks .
    deepthi ?

    Hi,
    Check ur TDS certificate no. ranges again.
    At the time of print preview of certificate, you will not be able to view the certificate no. but once you print it, you will get the certificate no. as well.
    Regards
    Anuj Agarwal

Maybe you are looking for

  • Which AC adaptor can I use with my Satellite M40-307?

    My dog has eaten the cable of my Satellite M40-307 (sadly he survived), I want (NEED) a replacement. The Toshiba web site lists the replacement as a 15-17V adaptor, where quite clearly the adaptor that came with my PC is a 19V adaptor. Also the back

  • TS4268 How can I remove an imessage phone number?

    How can I remove a mobile phone number from Settings>Messages>Send & Receive?

  • Please tell me the driver program of  the sapscript J_1i_are1 ?

    Please tell me the driver program of  j_1i_are1 and which table is populating before printing ? I have to add chapter id for the particular material is it feasible ? Please help .

  • Trap settings in illustrator?

    I have made a logo in illustrator. It is a 3 color logo. I have a green box with yellow shape in it. This logo is placed in InDesign. The press operator would like a trap. How do I do this? Do I change settings in illustrator or in InDesign? And then

  • Binding with .length

    Hi - My boss and I working looking though the XFA specification and he noticed the ability to use aggregate functions like .length.  But when ever I enter (schema path).length into designer it easies it.  Can someone provide some guidence?  I use an