Error in Report Query

Hi Friends
I have a report with the following query
SELECT  DISTINCT
        CASE WHEN IVPROVISION_ID = 1 OR
            IVPROVISION_ID = 5 OR
            IVPROVISION_ID = 4 OR
            IVPROVISION_ID = 10
        THEN
            APEX_ITEM.CHECKBOX(1,'#ROWNUM#','onclick=enableButton2()')
        ELSE
            APEX_ITEM.CHECKBOX(1,'#ROWNUM#','DISABLED')
        END "PROVISION FOR IV",
        CASE WHEN ISMPROVISION_ID = 1 OR
            ISMPROVISION_ID = 5 OR
            ISMPROVISION_ID = 4 OR
            IVPROVISION_ID = 10
        THEN
            APEX_ITEM.CHECKBOX(2, '#ROWNUM#', 'onclick=enableButton3()')
        ELSE
            APEX_ITEM.CHECKBOX(2, '#ROWNUM#', 'disabled')
        END "PROVISION FOR ISM",
DELIVERED_SERVICE_NAME as "Existing DS",
APEX_ITEM.HIDDEN(3, EQUIPMENT_ID) || APEX_ITEM.SELECT_LIST_FROM_LOV(4, DELIVERED_SERVICE_NAME,'DSLEVEL_LOV', '', 'NO') as "DS Level"
FROM PROV_VIEW
where ((:P0_CLIENT = PROV_VIEW.CUSTOMER_ID)
AND (:P0_SITE = PROV_VIEW.SITE_ID))If I make a modification in the initial part as below the query is throwing error..
SELECT DISTINCT
CASE WHEN IVPROVISION_ID = 1 OR
IVPROVISION_ID = 5 OR
IVPROVISION_ID = 4 OR
IVPROVISION_ID = 10
THEN
APEX_ITEM.CHECKBOX(1,'#ROWNUM#','onclick=enableButton2()') AND APEX_ITEM.CHECKBOX(2,'#ROWNUM#','DISABLED')
ELSE
APEX_ITEM.CHECKBOX(1,'#ROWNUM#','DISABLED')
END "PROVISION FOR IV",
CASE WHEN ISMPROVISION_ID = 1 OR
ISMPROVISION_ID = 5 OR
ISMPROVISION_ID = 4 OR
IVPROVISION_ID = 10
THEN
APEX_ITEM.CHECKBOX(2, '#ROWNUM#', 'onclick=enableButton3()') AND APEX_ITEM.CHECKBOX(1,'#ROWNUM#','DISABLED')
ELSE
APEX_ITEM.CHECKBOX(2, '#ROWNUM#', 'disabled')
END "PROVISION FOR ISM",
DELIVERED_SERVICE_NAME as "Existing DS",
APEX_ITEM.HIDDEN(3, EQUIPMENT_ID) || APEX_ITEM.SELECT_LIST_FROM_LOV(4, DELIVERED_SERVICE_NAME,'DSLEVEL_LOV', '', 'NO') as "DS Level"
FROM PROV_VIEW
where ((:P0_CLIENT = PROV_VIEW.CUSTOMER_ID)
AND (:P0_SITE = PROV_VIEW.SITE_ID))
Any clue?
~Rose

Hi Rose,
The 'AND' in the 'THEN' part of the case statement is syntactically incorrect so you'll need to remove that.
Its not clear from your comment if there is an order of precedence.. ie if IVPROVISION_ID has one of the 1,4,5,10 values, if that always results in the 2nd checkbox being disabled...
Either way, to solve your problem you'll need to test for the values of the 'other' column within your case statement.. eg (if 1st column values in (a,b,c) and 2nd column values not in (x,y,z) then do .... ) If you do that with each of your columns then you should be good.. (eg (x=1 or x=4 or x=5 or x=10) and (y!=1 and y!=4 and y !=5 and y!=10)) then ...
Are you testing your SQL outside of the Apex development framework 1st? Whilst its OK to do it in the Apex builder it'll be easier if you write your SQL in SQL*Developer (or something similar) as its going to be quicker to debug any syntax errors.
Cheers,
Paul.

Similar Messages

  • Ora-06502 pl/sql numeric or value error in Report Query in oracle apex

    Hello all,
    I need your help...
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    I am using bi publisher to generate PDF reports in oracle apex.
    We were using APEX 4.0 and migrated to 4.2 just a week ago.
    Now we have apex 4.2.
    When I try to Create report query,
    Shared Components >> Report Queries then create.
    and test a report in a create wizard I am getting a error "ORA-06502: PL/SQL: numeric or value error: character string buffer too small".
    I have also applied a patch "16760897".
    This issue is because of number of columns in a query is more then 26.
    If I run a report with 26 or less number of columns then the is working fine, otherwise getting this error.
    My before migration report queries working perfectly even now, but not new queries.
    This issue is also in apex.oracle.com.
    You can see
    Not working  - http://apex.oracle.com/pls/apex/f?p=619:4
    Working - http://apex.oracle.com/pls/apex/f?p=619:2:
    Please give a solution.
    Thanks you.

    check the DB version compatibility with apex 4 or your DB version to apex 4.0 support for upgrade!
    Oracle Application Express Installation Requirements for 4.0

  • BI Publisher Report Query Error: "character string buffer too small"

    Using apex.oracle.com, I am trying to make a Report Query (Shared Components > Report Queries) based on many columns (around 60).
    When I enter my SQL in the "Source Query" Text Area and then click Test Report I get the following error:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small In order to try to make the simplest test case possible for this, I then tried entering SQL selecting just from DUAL.
    The following SQL fails with the error mentioned above.
    SELECT
    'wibble' as a
    ,'wibble' as b
    ,'wibble' as c
    ,'wibble' as d
    ,'wibble' as e
    ,'wibble' as f
    ,'wibble' as g
    ,'wibble' as h
    ,'wibble' as i
    ,'wibble' as j
    ,'wibble' as k
    ,'wibble' as l
    ,'wibble' as m
    ,'wibble' as n
    ,'wibble' as o
    ,'wibble' as p
    ,'wibble' as q
    ,'wibble' as r
    ,'wibble' as s
    ,'wibble' as t
    ,'wibble' as u
    ,'wibble' as v
    ,'wibble' as w
    ,'wibble' as x
    ,'wibble' as y
    ,'wibble' as z
    ,'wibble' as ab
    ,'wibble' as ac
    ,'wibble' as ad
    ,'wibble' as ae
    ,'wibble' as af
    ,'wibble' as ag
    ,'wibble' as ah
    ,'wibble' as ai
    ,'wibble' as aj
    ,'wibble' as ak
    ,'wibble' as al
    ,'wibble' as am
    ,'wibble' as an
    ,'wibble' as ao
    ,'wibble' as ap
    ,'wibble' as aq
    ,'wibble' as ar
    ,'wibble' as at
    ,'wibble' as au
    ,'wibble' as av
    FROM dualRemoving the last column from this SQL query (bringing the total number of columns down to 45) as follows and then clicking "Test Report" works successfully.
    SELECT
    'wibble' as a
    ,'wibble' as b
    ,'wibble' as c
    ,'wibble' as d
    ,'wibble' as e
    ,'wibble' as f
    ,'wibble' as g
    ,'wibble' as h
    ,'wibble' as i
    ,'wibble' as j
    ,'wibble' as k
    ,'wibble' as l
    ,'wibble' as m
    ,'wibble' as n
    ,'wibble' as o
    ,'wibble' as p
    ,'wibble' as q
    ,'wibble' as r
    ,'wibble' as s
    ,'wibble' as t
    ,'wibble' as u
    ,'wibble' as v
    ,'wibble' as w
    ,'wibble' as x
    ,'wibble' as y
    ,'wibble' as z
    ,'wibble' as ab
    ,'wibble' as ac
    ,'wibble' as ad
    ,'wibble' as ae
    ,'wibble' as af
    ,'wibble' as ag
    ,'wibble' as ah
    ,'wibble' as ai
    ,'wibble' as aj
    ,'wibble' as ak
    ,'wibble' as al
    ,'wibble' as am
    ,'wibble' as an
    ,'wibble' as ao
    ,'wibble' as ap
    ,'wibble' as aq
    ,'wibble' as ar
    ,'wibble' as at
    ,'wibble' as au
    FROM dualSo the question is: Is there a hard-coded limit of 45 columns for a Source Query? Or is there something else causing this error message?
    (For information in the above example I have "Use Generic Report Layout" selected and the output format set to "PDF")
    Thanks very much in advance for any comments or suggestions,
    Andy

    Thanks for the suggestion Simon.
    I just created a view based on the 46-column SELECT statement from dual above and then set "SELECT * FROM myview" as the Source Query.
    Unfortunately I get exactly the same error.
    Thanks,
    Andy

  • Error at report designer while opening the query

    Hi
    in report designer i am trying to open query
    i am getting error like
    error while loading query meta data
    check the query and portal settings
    i am getting this error only this report only
    Diagnosis
    An error occurred in the BI components on the SAP J2EE Engine.
    System Response
    Procedure
    Contact your system administrator to have the error analyzed in detail.
    Procedure for System Administration
    Start the Visual Administrator, log on to the SAP J2EE Engine and choose "<J2EE_SID>" ->"Server" -> "Services" -> "Log Viewer".
    The file "defaultTrace.trc" includes detailed information about the error that occurred. In Windows, you can find this file in the Log Viewer under "Cluster <computer name>" -> "Server <server number>" -> "<drive>:\usr\sap\<SID>\JC<INSTANCE>\j2ee\cluster\server<NUMBER>\log". ". In Unix, the file is located under "/usr/sap/<SID>/JC<INSTANCE>/j2ee/cluster/server<NUMBER>/log".
    If the file does not include enough detail about the error, you can increase the log level to obtain more information. To do this, choose "<J2EE_SID>" -> "Server" -> "Services" -> "Log Configurator". On the "Locations" tab page, choose "com" -> "sap" -> "ip" -> "bi" -> "webapplications". Using the selection list on the right side of the screen, you can increase the log level, whereby "DEBUG" represents the log level with the most information. You can save your settings by choosing the "Save" icon. The change to the log level is active immediately. Once you have successfully analyzed the error, you should set the log level back to its default value using the appropriate pushbutton; continuous writing to the log file negatively affects the overall performance of the system.

    Hi Suneel,
    If you are using any JAVA based applications or objects in the Report designer this error is thrown.
    It's better to install Java engine to correct this error.
    You must contact Basis people in order to solve this issue.
    With Regards,
    Ravi Kanth

  • 5200 : Error in executing  query -- Hyperion Financial Reporting

    Problem in accessing the Hyperion Financial Reports.User is having full access and able to access all the folders except one folder(Legal Folder reports). We are getting 5200: Error Executing the query error. Recently we have upgraded Hyperion to 11.1.1.3 version . Before upgrade user is not facing the problem. After Upgrade user is getting these errors while accessing the reports. we did research and found in "Error 5200: Error Executing Query" When Viewing Financial Reporting (FR) Reports". Is this error is relevant to the Information provided in Metalink and also can you please tell us is there any impact on doing the solution provided in the below. Why is this error is coming is any preferences needs to be changed.Please help us on this.
    Error Description:
    5200: Error executing query
    Servername/ApplicationName/DatabaseName/Error(1007090) Unknown Member name [Current Point of view for years] in Outline Query
    Doc ID 1107142.1:
    Possible Cause 1:
    If members have recently been added, moved, or deleted from the data source, Essbase, HFM, or Planning, the existing User POV records become out of sync.
    The User Point of View record uses indexing to identify the member. If the index changes because of changes in the outline, the User Point of View record no longer points to the correct location in the outline.
    To resolve the issue, you need to run the ManageUserPOV utility on a Windows server that has the Financial Reporting Reports Server, or in a Unix or Linux environment, has the Financial Reporting Print Server installed.
    You will need to provide a BIPlus Global Administrator user ID and password to run the utility.
    The utility will provide the correct syntax to run the command.
    1. In \Hyperion\products\biplus\bin\ManageUserPOV.properties, specify the following parameters:
    a. ReportServer
    b. DatasourceUser
    c. DatasourcePassword
    d. User
    e. Datasource (You can find the datasource in Workspace under Tools>Database Connection Manager in the Name column.)
    2. From the command line, cd to Hyerion\products\biplus\bin
    3. Type in "ManageUserPOV" without the quotes. The executable will read the parameters previously set in the ManageUserPOV.properties file.
    Thanks,
    Naresh.

    Take a look at this: http://adistrategies.com/index.php?loc=knowledge1&item=291
    Hope it helps.
    Mehmet

  • Report query XML schema error - Apex Listener 2

    I built a simple query: select * from emp in (Shared components > Report Query)
    When I try to download XML schema for this query (Source Query section) resulting xsd file contains this text: String index out of range: -1
    Shared Apex hosting: 4.2.2.0.0.11
    Print server: Apex Listener 2.0.1

    Hey Saymonc, we're you ever able to find the cause of this issue?  I'm having this happen to me as well.  When I begin using the Report Query functionality, the schema downloaded just fine.  I made an update to a query and began receiving this error.  Now I get the error for ALL of my report queries.  I tried removing them and recreating them, and I continue to receive this error in my schema file, no matter how simple the query.  The data will download just fine, and using the Test Report button works as well.
    Thanks,
    Chris

  • Why this query is giving error in report

    I have a simple query ...
    SELECT &P_FLEXDATA C_FLEXDATA,
    CHART_OF_ACCOUNTS_ID C_NUM
    FROM GL_CODE_COMBINATIONS
    It is running fine in SQL prompt but when I create it as a report query then it is giving error: ORA-00904 "C_FLEXDATA": invalid identifier
    Please advise ....
    I shall be ever thankful...
    Best Regards

    Hello,
    You are using a "lexical" reference in the SQL query (&P_FLEXDATA).
    You must set a default value for P_FLEXDATA in order the SQL Query to be parsed successfuly
    Regards

  • Internal Essbase JAPI Error (Report error when executing query)

    Hi all,
    I have a report that queries against an Essbase Reporting Cube. The reports prompt a JAPI error message when querying a parent level member that exceeds 256 members. The error displayed says that the number of columns on the report exceeds the allowed maximum of 256. Has someone experienced a similar error or know of a setting that can be set to allow the excess. Your feedback is appreciated. Thank you.

    Hi John,
    Thanks for the feedback provided. In the report I am using the Descendants function and on the member of this function I am selecting a prompt. Does your statement applies to this function as well? The odd thing on this issue is that the same report works fine in my old version 11.1.1.3, but not in 11.1.2.1. Any ideas? Thanks!

  • MSS Report Export to excel - ERROR - load: class query not found

    Hi All,
    I am navigating and getting error as follows:
    Manger Services ->My reports -> Report Selection -> HIS Reports -> General -> Employee Details -> add some people and click start report -> report shows -> click local file -> save as spreadsheet get ERROR - load: class query not found in the status bar or IE and IE then locks up
    Please reply if any one has some clue.
    Thanks & Regards,
    Vishal

    Hey Vishal,
    This issue gave us a  very hard time. The query was HRIS manager. when you add some attributes to be exported to excel and then select export. It hangs there. or hangs at the step where you select save as spreadsheet, OR after it where it runs a query to export.
    I came to know that Java JRE is used in the last step. So for solving this issue, go to java.com, on the first screen there will be big link to install java(i guess JRE). install it and then try exporting your query. I am sure it will work.
    Just notice that after doing installation of Java you will get coffee cup in you system tray.
    Thanks.
    Ankur.
    P.S. Points if works.

  • Report Query wizard error (in Shared Components)

    I have been following the <a target="_window" href="http://www.oracle.com/technology/products/database/application_express/howtos/howto_master_detail_pdf.html">How-To Create a Master-Detail PDF Report</a><br>
    <br>
    I'm using Apex 3.01 and Firefox 2.0.0.7<br>
    <br>
    When I have to create a Report Query in the shared components, I get through the wizard to the Create Report Query Layout page and for some reason, the Previous and Next buttons don't work. The only button that works is the Cancel button.<br>
    It seems to happen after I've downloaded the sample XML file from that page.<br>
    I've also noticed this happens when you go in to edit an existing Report Query and take a download of the XML...<br>
    On closer inspection it seems to be the buttons that have onclick="javascript:doSubmit..." behind them that don't work. Buttons with javascript:confirmDelete seem to still be active and work ok.<br>
    <br>
    But, the problem doesn't happen in IE7.<br>
    <br>
    I found this happened on both my local installation and on my apex.oracle.com instance.<br>
    <br>
    Has anyone else had this behavior or is this some dodgy local setting I have wrong?<br>
    <br>
    Gus..<br>

    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

  • Performance issues when creating a Report / Query in Discoverer

    Hi forum,
    Hope you are can help, it involves a performance issues when creating a Report / Query.
    I have a Discoverer Report that currently takes less than 5 seconds to run. After I add a condition to bring back Batch Status that = ‘Posted’ we cancelled the query after reaching 20 minutes as this is way too long. If I remove the condition the query time goes back to less than 5 seconds.
    Please see attached the SQL Inspector Plan:
    Before Condition
    SELECT STATEMENT
    SORT GROUP BY
    VIEW SYS
    SORT GROUP BY
    NESTED LOOPS OUTER
    NESTED LOOPS OUTER
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS OUTER
    NESTED LOOPS OUTER
    NESTED LOOPS
    NESTED LOOPS OUTER
    NESTED LOOPS OUTER
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    TABLE ACCESS BY INDEX ROWID GL.GL_CODE_COMBINATIONS
    AND-EQUAL
    INDEX RANGE SCAN GL.GL_CODE_COMBINATIONS_N2
    INDEX RANGE SCAN GL.GL_CODE_COMBINATIONS_N1
    TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUES
    INDEX RANGE SCAN APPLSYS.FND_FLEX_VALUES_N1
    TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUE_SETS
    INDEX UNIQUE SCAN APPLSYS.FND_FLEX_VALUE_SETS_U1
    TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUES_TL
    INDEX UNIQUE SCAN APPLSYS.FND_FLEX_VALUES_TL_U1
    INDEX RANGE SCAN APPLSYS.FND_FLEX_VALUE_NORM_HIER_U1
    TABLE ACCESS BY INDEX ROWID GL.GL_JE_LINES
    INDEX RANGE SCAN GL.GL_JE_LINES_N1
    INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
    INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
    TABLE ACCESS BY INDEX ROWID GL.GL_JE_HEADERS
    INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
    INDEX UNIQUE SCAN GL.GL_DAILY_CONVERSION_TYPES_U1
    TABLE ACCESS BY INDEX ROWID GL.GL_JE_SOURCES_TL
    INDEX UNIQUE SCAN GL.GL_JE_SOURCES_TL_U1
    INDEX UNIQUE SCAN GL.GL_JE_CATEGORIES_TL_U1
    INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
    INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
    INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
    INDEX UNIQUE SCAN GL.GL_BUDGET_VERSIONS_U1
    INDEX UNIQUE SCAN GL.GL_ENCUMBRANCE_TYPES_U1
    INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
    TABLE ACCESS BY INDEX ROWID GL.GL_JE_BATCHES
    INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
    INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
    INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
    TABLE ACCESS BY INDEX ROWID GL.GL_PERIODS
    INDEX RANGE SCAN GL.GL_PERIODS_U1
    After Condition
    SELECT STATEMENT
    SORT GROUP BY
    VIEW SYS
    SORT GROUP BY
    NESTED LOOPS
    NESTED LOOPS OUTER
    NESTED LOOPS OUTER
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS OUTER
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS OUTER
    NESTED LOOPS
    NESTED LOOPS OUTER
    NESTED LOOPS
    NESTED LOOPS
    NESTED LOOPS OUTER
    NESTED LOOPS
    TABLE ACCESS FULL GL.GL_JE_BATCHES
    INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
    INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
    TABLE ACCESS BY INDEX ROWID GL.GL_JE_HEADERS
    INDEX RANGE SCAN GL.GL_JE_HEADERS_N1
    INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
    INDEX UNIQUE SCAN GL.GL_ENCUMBRANCE_TYPES_U1
    INDEX UNIQUE SCAN GL.GL_DAILY_CONVERSION_TYPES_U1
    INDEX UNIQUE SCAN GL.GL_BUDGET_VERSIONS_U1
    TABLE ACCESS BY INDEX ROWID GL.GL_JE_SOURCES_TL
    INDEX UNIQUE SCAN GL.GL_JE_SOURCES_TL_U1
    INDEX UNIQUE SCAN GL.GL_JE_CATEGORIES_TL_U1
    INDEX UNIQUE SCAN GL.GL_JE_BATCHES_U1
    TABLE ACCESS BY INDEX ROWID GL.GL_JE_LINES
    INDEX RANGE SCAN GL.GL_JE_LINES_U1
    INDEX UNIQUE SCAN GL.GL_SETS_OF_BOOKS_U2
    TABLE ACCESS BY INDEX ROWID GL.GL_CODE_COMBINATIONS
    INDEX UNIQUE SCAN GL.GL_CODE_COMBINATIONS_U1
    TABLE ACCESS BY INDEX ROWID GL.GL_PERIODS
    INDEX RANGE SCAN GL.GL_PERIODS_U1
    TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUES
    INDEX RANGE SCAN APPLSYS.FND_FLEX_VALUES_N1
    INDEX RANGE SCAN APPLSYS.FND_FLEX_VALUE_NORM_HIER_U1
    TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUES_TL
    INDEX UNIQUE SCAN APPLSYS.FND_FLEX_VALUES_TL_U1
    TABLE ACCESS BY INDEX ROWID APPLSYS.FND_FLEX_VALUE_SETS
    INDEX UNIQUE SCAN APPLSYS.FND_FLEX_VALUE_SETS_U1
    INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
    INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
    INDEX UNIQUE SCAN GL.GL_JE_HEADERS_U1
    Is there anything i can do in Discoverer Desktop / Administration to avoid this problem.
    Many thanks,
    Lance

    Hi Rod,
    I've tried the condition (Batch Status||'' = 'Posted') as you suggested, but the qeury time is still over 20 mins. To test i changed it to (Batch Status||'' = 'Unposted') and the query was returned within seconds again.
    I’ve been doing some more digging and have found the database view that is linked to the Journal Batches folder. See below.
    I think the problem is with the column using DECODE. When querying the column in TOAD the value of ‘P’ is returned. But in discoverer the condition is done on the value ‘Posted’. I’m not too sure how DECODE works, but think this could be the causing some sort of issue with Full Table Scans. How do we get around this?
    Lance
    DECODE( JOURNAL_BATCH1.STATUS,
    '+', 'Unable to validate or create CTA',
    '+*', 'Was unable to validate or create CTA',
    '-','Invalid or inactive rounding differences account in journal entry',
    '-*', 'Modified invalid or inactive rounding differences account in journal entry',
    '<', 'Showing sequence assignment failure',
    '<*', 'Was showing sequence assignment failure',
    '>', 'Showing cutoff rule violation',
    '>*', 'Was showing cutoff rule violation',
    'A', 'Journal batch failed funds reservation',
    'A*', 'Journal batch previously failed funds reservation',
    'AU', 'Showing batch with unopened period',
    'B', 'Showing batch control total violation',
    'B*', 'Was showing batch control total violation',
    'BF', 'Showing batch with frozen or inactive budget',
    'BU', 'Showing batch with unopened budget year',
    'C', 'Showing unopened reporting period',
    'C*', 'Was showing unopened reporting period',
    'D', 'Selected for posting to an unopened period',
    'D*', 'Was selected for posting to an unopened period',
    'E', 'Showing no journal entries for this batch',
    'E*', 'Was showing no journal entries for this batch',
    'EU', 'Showing batch with unopened encumbrance year',
    'F', 'Showing unopened reporting encumbrance year',
    'F*', 'Was showing unopened reporting encumbrance year',
    'G', 'Showing journal entry with invalid or inactive suspense account',
    'G*', 'Was showing journal entry with invalid or inactive suspense account',
    'H', 'Showing encumbrance journal entry with invalid or inactive reserve account',
    'H*', 'Was showing encumbrance journal entry with invalid or inactive reserve account',
    'I', 'In the process of being posted',
    'J', 'Showing journal control total violation',
    'J*', 'Was showing journal control total violation',
    'K', 'Showing unbalanced intercompany journal entry',
    'K*', 'Was showing unbalanced intercompany journal entry',
    'L', 'Showing unbalanced journal entry by account category',
    'L*', 'Was showing unbalanced journal entry by account category',
    'M', 'Showing multiple problems preventing posting of batch',
    'M*', 'Was showing multiple problems preventing posting of batch',
    'N', 'Journal produced error during intercompany balance processing',
    'N*', 'Journal produced error during intercompany balance processing',
    'O', 'Unable to convert amounts into reporting currency',
    'O*', 'Was unable to convert amounts into reporting currency',
    'P', 'Posted',
    'Q', 'Showing untaxed journal entry',
    'Q*', 'Was showing untaxed journal entry',
    'R', 'Showing unbalanced encumbrance entry without reserve account',
    'R*', 'Was showing unbalanced encumbrance entry without reserve account',
    'S', 'Already selected for posting',
    'T', 'Showing invalid period and conversion information for this batch',
    'T*', 'Was showing invalid period and conversion information for this batch',
    'U', 'Unposted',
    'V', 'Journal batch is unapproved',
    'V*', 'Journal batch was unapproved',
    'W', 'Showing an encumbrance journal entry with no encumbrance type',
    'W*', 'Was showing an encumbrance journal entry with no encumbrance type',
    'X', 'Showing an unbalanced journal entry but suspense not allowed',
    'X*', 'Was showing an unbalanced journal entry but suspense not allowed',
    'Z', 'Showing invalid journal entry lines or no journal entry lines',
    'Z*', 'Was showing invalid journal entry lines or no journal entry lines', NULL ),

  • Restricting the pl/sql error in report region(sql report)

    Hi,
    Is there any way to hiding pl/sql error in report region when we use generic column names*(Use Generic Column Names (parse query at runtime only)*
    ). and type is sql query else displaying alternative error message on that particular report region
    I am using apex 4.1 and 11g database
    Thanks
    Sagar.

    What kind of pl/sql error you are talking about?

  • Error execute report in R12

    Hi all,
    I think I better change this question into a sharing because I'd solved my problem :p.
    Below is my first post in this thread before I found the solution :
    I hoped I put this in the right forum. Before I ask the question, here are my environment:
    Operating system : Oracle Enterprise Linux 4 update 6
    RDBMS : 10.2.0.3.0
    Oracle Applications : 12.0.4
    Report Builder : 10.1.2.0.2
    I created a report using Oracle Report Developer then I upload it to my Apps machine. After set all the executable and validation set I tested the report. At first the request completed with status Warning. Viewed the log I got warning like this :
    REP-0004: Warning: Unable to open user preference file
    After browse metalink and OTN (such as in Reports Compilation Errors: REP-25200 / REP-0004 / REP-1430 and in Re: REP-0004 Error... it seems that the problem was because prefs.ora was not present in $HOME so I copied the prefs.ora file from /apps/tech_st/10.1.2/tools/admin to $HOME then I requested the reports again. This time that error didn't show up and the request completed normal but there's no output at all. The same report did show output when tested in Oracle Report Developer.
    I opened the report file in Report Developer and tried to compile it (Tools > File Conversion) from rdf to rdf using different name then I copied the report and tested again. This time the request completed normal but still no output. When I viewed the log I got this error message:
    Oracle error -6502: ORA-06502: PL/SQL: numeric or value error: associative array shape is not consistent with session parameters has been detected in fnd_global.put(PERMISSION_CODE, FND_PERMIT_0000).
    APP-FND-01564: Oracle error 6502 in FDXNC
    Cause: FDXNC failed due to ORA-06502: PL/SQL: numeric or value error: associative array shape is not consistent with session parameters
    ORA-06512: at "APPS.FND_GLOBAL", line 1233
    ORA-06512: at "APPS.FND_GLOBAL", line 1432
    ORA-06512: at line 1.
    The SQL statement being executed at the time of the error was: begin fnd_global.set_nls_context( p_nls_numeric_characters => :nc ); end; and was executed from the file &ERRFILE.
    The routine FDPREP was unable to set the numeric character to .,.
    So I tried another way, I recreate the report but try to display only some fields. The fields must be put in a repeating frame because if I tried to put in a normal frame caused reports developer displayed error message that I put the field below it's frequency. After put some fields in the repeating frame I tested the report again in Oracle Apps. this time the result was Completed Normal but still no data (0 byte) though in Reports Developer it showed some data. After some test I got conclusion that the data can only be put in a repeating frame if all the data were put in the same level (e.g.: all the field put in the same repeating frame) and can't be break down where there exist repeating frame in a repeating frame (nested repeating frame) as if you want to create grouping while want I want is to create grouping. Using Reports Developer wizard to create the report gave me the same result, no data displayed.
    Now, anyone know how to solve that problem? thanks.
    and now for the solution :
    For REP-0004: Warning: Unable to open user preference file error message
    Just copy the prefs.ora file from /apps/tech_st/10.1.2/tools/admin to $HOME then the error message wouldn't show up anymore. Though based on my experience this error message can be omitted further analyze would be good to know if there's any impact to the system or performance or anything else.
    For no data displayed error
    Make sure the setup was right especially the token field as that was my problem. The token field was not the same as the bind variable in the report query, that's why the request completed normal and no data displayed :P it's very foolish of me to miss that simple thing.
    thank you all
    Message was edited by:
    UD

    mdtaylor wrote:
    Since you are on 10.2.0.3, you may want to also look at database patch 5890966 INTERMITTENT ORA-06502 DURING PEAK LOADING
    Associative Array Shape Is Not Consistent With Session Parameter at Peak Load     
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=467688.1
    Hi Michael,
    Yes, that patch is exactly I got from oracle support, however I'm having a problem to apply it :P
    Here are what I usually did to apply patch in E-Biz :
    1. Source the application environment using the environment file in APPL_TOP
    2. Enable maintenance mode using adadmin
    3. Apply patch using adpatch
    4. Disable maintenance mode using adadmin
    5. Start all the services
    How to apply patch just for database only? Reading the readme file it said that to apply patch was only using command :
    $ opatch apply
    However we need to ensure that the directory containing the opatch script appears in $PATH. I found that opatch.pl exist in $ORACLE_HOME/Opatch but I can't use opatch though I had sourcing application enviroment or database environment.
    I echoed $PATH and $ORACLE_HOME/Opatch (which either ../db/tech_st/10.2.0 for database or ../apps/tech_st/10.1.2/Opatch) and found was not in the $PATH.
    I assumed that I shouldn't change the application environment or database environment file recklessly so that $ORACLE_HOME/Opatch appears in $PATH.
    However if I tried to run opatch directly from it's folder then I got this following error :
    OPatch cannot find a valid oraInst.loc file to locate Central Inventory
    So my questions are :
    1. Do I need to source environment before running opatch? If yes, which one, application environment or database environment?
    2. How to set the Central Inventory location so that opatch recognized it? Is it by sourcing the environment in question 1?
    3. Which opatch must I run? The one in application tier or in database tier?
    4. How to run it? Type all the path directly (as /db/tech_st/10.2.0/OPatch/opatch)?
    Thx

  • Report Query returning "No Data Found" with bind variables

    I put a simple query into Report Query:
    Select "bluefish". "name" as "name",
    "bluefish"."primary_flag" as "primary_flag",
    "bluefish"."status" as "status",
    "bluefish"."ID" as "ID" from "bluefish" "bluefish" where "bluefish"."ID" = :P3_XPRINTID
    When I test the query, data is returned; however, when I try to run the query using "Test Report" button, I get an error 01403 No Data Found. If I replace the bind variable with an explicit value, the report works.
    Anyone have any ideas as to what is causing this problem? I am using the Generic Report Layout, with various output types. I AM editting the query and defining the bind variable before I test the report (otherwise, the query wouldn't run).
    Charles

    Sometimes if you create a form/report/whatever using the wizards, it will create an After Submit process called something like Reset Page - basically you want to make sure you don't have any After Submit processes that call a Clear Session state (it may say something like Clear Cache for Page).
    In your branch, there is also a box that says Clear Cache - you want to make sure that does not have page Number 8 in it or it will clear your session state.
    Put the page in Debug mode and read through it - check to make sure your value is getting saved and maybe you can see what is going wrong.

  • Web Analysis Error -- Error while executing query and retrieving data

    Regarding Web Analysis:
    We have a number of reports that we created. yesterday they were all working fine. today we try to open them and most are generating an error.
    The error is:
    Error while executing query and retrieving data.; nested exception is:
    com.hyperion.ap.APException: [1033] Native:
    1013033[Thu Oct 22 09:08:17
    2009]server name/application name/database name/user name/Error91013033)
    ReportWriter exit abnormally
    Does anyone have any insight into what is going on?
    My version information is:
    Hyperion System 9 BI+ Analytic Administration Services 9.3.0.1.1 Build 2
    Web Analysis 9.3.0.0.0.286
    Thanks in advance for your help.
    DaveW

    Hi,
    And also click on check option by opening the query in Query designer,as Mr . Arun suggested.
    And if you get any error in checking, see the long message(detail).
    With rgds,
    Anil Kumar Sharma .P

Maybe you are looking for

  • My computer is NOT allowing me the option to uninstall InboxAce

    A little while back I allowed a program to install InboxAce on my computer. The toolbar is now showing on Mozilla Firefox, and I believe this is the program that crashed my computer today, though Inbox Ace was not in use when my computer crashed. I h

  • Error MSG"Not Allowed"?

    My iPhone 4s says latest update is IOS 7.1.2 How do I update to IOS 8?

  • JAVA CLIENT PROXY

    Hi All, I am working on java client proxies. Can anybody give me step by step approach for creating application java class using proxy and bean classes generated from my outbound interfaces? I want to create EJB module project and EAR project,I have

  • AcroTray is Not Responding

    I am running CS2 Education Version on Vista 32 Bit, which has been printing to PDF just fine for 18-months. Now I can't print anything; the error message is "AcroTray.exe" is not responding/running. I have tried Acrobat Detect & Repair, I have a regi

  • Serial number used in plant maintennace

    hi, all PM Guru, i have configured plant maintenanace in manufacturing. Now they required identification for each & every equipment so i think that i will have to use serial no. kindly tell the setting and process fro the same. regards, santosh jaisw