Report Metadata in BO XI R2

Post Author: sanjoy
CA Forum: META Data and Lifecycle management
Hi,    Can anybody give any idea where is the metadata of a report is stored in BO XI R2. I know regarding metadata storage of universe. But I am not finding any thing regarding the report metadata. Whether it is stored in a file, then what is the location or in a database repository.  Regards,Sanjoy 

A code snippet for Text:
        txtPath = @"C:\mytext.txt";
        ceSession = (new SessionMgr()).Logon(username, password, cmsname, authtype);
        InfoStore infoStore = new InfoStore(ceSession.GetService("InfoStore"));
        int folderID = ((InfoObject) infoStore.Query("Select TOP 1 SI_ID From CI_INFOOBJECTS "
                                                     + " Where SI_KIND='Folder' "
                                                     + " And SI_NAME='" + folderName + "'")[1]).ID;
        InfoObjects txts = infoStore.NewInfoObjectCollection();
        Txt         txt  = (Txt) txts.AddEx("Txt");
        txt.Title = "Test Text";
        txt.Files.Add(txtPath);
        txt.ParentID = folderID;
        infoStore.Commit(txts);
Ted Ueda

Similar Messages

  • How to create custom report plugin using child region report metadata

    Hi,
    I want to ask for help on how to create custom report plugin using child region report metadata. My idea is to create a child region, a classic report and set the condition to never.
    Then i will query the child report metadata from apex view and use it to create a custom report like using jquery jq-grid. Any idea how i can create a process that will use the child report
    metadata? I dont know how i can create a process just like how apex work, how apex render report, coz i want it to be control using the standard apex report attribute. This plugin will
    render according to the child report attribute.
    Is there anybody here had ever done this?

    Hi Nicolette,
    Thanks for the reply. I know where to find the metadata, just asking for idea on how the rendering process will be.
    Start from determining column heading, column order until finish rendering the report. The same way how apex
    render the classic report.
    Previously this imy my rendering process:
    FUNCTION GETCOLUMN(P_REGION IN APEX_PLUGIN.T_REGION,
                         P_PLUGIN IN APEX_PLUGIN.T_PLUGIN,
                         P_VALUE  IN VARCHAR2) RETURN SYS.DBMS_SQL.DESC_TAB2 IS
        VSQLHANDLER     APEX_PLUGIN_UTIL.T_SQL_HANDLER;
        VCOLCOUNT       NUMBER;
        VCOLNAMES       VARCHAR2(2000);
        VAJAXIDENTIFIER VARCHAR2(100);
        VPAGESIZE       TYPEATTR := P_REGION.ATTRIBUTE_04;
        VJSCODE         VARCHAR2(32767);
      BEGIN
        VSQLHANDLER := APEX_PLUGIN_UTIL.GET_SQL_HANDLER(P_SQL_STATEMENT  => 'select * from s_emp',
                                                        P_MIN_COLUMNS    => 1,
                                                        P_MAX_COLUMNS    => 999,
                                                        P_COMPONENT_NAME => P_REGION.ID);
        VCOLCOUNT := VSQLHANDLER.COLUMN_LIST.COUNT();
        FOR I IN 1 .. VCOLCOUNT LOOP
          VCOLNAMES := VCOLNAMES || '{name: "' ||
                       UPPER(VSQLHANDLER.COLUMN_LIST(I).COL_NAME) || '",';
        END LOOP;
        APEX_PLUGIN_UTIL.FREE_SQL_HANDLER(VSQLHANDLER);
        RETURN VSQLHANDLER.COLUMN_LIST;
      EXCEPTION
        WHEN OTHERS THEN
          APEX_PLUGIN_UTIL.FREE_SQL_HANDLER(VSQLHANDLER);
          RAISE;
      END GETCOLUMN;
    So this is how i get the header for my report plugin. The same method is use to get the value / data for each column. This process is work. So now
    i want to extend my plugin so that i will use all attributes from the child report to render my plugin. So the column header, column order, all will depend
    on the child report. And the column display condition is set, it will also check the condition before render the column. Sounds like i want to reinvent
    the normal apex rendering process but this is what i want to achieve.
    I need help to find the correct logic for my render process. Don't want too much for starting, just want to render the plugin correctly, same with child report,
    same columns alias, column ordering and column  conditional display.
    Thanks,
    akulala

  • Unable to read report metadata

    I have a report from SSRS2008R2 in user in PP2007 which works there properly.
    When I try to use it in PP2010 I get "Unable to read report metadata" every time I try to change the default value of the parameters.
    In PP2007 it all works properly.
    thanks

    After analysing network traffic, I found that Report server returns an error to dashboard designer because a parameter is set as "read only".
    This means that there is a parameter that has been set to internal in the report.
    The important thing is :
    Note: Publishing a report over an existing report on the report server does not overwrite the parameter information.
    To update parameters for an existing report, either delete the report on the report server and republish, or update the parameter information for the report in Report Manager.
    To modify the parameters information, open the report server. Go to your report, and select Manage, then Parameters ( on the left panel).
    Internal parameters appears with unselected textbox for Hide and Prompt. Select Hide and then Apply.
    Go back to Dashboard designer, you can now update the parameter values.
    Regard,
    Franck

  • Rscrm_bapi  ERROR : 'Report Metadat not complete' !!

    hi Experts,
    While executing rscrm_bapi to execute the query in the background I am getting the following error:-
    "<b><i>Report Metadata not complete</i></b>"
    Please help me to find out where I went wrong and also guide me to solve the problem.
    Thanks in advance.

    Hi,
    Unlike in BW3.5 Dynamic variable selection is not supported in BI7.0.Please check the note below
    https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=973676&nlang=EN&smpsrv=https%3a%2f%2fwebsmp208%2esap-ag%2ede
    Regards
    Chandru

  • Using BI SDK to read Bex report Metadata

    Hi,
    I want to read the Bex Reports Metadata. Does BI SDK contains such routines?
    I am anxious to know how BI SDK can be helpful in this requirement, please suggest any other alternatives that may help.
    Thanks,
    Neeraj Patwal

    Try using the following
    Suppose <b>TESTVAR</b> is having the value <b>A</b>
    If TESTVAR is single value
    var_name_1=TESTVAR
    VAR_VALUE_EXT_1 = A
    if TESTVAR is range
    var_name_1=TESTVAR
    VAR_VALUE_LOW_EXT_1 = A
    VAR_VALUE_HIGH_EXT_1 = A

  • Regarding crystal report metadata

    I am working with crystal reports XI. I need to know where metadata gets stored in crystal reports and what are the possible ways to extract the metadata. Any clues or suggestions will be very helpful. Kindly assist. Thanks in advance.

    Crystal Reports is a proprietory format and not for public use.

  • Creating a Report that Does Not Require a Target

    I have several reports I'm building that work across all systems of a particular type. For example, I want to create a table of all of the systems with all of their software versions, another table with all of the systems and all of their free capacities and raid profile types (to best select a system to allocate capacity on) ...
    As such, I would like to build a report where I do NOT have to choose a specific target. Is this possible?
    My report definitions allow me to choose a type, but I can't find a way to say "but don't require a target", here is the report metadata for reference...
    l_target_type := MGMT_IP_TARGET_TYPES();
    l_target_type.extend(1);
    l_target_type(1) := 'my_storage_type';
    l_report_title_nlsid := 'Federated Capacity and Configuration Report';
    l_report_owner := mgmt_user.get_repository_owner;
    -- create a report definition for the report
    l_report_guid := mgmt_ip.create_report_definition (
    p_title_nlsid => l_report_title_nlsid,
    p_description_nlsid => 'Display of Configuration Information',
    p_owner => l_report_owner,
    p_category_nlsid => 'Storage',
    p_sub_category_nlsid => 'Storage Category',
    p_late_binding_target_types => l_target_type,
    p_show_table_of_contents => 1,
    p_system_report => 1,
    p_component_name => l_target_type(1)
    );

    It is a bit more complex, but I will boil this down:
    - Yes, I'm using the term System loosely, I am doing a query across a bunch of appliances in one case, there is no target identifier associated with it and, as such, the SQL does NOT include a where clause like i.TARGET_GUID = ??EMIP_BIND_TARGET_GUID?? so I would prefer the user does not have to select this
    - In another case I am in a detail report and do not want the user to have to choose the target (you can refer to another post on this), but basically, I get a table back using the BIND_TARGET, the user can click a column to get details on the adapter (for example), they click on it and are confronted with a target selection. I would rather "carry over" the target selection from the master report or I suppose I could "hide" the target GUID in the master report and then pass it as a parameter (my detail reports, in this case, are not home page reports and can only be accessed through the master report)
    Either way, I don't want to be confronted by the target selection.

  • Report printing status in CVD1

    I want to determine that a WWI report has been printed successfully.
    The reports show in tcode CVD1. The report metadata is stored in table CVDDH.
    How do I determine form table CVDDH that report printed sucessfully or unsuccessfully
    Thanks

    Hi Raynald,
    Once you check in CVD1 and found the report is created,then it means a released version of the specification is available.
    In order to check the status in WWI ,go to cg5z Transaction and check if the process is in Green colour.If the report is successfully created and the back ground programms run properly ,then u will be able to see the status as green in CG5Z.If there is any error u found ,then delete the processing in cg5z and run the programs again.
    Regards
    George

  • Publishing issue with BOE XI 3.1 and SAP IK

    Hi There,
    this issue has been posted a few times before and I see other people are running into it as well. Nonetheless I have not found a satisfying answer in the Forum.
    I have the problem that I can only publish a Crystal Report based on SAP BI if the publishing role is an Admin in BOE. that is not how it is supposed to work.
    I followed all the guidelines and required settings and as soon as the publisher is no administrator I get an error. Publishing to BI works fine.
    The error I get is:
    An error occurred while saving and/or publishing. The return code 1 was returned from the server. An error occurred when synchronizing folder hierarchy for role:......
    Here is the publishing log:
    essage
    [Thu Nov 20 10:06:33 2008]     2664     1688     Entering CPubReqPublishReport::Process(1)
    [Thu Nov 20 10:06:33 2008]     2664     1688     Entering CPubBWConnector::GetQueryLocation()
    [Thu Nov 20 10:06:33 2008]     2664     1688       SAP_LANGUAGE set to EN (got from rfc handle)
    [Thu Nov 20 10:06:33 2008]     2664     1688     SAP Publisher BW Binding: 1 roles returned. Deduced active system id to be 00001 from the first row [role: Y:BI_PROG_MGR]
    [Thu Nov 20 10:06:33 2008]     2664     1688     System 00001: Name: base_folder Value /SAP/2.0/
    [Thu Nov 20 10:06:33 2008]     2664     1688     System 00001: Name: ce_aps_nam Value cepvsabob81:6400
    [Thu Nov 20 10:06:33 2008]     2664     1688     System 00001: Name: ce_lang_list Value D E
    [Thu Nov 20 10:06:33 2008]     2664     1688     System 00001: Name: ce_path_pr Value SAP
    [Thu Nov 20 10:06:33 2008]     2664     1688     System 00001: Name: ce_protcl Value http
    [Thu Nov 20 10:06:33 2008]     2664     1688     System 00001: Name: ce_server Value cepvsabob81.gov.edmonton.ab.gov:8080
    [Thu Nov 20 10:06:33 2008]     2664     1688     System 00001: Name: ce_viewer Value reportView.do
    [Thu Nov 20 10:06:33 2008]     2664     1688     System 00001: Name: folder_policy Value FCT
    [Thu Nov 20 10:06:33 2008]     2664     1688     System 00001: Name: report_policy Value FCT
    [Thu Nov 20 10:06:33 2008]     2664     1688     Running job synchronously
    [Thu Nov 20 10:06:33 2008]     2664     1688     Entering job processor CPubJobGetRoleMetaData(Y:BI_PROG_MGR)
    [Thu Nov 20 10:06:33 2008]     2664     1688     Entering CopyRfcHandle(1)
    [Thu Nov 20 10:06:33 2008]     2664     1688     Starting up callback server at 162.106.114.62 sapgw16 with prog-id SEGIDDC806AA2A01688
    [Thu Nov 20 10:06:33 2008]     2664     1688     GetRfcHandle() returned with handle 2
    [Thu Nov 20 10:06:33 2008]     2664     1688     Leaving job processor CPubJobGetRoleMetaData(Y:BI_PROG_MGR)
    [Thu Nov 20 10:06:33 2008]     2664     1688     Logging on to Crystal Enterprise
    [Thu Nov 20 10:06:35 2008]     2664     1688     Logged on to CMS "cepvsabob81:6400" as user "BIX~001/DUMMY" with id 1815
    [Thu Nov 20 10:06:35 2008]     2664     1688     Generating Enterprise token "cepvsabob81.COE.ADS:6400@1897JkHE9ilGJ2Hgcinp1895JceHlHlYrNTzUBPQ" for use with repository linked reports.
    [Thu Nov 20 10:06:35 2008]     2664     1688     Worker thread created. Placing in active queue.
    [Thu Nov 20 10:06:35 2008]     2664     1688     Base folder hierarchy: /SAP/2.0/BIXCLNT001
    [Thu Nov 20 10:06:35 2008]     2664     1688     FindFolder Query: SELECT SI_ID, SI_PATH FROM CI_INFOOBJECTS WHERE SI_NAME='BIXCLNT001' AND SI_PROGID='CrystalEnterprise.Folder'
    [Thu Nov 20 10:06:35 2008]     2664     6784     Entering job processor CPubJobCompositeReport
    [Thu Nov 20 10:06:35 2008]     2664     6784     Running job synchronously
    [Thu Nov 20 10:06:35 2008]     2664     6784     Entering job processor CPubJobDownloadReport(4BW89NXFO63ORDK4YMDSU0GN2)
    [Thu Nov 20 10:06:35 2008]     2664     6784     Reused connection 2
    [Thu Nov 20 10:06:36 2008]     2664     1688     FindFolder returned 1 items from query SELECT SI_ID, SI_PATH FROM CI_INFOOBJECTS WHERE SI_NAME='BIXCLNT001' AND SI_PROGID='CrystalEnterprise.Folder'
    [Thu Nov 20 10:06:36 2008]     2664     1688     Base folder id is 1465
    [Thu Nov 20 10:06:36 2008]     2664     1688     Worker thread created. Placing in active queue.
    [Thu Nov 20 10:06:36 2008]     2664     1688     CPubReqPublishReport::force_mode string()
    [Thu Nov 20 10:06:36 2008]     2664     6784     Downloaded report 4BW89NXFO63ORDK4YMDSU0GN2 with master langugage E in the following languages: D E
    [Thu Nov 20 10:06:36 2008]     2664     1688     CPubReqPublishReport::force_mode_bool(false)
    [Thu Nov 20 10:06:36 2008]     2664     6784     Adjusted language list for report 4BW89NXFO63ORDK4YMDSU0GN2 is "E"
    [Thu Nov 20 10:06:36 2008]     2664     1688     About to start publishing reports to CE. Waiting for folders and report metadata.
    [Thu Nov 20 10:06:36 2008]     2664     6784     Leaving job processor CPubJobDownloadReport(4BW89NXFO63ORDK4YMDSU0GN2)
    [Thu Nov 20 10:06:36 2008]     2664     6784     Running job synchronously
    [Thu Nov 20 10:06:36 2008]     2664     6784     Entering job processor CPubJobProcessReport
    [Thu Nov 20 10:06:36 2008]     2664     6784     Reused connection 2
    [Thu Nov 20 10:06:36 2008]     2664     2448     Entering job processor CPubJobCEFolders(Y:BI_PROG_MGR)
    [Thu Nov 20 10:06:36 2008]     2664     2448     CPubLocFolderHierarchy::ParseRoleFolderInfo:l_sText:[Projektcontroller]
    [Thu Nov 20 10:06:36 2008]     2664     2448     CPubLocFolderHierarchy::ParseRoleFolderInfo:l_sText:[Program Manager]
    [Thu Nov 20 10:06:36 2008]     2664     2448     CPubLocFolderHierarchy::ParseRoleFolderInfo:l_sText:[BOBJ_Test_1]
    [Thu Nov 20 10:06:36 2008]     2664     2448     FindObjects query: SELECT SI_NAME, SI_LOC_NAMES, SI_LOC_ORIGINAL_LOCALE FROM CI_INFOOBJECTS WHERE SI_PROGID='CrystalEnterprise.Folder' AND SI_PARENT_FOLDER='1465' AND SI_SAP_FOLDER_ID='Y:BI_PROG_MGR                 0000000000'
    [Thu Nov 20 10:06:36 2008]     2664     2448     FindObjects returned 1 items from query SELECT SI_NAME, SI_LOC_NAMES, SI_LOC_ORIGINAL_LOCALE FROM CI_INFOOBJECTS WHERE SI_PROGID='CrystalEnterprise.Folder' AND SI_PARENT_FOLDER='1465' AND SI_SAP_FOLDER_ID='Y:BI_PROG_MGR                 0000000000'
    [Thu Nov 20 10:06:36 2008]     2664     2448     FindObjects query: SELECT SI_PATH FROM CI_INFOOBJECTS WHERE SI_ID='1808' AND SI_PROGID='CrystalEnterprise.Folder'
    [Thu Nov 20 10:06:36 2008]     2664     2448     FindObjects returned 1 items from query SELECT SI_PATH FROM CI_INFOOBJECTS WHERE SI_ID='1808' AND SI_PROGID='CrystalEnterprise.Folder'
    [Thu Nov 20 10:06:36 2008]     2664     2448     FindObjects query: SELECT SI_ID FROM CI_SYSTEMOBJECTS WHERE SI_NAME='BIX~001@Y:BI_PROG_MGR'
    [Thu Nov 20 10:06:36 2008]     2664     2448     FindObjects returned 0 items from query SELECT SI_ID FROM CI_SYSTEMOBJECTS WHERE SI_NAME='BIX~001@Y:BI_PROG_MGR'
    [Thu Nov 20 10:06:36 2008]     2664     2448     ERROR: ..\..\src\ce_folder_hierarchy.cpp [328]: E_NOINTERFACE failed with return code l_hr = -2147467262
    [Thu Nov 20 10:06:36 2008]     2664     2448     COM Exception caught in CCEFolderHierarchy::RelateFolderToUserGroup. HRESULT = -2147467262
    [Thu Nov 20 10:06:36 2008]     2664     2448     ERROR: .\ce_folders.cpp [226]: m_objBaseHierarchy.RelateFolderToUserGroup(l_sFullUserGroupName, l_nRoleRootFolderId) failed with return code l_hr = -2147467262
    [Thu Nov 20 10:06:36 2008]     2664     2448     Leaving job processor CPubJobCEFolders(Y:BI_PROG_MGR)
    [Thu Nov 20 10:06:36 2008]     2664     1688     error happened when synchronizing role folder
    [Thu Nov 20 10:06:36 2008]     2664     1688     Leaving CPubReqPublishReport::Process(1)
    [Thu Nov 20 10:06:36 2008]     2664     1688     Dispatch returned with code 0 and message [See RFC trace file or SAP system log for more details]
    [Thu Nov 20 10:06:36 2008]     2664     6784     Content marker: 0
    If someone ran into this issue and fixed it could you please give me your steps so I can check with what I did?
    Thanks,
    Stephan

    Hi,
    - the user that is supposed to publish a report needs to be part of a role that has been imported
    - that role needs to have the rights to view, edit, add, modify object as part of the role folder (or higher in the folder structure like the SAP system ID Folder).
      detailed list of rights :
         Add objects to the folder that the user owns
         Add objects to the folder
         Copy objects to another folder that the user owns
         Copy objects to another folder
         Delete objects that the user owns
         Delete objects
         Edit objects
         Edit objects that the user owns
         Modify the rights users have to objects
         View objects
         View objects that the user owns
    - you then need to assign a principal to the user group in BOE (CMC > Users and Groups > select the group > add principal) and assign the same rights
    - then go to the Access Levels and use the Manage > user security option and give the role the following rights :
         View objects
         View objects that the user owns
         Edit Objects
         Edit objects that the user owns
         Use Access level for security assignment
    Ingo

  • Cocoon pdf printing

    Hi,
    I have followed Carl's very concise blog on using cocoon for pdf printing. http://carlback.blogspot.com/2007/03/apex-cocoon-pdf-and-more.html
    I have tomcat and cocoon up and running on linux (NOT a five minute task on linux unless you are a sysadmin, with all respect to Carl). I have my apex (3.2 on XE ) install pointed to it under Manage Service> Instance Settings > Report Printing.
    Now I'm trying to get reports to use this plumbing, but I'm not seeing a builder dialog under Print Attributes> Printing anything like Carl shows in his viewlet. I get only settings for Response Header and Content Disposition, but Carl is showing Enable Report Printing, Link Lable, File Name, Output Format, and Report Layout.
    How does the builder decide when to display that kind of Report metadata? Does it have to connect to the print server or "know" that it is up to prompt for that? Any suggestions?
    Thanks,
    Steve

    Sorry, it was a silly problem:) You have to be logged in as admin to 'see' the 'instances' tab. maybe in all the tomcat/cocoon build/config issues, this simply got off my head!
    now, the problem of print server config is over, I have configured the same. the 'print' link is available now in report region, when I run the report. but when I click the 'print' link, it is taking ages...or rather it is still processing...!!
    Can anyone please point out to me now what is the problem...?
    thanks.

  • Delete XMP meta *including* xmpMM:history

    Hi all,
    a quick question, maybe you as experts are so kind to give a hint:
    i need to delete the xmpMM:history of an Adobe Illustrator (Mac OSX 10.6) file – neither AI CS 4 nor BRIDGE CS 4 let me do it. hitting the trash can button in the file information dialogue clears all meta data – but after a reload of the file it appears again.
    what might a be a quick workaround for the mac?
    i was searching for 45min on the net and only found crappy exif file viewers..
    thats why I turn to you - the professionals – now.
    thank you so much.
    i appreciate your answers.
    m

    xmpMM:History is an "Internal" property that is specifically "owned" by the application.
    In the definition of an Internal Property: "Must be maintained by an application. ... Users should not be allowed to change the values of such properties. ... If an application does not set the value of an internal property, it should discard any value that may have existed previously."
    Use of Delete in File Info->Advanced is surely considered a "User" change, and thus, not supported for xmpMM:History. Since File Info is often silent on a command failure, it is prudent to reload the file to see if changes really took effect.
    I expect that Illustrator may handle "internal" metadata differently for different file "Save" scenarios:
    - "Save As" especially to another file format
    - "Save a Copy"
    - "Save for Web & Devices" (typically minimizes the metadata size)
    You may need to experiment to characterize the behaviors relative to xmpMM:History.
    Although it may not apply to your situation, the three versions of save listed above should always result in a single XMP packet in the file. On the other hand, an Illustrator "Save" or a Bridge "Update XMP" can result in a new "current" XMP packet appended to the file, leaving the first, now obsolete, packet still in the file. Reload the file in Illustrator or Bridge should only report metadata from the "current" XMP packet. Other applications, such as Mac OS-X Spotlight, may report tags and content from obsolete XMP packet(s) as well as from current packets.
    What is your purpose for deleteing this metadata?
    Carl

  • Salesforce Password not saving in CMC

    I've got a couple of reports running successfully outside of BOE that query SFDC with a username/password prompt.
    These have been published to our BOE server, and the Database Configuration set to "Use same database logon as when report is run". I've also set the password/token pair and saved that info.
    When I attempt to View the report, I recieve the error "The database logon information for this report is either incomplete or incorrect."
    When I check the History, the error listed is "Unable to connect: incorrect log on parameters."
    Part of my report is pulling from local databases, and it's clear that the password info is saved in Database Configuration. What is clear to me is that the Salesforce password/token pair is not being saved.
    I've contacted support but they've been no help to this point, possibly because I've not purchased BOE yet but am in the eval phase doing a proof of concept for my directors.
    Clearly this is not going to pass muster and the project will be killed if this problem isn't solved.
    Does anyone have any clues as to why I can't save my Salesforce password/token pair in the Database Configuration area of the report properties???
    Thanks.

    Hi John
    We use Salesforce.com internally as a data source with BusinessObjects Edge/Enterprise and save the username/password under the database configuration, so users are not prompted to enter them when the report is run. So it can be done... it sounds like one of those frustrating errors that is difficult to pin down.
    My only reccomendation would be to try updating to the latest service pack/fix pack or at least checking out the release notes for the latest service pack, searching for "salesforce.com" in the text.
    Alternately, try republishing the report again-- it is a long shot, but sometimes if we are unable to save report metadata (like the username/password), publishing it again will do the trick.
    hope this helps!

  • How to Correctly Trap PL/SQL Errors for APEX

    This is probably a simple fix but, I have been at it for a while and can't seem to find the magic combination.
    I have a page process that calls back end PL/SQL. I have a page item that is populated by said PL/SQL procedure, P35_PROCESSING_MSG. As you know the Process allows me to specify a message for Success and another for Failure. My desire is that, if there is a back end failure, the error will display in the dialog area, using the built-in "Process Error Message" functionality. Instead, after execution, the page item still has its default value and the following, ugly, error displays in the tabular report region.
    report error:
    ORA-20001: Error fetching column value: ORA-01403: no data found
    ORA-06510: PL/SQL: unhandled user-defined exceptionI just don't get why it displays here instead of in the usual failure area. Moreover, I don't understand why the error is "*+unhandled+* user-defined exception" when, as you will see, I have handled it.
    I have a page process to perfom custom MRD for a tabular form. (I don't think this is really germane to the more generic issue but, I bring it up as an explanaintion for the following code sample). I am diliberately causing a DIVIDE BY ZERO error to test the error handling form the back end.
        PROCEDURE PROCESS_MARGIN_CALL_DELETES( as_StatusMsg OUT VARCHAR2 )  
        IS
            lb_InnerErrorOccured    BOOLEAN := FALSE;
            ln_DeleteTargetCnt      NUMBER := 0;
            ln_DeleteTargetRow      NUMBER := 0;
        BEGIN
            ln_DeleteTargetCnt := apex_application.g_f01.COUNT;       
            FOR ln_DeleteTargetIndx IN 1..ln_DeleteTargetCnt
            LOOP
                ln_DeleteTargetRow := apex_application.g_f01(ln_DeleteTargetIndx);
                BEGIN
                    If ( apex_application.g_f14.EXISTS(ln_DeleteTargetRow) ) Then
    select 1/0 into ln_DeleteTargetCnt from dual;
                        DELETE FROM RISKDM2.INTRADAY_ECS_RSKALYST_MRGCALL
                        WHERE RISK_MARGCALL_ID = apex_application.g_f14(ln_DeleteTargetRow);
                    End If;                     
                EXCEPTION
                   WHEN OTHERS THEN
                        as_StatusMsg := as_StatusMsg || SQLERRM;
                        lb_InnerErrorOccured := TRUE;
                END;
            END LOOP;
            If ( lb_InnerErrorOccured = TRUE ) Then
                RAISE INNER_EXCEPTION;    
            Else
                as_StatusMsg := 'Successfully Processed';                  
            End If;
        EXCEPTION
            WHEN INNER_EXCEPTION THEN       
                RAISE_APPLICATION_ERROR( -20001, as_StatusMsg );
            WHEN OTHERS THEN
                as_StatusMsg := as_StatusMsg || SQLERRM;
                RAISE_APPLICATION_ERROR( -20000, as_StatusMsg );
        END; The associated code in APEX is short and sweet:
    BEGIN
       MBRDATA.MEMBER_MGR.PROCESS_MARGIN_CALL_DELETES( :P35_PROCESSING_MSG );
    EXCEPTION
       WHEN OTHERS THEN
          RAISE_APPLICATION_ERROR( -20002, :P35_PROCESSING_MSG );
    END;What I am missing?
    -Joe

    Joe Upshaw wrote:
    This is probably a simple fix but, I have been at it for a while and can't seem to find the magic combination.
    I have a page process that calls back end PL/SQL. I have a page item that is populated by said PL/SQL procedure, P35_PROCESSING_MSG. As you know the Process allows me to specify a message for Success and another for Failure. My desire is that, if there is a back end failure, the error will display in the dialog area, using the built-in "Process Error Message" functionality. Instead, after execution, the page item still has its default value and the following, ugly, error displays in the tabular report region.
    report error:
    ORA-20001: Error fetching column value: ORA-01403: no data found
    ORA-06510: PL/SQL: unhandled user-defined exceptionI just don't get why it displays here instead of in the usual failure area. Moreover, I don't understand why the error is "*+unhandled+* user-defined exception" when, as you will see, I have handled it.<Jedi>These are not the errors you are looking for.</Jedi>
    Anything included under a "report error" during page rendering is not displaying errors associated with a page process, but with the rendering of that report region, in this case clearly:
    ORA-20001: Error fetching column value: ORA-01403: no data foundThe ORA-06510 user-defined exception error relates to this (ORA-20001 being a user-defined error), but it is coming from the APEX framework rather than your code. Often these prove to be untraceable, unrecoverable problems caused by corruption of report metadata, only "fixable" by dropping and recreating the region.
    This may or may not be related to the setting of the page item "by said PL/SQL procedure", but the exceptions reported in the region are not being raised by the procedure.
    What does the debug trace show to be going on?
    Edited by: fac586 on 15-Aug-2012 08:35
    Added "...reported in the region..." for clarity

  • Project server 2010 What are the number of Custom fields and views allowed?

    How many customizations are permitted in Project Server 2010?
    Thanks in advance

    Hi
    new findings on that issue...
    There is an article for Project Online that speaks about limits for reporting: https://support.office.com/en-US/Article/Project-Online-software-boundaries-and-limits-5a09dbce-1e68-4a7b-b099-d5f1b21ba489?ui=en-US&rs=en-US&ad=US
    Apart from that you will have an issue if you like to upgrade to Project Server 2013. When trying to convert the 2010 databases to a 2013 database a SQL stored procedure will fail if you have more custom fields than fit into the UserViews.
    Error message will be something like this:
    System.Data.SqlClient.SqlException (0x80131904): INIT METADATA ERROR!  At least one mismatch found between SQL schema for view MSP_EpmProject_UserView and reporting metadata.  Call to MSP_Epm_CheckIntrinsicAttributes failed for Projects  INIT
    METADATA ERROR.    
     at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)    
     at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)    
     at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)    
     at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)    
     at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite)    
     at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)    
     at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite)    
     at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()    
     at Microsoft.Office.Project.Server.Data.SqlSession.ExecuteNonQuery(SqlCommand command)  ClientConnectionId:21f11abd-7388-48a0-a029-b5161fcb2dc8
    Workaround for the issue (UNSUPPORTED !!!!!!)
    Execute the Convertto-SPProjectDatabase script. Now you need to be fast or well prepared. You need to find the MSP_Epm_CheckIntrinsicAttributes stored procedure. Execute an ALTER statement for it and change the last lines of code to something like this:
    LblError:
       PRINT @ErrorMessage
        --changed RETURN code if an error occurs to be able to proceed with migration 
        --RETURN 1
         RETURN 0
    END
    I hope that helps someone out there - when I came across the issue last night, a google query returned nothing for INIT METADATA ERROR....
    Regards
    Christoph
    Christoph Muelder | Senior Consultant, MCTS, MCSE | SOLVIN information management GmbH, Germany

  • Basic authentication only works for some webservices?

    I'm trying to call the SAP BI/BO REStful webservices using basic authentication. I enabled basic authentication in the WACS and tested with this service:
    http://host:6405/infostore/16422
    This works! I can get the report metadata as either xml or json. However, whenever I try an url with "raylight" in it, I get an authentication problem:
    http://host:6405/biprws/raylight/v1/documents/16422/parameters
    error_code: "1"
    message: "No session found in HTTP header X-SAP-LogonToken"
    Why do some services work with basic authentication and others absolutely require the logontoken? I would like to avoid the logontoken if possible. I tested by logging on with the token and that does work, so it's not like my credentials are wrong.
    I also found the a problem with the raylight logontoken described here: RESTful Raylight Error Incorrect session
    Apparently, there needs to be double quotes around the logontoken for it to work. Could this "bug" be the reason why basic authentication doesn't work? I already tfried to put double quotes around and inside my base-encoded value but it still gives the same error.

    Hello,
    Raylight doesn't support basic authentication because it required a permanent session to work. Internally, we have to manage a "cache" to support subsequent REST calls and this is not possible using basic authentication.
    Regards,
    Anthony

Maybe you are looking for

  • Higher education cess not appearing in the excise invoice

    Hello experts,I am presently in a support project of a big aluminium project in india, my question is while i am creating the excise invoice using the transaction j1iin then with respect to the proforma invoice,what is happening is that the excise in

  • How to remove white spaces with GUI_Download FM

    Hi Gurus, I need to download my text file using GUI_DOWNLOAD FM without leading white spaces, can u pls advice me. I am giving the code I am using below. CALL FUNCTION 'GUI_DOWNLOAD'       EXPORTING   BIN_FILESIZE                    =         filenam

  • New simple help

    I'm not even sure i'm posting this in the right topic but i need help... I'm a simple student working on the municipal intranet. A problem showed up and they turned to me for the answer because i'm more a web specialist... The exact problem is that t

  • Netflix playback stops and dumps me back to app

    I watch a lot of Netflix on my Apple TV (I binge watch) and once or twice while watching it, the streaming playback stops and I'm looking at the menu screen showing the first episode I've watched - if I'm more than one episode in.  Sometimes I'm back

  • Error Free Flag in Transaction

    HI, While defining an action condition, we have an option of Error Free Flag in the Container where we give the condition definition. Where can we see this Error free flag in the transaction? If i set the condition       &CRM Lead.ErrorFreeFlag& = X