Custom report Error Rendering Element

I have created a new category and subcategory called:
C2Reports
GSORTS
Then under the subcategory I have created a report called GSORT_QC.
Next I added an element that is a TABLE FROM SQL and I have edited it to put in
the code. It works fine when I do the following:
Select SQL and enter the following statement:
Select sysdate as "DATE" from dual;
However, when I try to do anything with a PL/SQL block of code it doesn't comes
back with the above error in this SR. Here's what I'm entering in the PL/SQL
block:
BEGIN
select sysdate from dual;
END;
I've tried to get anything to work in a PL/SQL block and nothing seems to work.
Could you give me an example of something? I've tried to search the internet
for information and it is very limited.
Also, another question is......
is there any way to get the output from a sqlplus script to display under
reports? We have some reports written in sqlplus scripts and would like to see
the output under the Reports section of Grid Control if at all possible. I
couldn't see any category that would handle that. Please advise on this
question also.
Please give me an example of a PL/SQL block that I can run under the Reports, Add
Element, selecting an element of "Table using SQL", then edit the parameters
under that element, select PL/SQL block.......what do I put in the window? I
cannot get anything to work where I enter the PL/SQL block of code.

For your first question, you can use this example:
begin
open ??EMIP_BIND_RESULTS_CURSOR?? for select sysdate "current date" from dual;
end;
And set the statement type to pl/sql in the edit Table from SQL parameters UI.
At run time, the ??EMIP_BIND_RESULTS_CURSOR?? is bound to a cursor object and the result set from that cursor is shown in the table in the UI. The EM Extensibility Guide privides some examples of using ??EMIP_BIND parameters.
Regarding the second question, there are two issues:
1) Table from SQL queries are limited to database objects visible to the MGMT_VIEW database user.
2) I'm not sure if you can invoke a SQLPlus script from PL/SQL, but if you could it may work using a PL/SQL wrapper. This is probably a long shot.
Regards,
Leslie

Similar Messages

  • Error rendering element. Exception: ORA-00942: table or view does not exist

    Guru,
    We are maintaining 10 internal Database through OEM 10g and using seesded reports.
    When we try to create simple custom reports against one of the Target database , its failing with following error message ,
    Query : select * from v$database
    Error rendering element.
    Exception: ORA-00942: table or view does not exist
    select * from dual & v$session working ( But query execution happeniing from Reposistory Database not from Target instance  )
    Note:
    I have reviewed thred "getting ORA-00942 while running report in GC"
    Please give some light .
    Regards,
    Raju

    This is an EM related question so I would suggest you post in the appropriate space "Enterprise Manager" -- https://forums.oracle.com/community/developer/english/enterprise_management/enterprise_manager/enterprise_manager_6
    You may also review (In Grid Control 10.2, Creating a Report to Query 'V$SESSION 'Fails: 'Error Rendering Element. Exception: ORA-00942 Table Or View Does Not Exist' (Doc ID 356755.1)) and implement the solution for v$database
    Thanks,
    Hussein

  • Error rendering element. Exception: ORA-01882:

    Hi guys.
    I am using oracle grid control r 2 on solairs. When I try to run the EMR_Availability_History_Target report, I get the following error.
    EMR_Summary
    An error has occurred!
    Error rendering element. Exception: ORA-01882: timezone region not found ORA-06512: at "SYSMAN.MGMT_GLOBAL", line 7 ORA-06512: at "SYSMAN.MGMT_VIEW_UTIL", line 189
    Any help?
    Thanks

    Refer to Note:390954.1 for the Solution

  • Custom Report Erroring when using All as parameter

    Hi All,
    I am facing a problem in running custom report.
    => DB Server Info
    RDBMS : 11.2.0.2.0
    Oracle Applications : 12.1.3
    I am getting following error.
    REP-1401: 'afterpform': Fatal PL/SQL error occurred.
    ORA-06502: PL/SQL: numeric or value error
    custom report two parameters one is date parameter and name parameter
    date parameter is using as fnd_date.canonical_to_date(:P_EFFECTIVE_DATE) in queries.
    if I give name parameter for individual, then it works fine.
    if I give name parameter as "All", then its erroring. I tried it in my best way, but its not working.
    variable data length increased though its not working, can any one help me on this please....
    Here is the Afterpform code
    function AfterPForm return boolean is
    lName VARCHAR2(5000); -- its changed from lName varchar2(50);
    begin
    IF :P_NAME <> 'All' THEN
    lName:= 'AND name =:P_NAME';
    ELSE
    lName:='AND name in                                                             (select name from <******>
              order by name
    END IF;     
    :P_Where_Clause := lName;
    return (TRUE);
    end;
    Thanks for all your help so far.
    Ram.
    Edited by: user8822881 on Feb 9, 2012 10:43 AM

    excuse i understood that you use All as parameter name
    ORA 6502 is when you assign a char to a number or when assign a value which length is greater than the variable length
    what's the dimension of p_where_clause for example?
    you can trace with srw.message
    --- <Code>
    function AfterPForm return boolean is
    lName VARCHAR2(5000); -- its changed from lName varchar2(50);
    begin
    srw.message(1,'step 1');
    IF :P_NAME = 'All' THEN
    srw.message(2,'step 2');
    lName:='AND name in (select name from <table>
    order by name
    srw.message(3,'step 3');
    ELSE
    srw.message(4,'step 4');
    lName:= 'AND name =:P_NAME';
    srw.message(5,'step 5');
    END IF;
    srw.message(6,'step 6');
    :P_Where_Clause := lName;
    srw.message(7,'step 7');
    return (TRUE);
    end;
    ---</Code>
    i think your query is not good
    for example
    lName:= 'AND name =:P_NAME';
    when instance the query the query search this condition but no use the value of p_name parameter
    write
    lName:= 'AND name = '||''''||:P_NAME||''''; then :p_name take the value

  • Custom report error through idoc

    Hi
    We have the custom invoice report .
    Purpose of the custom report is to get the parked invoice list, which are invoices not posted those invoice will get parked automatically..
    These invoices are usually posted in transaction MIRO throgh IDOC. So there is no manual input while doing MIRO. But now many invoices are getting parked instead of posting .
    So for above proble i wanted to know the automatic backend job after IDOC for invoice posting .
    How exactly the automatic posting of invoice is happening in backend , how we can rectify this or how we can find the creteria for posting and paring invoice in backend program ????
    Thanks

    Hi,
    when we submit the request in SRS the output is fine generating but when we do the trtansaction in the Module(no SRS) the report is erroring outWhat do you mean by do transaction in the module? Could you please elaborate more?
    Enable trace and run the program, and see if the collects more details about the error in the request log file.
    Regards,
    Hussein

  • Custom Report error in 11.5.9

    Hi Friends,
    We are developing a custom Report on 11.5.9 and when we submit the request in SRS the output is fine generating but when we do the trtansaction in the Module(no SRS) the report is erroring out.Thers is no problem with the file and folder permissions.
    Please suggest me.
    Error:
    APP-FND-01630: Cannot open file $COMMON_TOP\temp\OF31.tmp for reading
    Cause: USDINS encountered an error when attempting to open file $COMMON_TOP\temp\OF31.tmp for reading.
    Action: Verify that the filename is correct and that the environment variables controlling that filename are correct.
    Action: If the file is opened in read mode, check that the file exists. Check that you have privileges to read the file in the file directory. Contact your system administrator to obtain read privileges.
    Action: If the file is opened in write or append mode, check that you have privileges to create and write files in the file directory. Contact your system administrator to obtain create and write privileges. Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 2168970.
    Review your concurrent request log and/or report output file for more detailed information.
    Regards,
    Arun

    Hi,
    when we submit the request in SRS the output is fine generating but when we do the trtansaction in the Module(no SRS) the report is erroring outWhat do you mean by do transaction in the module? Could you please elaborate more?
    Enable trace and run the program, and see if the collects more details about the error in the request log file.
    Regards,
    Hussein

  • Oracle BI Publisher Custom Report Error: emsg:was terminated by signal 6

    Oracle BI Publisher Custom Report throws a strange error. Error log below.
    Forcing NLS_NUMERIC_CHARACTERS to: '.,' for XDO processing
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.US7ASCII
    stat_low = 6
    stat_high = 0
    emsg:was terminated by signal 6
    Enter Password:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0xf7094b79, pid=11622, tid=4107962048
    # Java VM: Java HotSpot(TM) Server VM (1.4.2_14-b05 mixed mode)
    # Problematic frame:
    # C [librw.so+0x3d0b79] rxrtdn+0x6d
    # An error report file with more information is saved as hs_err_pid11622.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    Report Builder: Release 10.1.2.3.0 - Production on Tue Nov 16 11:45:22 2010
    Queries work perfectly fine when ran in the database.
    Can you please help me figure out what the issue is???
    Thanks,
    Kesava
    Edited by: KesavaChunduri on Nov 16, 2010 9:51 AM

    Hi,
    Oracle BI Publisher Custom Report throws a strange error. Error log below.Please mention the version along with the OS.
    Please see if (Diagnosing and Troubleshooting Signal Errors [ID 215601.1]) helps.
    Thanks,
    Hussein

  • Material Order Status Report - Custom report error

    Hi,
    It is a Custom report to list Open PO's with the following logic.
    1. If validity date is less than today, PO is considered closed and that PO wont appear in the report.
        If point 1 failed, (means validity date in future) then goes to point 2.
    2. At item level,
       (a) Check if the quantity ordered is delivered (in service PO if planned/unplanned limit got reached)
                                     or
       (b) if Delivery completed indicator is checked
    in point 2 if either a or b is there, the PO is considered closed and should not appear in the report.
    We checked the program logic is fine.
    Problems:
    1.But the list shows few Closed PO's with Delivery comp ind checked.(Material PO's)
    2.In some service PO's the unplanned limit is not reached but so far some thing is delivered and Del   comp is marked. But still it appears in the report.
    In both cases the PO should not appear in the report. How to check?
    Regards
    Ramprakash

    Hi,
    If the logic that you checked proved correct, then you will have to get your ABAPer to debug your program to find out if change shall be made in the program logic coding.
    Cheers,
    HT

  • All line items on a Cost Center Are archived, do not see in custom reports - error No actual line items were selected

    Hello, experts !
    Please advise,
    I have a cost center,
    on witch I know there are bookings,
    1. I do KSB1, have message "No actual line items were selected"
    2. I select - extras - data source - archive
    in this way I can see my items.
    ok.
    maybe all bookings are archived.
    no:
    I de a new movement on this CC - KB11N (exemple) - and on the new one I have the same problem
    I se it only when I check "archive",
    and do not see it on custom reports.
    Why ?
    Ay idea ?

    Dear Jonny,
    Check the T Code: S_ALR_87013611
    Then T Code: KSB1 by removing all the filters like date restriction..etc.
    Still if you are not finding the postings:
    Check the postings in the T code FAGLB03 - Display Balances by giving GL Account.
    Postings happen in co module if there is a cost object.
    If there is no cost object it will not flow to controlling, that will be in FI.
    What you need to do is:
    Select your GL
    Select your Payment date
    Select your Document number.
    You can check the same in FBL3N also.
    go to the transaction summary and verify the cost object whether it is a cost center or Order...etc.
    Also check whether the payment is in parking stage ....?
    Regards,
    Pavan Kumar Arvapally

  • Custom xml report errored with :emsg:was terminated by signal 4

    Friends,
    one of the custom report errored out with the below error:
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.UTF8
    stat_low = 84
    stat_high = 0
    emsg:was terminated by signal 4
    Program was terminated by signal 4
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 5443587.
    when browsing metalink I came across few notes and chmged the out put of Active users report to XML which also errored out, the same report was running fine in other environments. we just freshed this from PROD and nothing was changed.
    any ideas
    Thanks.

    Hi Guru,
    Application version is 11.5.10.2 and DB 10.2.0.3 running on AIX, Yes it is working on other test environments and production.
    here is the error from OPP log
    [3/18/10 10:35:17 AM] [UNEXPECTED] [2908896:RT5443609] java.io.FileNotFoundException: /<path>/o5443609.out (No such file or directory)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:129)
         at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:229)
         at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
    [3/18/10 10:35:17 AM] [2908896:RT5443609] Completed post-processing actions for request 5443609.
    Looks like the output file was not generated as the request errored out.
    Thanks.

  • Custom Report For Database Availability

    SELECT target_name,
    target_type,
    SUM (up_time) up_time,
    SUM (down_time) down_time,
    SUM (blackout_time) blackout_time,
    TRUNC( SUM (up_time)
    / (SUM (NVL (up_time, 1)) + SUM (NVL (down_time, 1)))
    * 100)
    availability_pct
    FROM ( SELECT target_name,
    target_type,
    SUM(TRUNC( (NVL (end_timestamp, SYSDATE) - start_timestamp)
    * 24))
    total_hours,
    CASE availability_status
    WHEN 'Target Down'
    THEN
    0
    WHEN 'Target Up'
    THEN
    0
    WHEN 'Blackout'
    THEN
    SUM(TRUNC( (NVL (end_timestamp, SYSDATE)
    - start_timestamp)
    * 24))
    END
    blackout_time,
    CASE availability_status
    WHEN 'Target Down'
    THEN
    0
    WHEN 'Target Up'
    THEN
    SUM(TRUNC( (NVL (end_timestamp, SYSDATE)
    - start_timestamp)
    * 24))
    WHEN 'Blackout'
    THEN
    0
    END
    up_time,
    CASE availability_status
    WHEN 'Target Down'
    THEN
    SUM(TRUNC( (NVL (end_timestamp, SYSDATE)
    - start_timestamp)
    * 24))
    WHEN 'Target Up'
    THEN
    0
    WHEN 'Blackout'
    THEN
    0
    END
    down_time,
    availability_status
    FROM MGMT$AVAILABILITY_HISTORY
    WHERE target_type IN ('oracle_database', 'rac_database')
    AND availability_status IN
    ('Target Down', 'Target Up', 'Blackout')
    GROUP BY target_name, target_type, availability_status
    ORDER BY target_name, availability_status)
    GROUP BY target_name, target_type
    ORDER BY target_name
    Above is the Query that i'm using for the element "Table from SQL" but getting the error "Error rendering element. Exception: ORA-01476: divisor is equal to zero "
    Can anyone please help me with fixing this report.
    Thanks
    Edited by: 822424 on Aug 22, 2011 8:27 AM
    Edited by: 822424 on Aug 22, 2011 8:27 AM

    The error says that somewhere in you statement you are using a value 0 as an divisor.
    So A / B where B = 0
    Try to debug you SQL statement to make sure you will never use the value 0 as divisor.
    Once you corrected your statement, your report will work fine
    Rob
    http://oemgc.wordpress.com

  • Error while running a custom report in OIM

    Hi All,
    I have created a new custom report for OIM and written a stored procedure for that. But while running the report from Admin console, its throws the below error:
    java.sql.SQLException: ORA-00911: invalid character
    ORA-06512: at "IDM.XL_EXCEPTION", line 149
    ORA-06512: at line 1
    ERROR,19 Jun 2011 22:09:31,665,[XELLERATE.WEBAPP],Class/Method: ReportAction/displayTabularReport encounter some problems: Error executing stored procedure
    Thor.API.Exceptions.tcAPIException: Error executing stored procedure
    Line 149 : DBMS_OUTPUT.PUT_LINE('select stmt ='|| select_stmt);
    "select_stmt" is a select query based on the OIM tables.
    Please advice.

    Seems like there is a invalid character in your SQL (Report's store procedure). Could you share with me whole content of this "select_stmt" variable?
    regards,
    Thiago L Guimaraes

  • Signal 4 error encountered while running a customized report

    Signal 4 error encountered while running a customized report
    We are running Oracle Applications version 11.5.10 on Oracle RDBMS 9.2.0. and IBM AIX 5.3 o production system and AIX 5.2 on test machines. We have made a new clone of production database on test machine and after installation of a clone on test-machine all customized reports terminated with signal 4 error.
    Can anybody tell the possible causes of signal 4 errors and their remidies ?

    Thank you for the link, i will read it...
    I have problemss with PDF output...
    When trying to run any concurrent request with PDF output, it completed with error and show the following message in the request log file:
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    American_America.AR8MSWIN1256
    Spawned Process 499776
    stat_low =84
    stat_high = 0
    emsg:was terminated by signal 4
    Program was terminated by signal 4
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 20824997

  • Error in Custom Report.

    Hi All,
    When i am running a custom report, it gives me the below error. Anyone please advice on what can be done to resolve this error. thanks in advance.
    WGT Custom: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    BVTWIPDJPCK module: GB BVT - Barcoded Discrete Pick List
    Current system time is 27-SEP-2012 15:49:53
    +-----------------------------
    | Starting concurrent program execution...
    +-----------------------------
    Arguments
    P_SORT_BY='6'
    P_TXN_ONLY='2'
    P_FROM_JOB='2265926'
    P_TO_JOB='2265926'
    P_ORGANIZATION_ID='3630'
    P_qty_precision='2'
    APPLLCSP Environment Variable set to :
    Current NLS_LANG and NLS_NUMERIC_CHARACTERS Environment Variables are :
    AMERICAN_AMERICA.UTF8
    stat_low = 6
    stat_high = 0
    emsg:was terminated by signal 6
    Enter Password:
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # SIGSEGV (0xb) at pc=0x005bdc9d, pid=18089, tid=3453852560
    # Java VM: Java HotSpot(TM) Server VM (1.4.2_14-b05 mixed mode)
    # Problematic frame:
    # C [libc.so.6+0x57c9d] fclose+0x1d
    # An error report file with more information is saved as hs_err_pid18089.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    Report Builder: Release 10.1.2.3.0 - Production on Thu Sep 27 15:49:58 2012
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Program was terminated by signal 6
    Concurrent Manager encountered an error while running Oracle*Report for your concurrent request 45097091.
    Review your concurrent request log and/or report output file for more detailed information.
    Executing request completion options...
    Output file size:
    0
    Finished executing request completion options.
    Concurrent request completed
    Current system time is 27-SEP-2012 15:50:05
    ---------------------------------------------------------------------------

    Please enable trace/debug and see if more details are recorded in the concurrent request log file then.
    FAQ: Common Tracing Techniques within the Oracle Applications 11i/R12 [ID 296559.1]
    How To Trace a Concurrent Request And Generate TKPROF File [ID 453527.1]
    Also, please see old threads.
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Signal+AND+6&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Signal+AND+6+AND+Custom&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Custom report  using KM API Error

    Hi All,
    I have to create a report using KM API. i got the custom report using KM API from sdn and I imported into my NWDS. While i compile it, it is giving me this error.
    "The project cannot be build because the classpath for com.sap.netweaver.bc.rf.common.exception.ResourceException is not found."
    I have imported all the required jar files.
    How can i rectify this error?  Could anyone help me out in this issue?
    Regards,
    Divya

    Hi Divya,
    > I have imported all the required jar files
    First, I don't know what you mean with "imported" - in any case, you should <i>not</i> put the JARs into your project but just reference these.
    Also, obviously you have <i>not</i> referenced <i>all the required jar files</i>; ResourceException is part of bc.rf.common_api.jar, which is part of portal application com.sap.netweaver.bc.rf, at least for NW2004s.
    Please use the ClassLocator tool (search the WebLogs for this term to get some initial instruction) to avoid such questions in the future. It will make your life much easier.
    Hope it helps
    Detlev

Maybe you are looking for

  • Switching startup disk from OS 8.6 to OSX.

    Hello, I posted this issue once before however it became a long post and I thought I would start again so that I could focus the question more accurately and as well to indicate that some of these solutions might not work. OK, Here is the issue: Agai

  • New Drobo with fire wire

    My Imac 24 3.06 seems to take longer booting up since installing the fire wire drobo with two 1.5TB drives

  • How to import people tags from Windows Live Photo Gallery to Lightroom?

    I know, that this is rather WLPG issue than Lightroom, but maybe someone has had the similar problem. I have used WLPG for sorting and viewing my photos, but now I am starting to use Lightroom. I have used automatic face recognition for tagging peopl

  • Myvz50

    I just received a phone message from 800-000-0000 that said i was selected to receive a 50.00 credit on my bill and to go to myvz50.com and sign in to my account?  Is this phishing scam or is it real? Does anyone know? Thanks for the help

  • Tagging a story

    Hi All, I have xml elements in structure view (see attached Sample.xml file for elements) I created three text frame I am trying to tag these frame with xml elements shown in structure view as follows How I could tag each text frame with diffrent ele