ORA-01403 displaying image in a report

Hello.
I have a table with BLOB column that stores an image. I created a report on this table trying to display this column's images. I surround the column with dbms_lob.getlength() function in the SQL of the report and I use the following for the column's Number / Date Format in the "Column Formatting" section of the Report Attributes:
IMAGE:PROJECT:PRODUCT_LOGO:PROJECT_ID::::::inline:Download
This syntax is what makes things works for me in other areas of the application where I display stored images in a report. But not here. The report works, returning a number (representation of the getlength function returned value), as it should. As soon as I add the above Number / Date Format, I get:
report error:
ORA-01403: no data found
What is different in this report from the others that work is that this report's SQL is a join of a number of tables, not a straight select on one table like the others. In the SQL, the tables are referenced by alias, so table PROJECT's PRODUCT_LOGO column is referenced as a.product_logo in the query's select clause.
I don't see any other substantive differences.
What could be the cause of the failure?
Thank You
Boris

Thank You Scott for your reply.
I was able to figure it out.
In my report query, I forgot to reference PROJECT_ID, which is the primary key of the table by which the IMAGE mask is called. Apparently, it is necessary to awalys include the primary key in the query SELECT clause, where you actually need it in the report or not, just to make the image retrieval in the report work.
Thank You
Boris

Similar Messages

  • Strange problem: ORA-01403: no data found when report has a sort

    Hi,
    I have a report which behaves very strangely but only for one particular user. The report runs fine when no columns are set as sort-by in the report attributes. As soon as I try and set a column to sort (any column, it doesn't matter) this user gets the error message:
    failed to parse SQL query:
    ORA-01403: no data found
    appear where the report should be on the page. The rest of the page displays OK. No other users are affected. If I remove the sort then the report is OK for this user (unsorted though!)
    The report is a structured query with custom column headings, nothing unusual, quite basic. I have tried exporting and reimporting the page but it doesn't fix it. Same behaviour for this particular page in our test system as well.
    I could rebuild the page but I'd rather know what is wrong in case it happens to some other region.
    Thanks,
    Steve

    Steve,
    The reports engine stores the sort settings in the user preferences. This is done so that when you return to a report, it maintains the earlier sort settings. Like in your response to the HTML DB studio posting, you would keep your report sorted by "Created On" descending or ascending even when you come back another time. It's save to remove those preferences; all that's going to happen is that your users will see the report using the report's default settings the next time they go to that page. I will try to investigate this problem further, whatever additional information you can provide, will be helpful,
    Marc

  • Display image in classical report

    Experts,
    Please share how to display image stored in SO10 in to a  classical report??

    Hi
    check this
    In the transaction OAOR, you should be able to insert your company Logo.
    GOTO - OAOR (Business Document Navigator)
    Give Class Name - PICTURES Class Type - OT..... then Execute
    It will show you the list, then select ENJOYSAP_LOGO.
    On that list, you will find one control with a "create" tab.
    Click std. doc types.
    Select SCREEN and double-click.
    It will push FILE selection screen.
    Select your company logo (.gif) and press OK.
    It will ask for a description- for instance: "company logo".
    It will let you know your doc has been stored successfully.
    You can find your logo under ENJOYSAP_LOGO->Screen->company logo.
    Just run your ALV program, you should find your company logo in place of the EnjoySAP logo.
    FORM TOP-OF-PAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = HEADING[]
    I_LOGO = 'ENJOYSAP_LOGO'
    I_END_OF_LIST_GRID ='GT_LIST_TOP_OF_PAGE'.
    ENDFORM. "TOP-OF-PAGE
    Here 'ENJOYSAP_LOGO' will replace by ur created logo.
    Refer this link
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm
    http://www.sap-img.com/abap/alv-logo.htm
    http://www.sap-img.com/fu002.htm
    Re: Logo on Login screen
    Re: To change image into main menu of sap
    Regards
    Anji

  • Error (ORA-01403) saveing data form a report with apex_item items

    Hi all,
    I've a problem saveing data that's inserted into a report which I created using apex_item items. Reproducing the exact issue on apex.oracle.com will take me a lot of time, and I don't know if I really can reproduce this matter... So I hope I can explain my problem clearly enough, here...
    The global story of the application is that its an application used for measureing objects. For these objects there are templates, with default properties. When measureing an object, the user must fill in those properties for the object. The report is build dynamicly, becouse each object has different properties and each property could be of an other kind (number, text, list, counter [=number field with add and substract buttons], and date). Depending on the type of the property, the report has to show an other item to fill.
    The query for constructing this report is like this:
    select defprop.proptyp_id,
    apex_item.hidden(41,defprop.id) defprop_id,
    defprop.nam,
    decode(proptyp.id,
                    1, apex_item.text(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||'' ,p_attributes=>'class=case5_num'),
                    2, apex_item.text(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||''),
                    3, apex_item.select_list_from_query(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||'', p_query=> 'select wrd, id from property_typewrd where proptyp_id = ' || proptyp.id ||' order by vlgnum', p_show_null=> 'NO'),
                    4, apex_item.text(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||'',p_attributes=>'class=case5_num')
                    || '<a name="add_f02" href="#"><img alt="add" src="#WORKSPACE_IMAGES#plusBig.gif"/></a>    '
                    || '<a name="sub_f02" href="#"><img alt="sub" src="#WORKSPACE_IMAGES#minusBig.gif"/></a>',
                    5, apex_item.date_popup(p_idx=>42, p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
                     ||''),
                    oms
                ) waarde
    from default_property defprop,
    object_instance obj,
    property_type proptyp
    where defprop.stdobjver_id = obj.stdobjver_id
    and defprop.proptyp_id = proptyp.id
    and obj.id = :P2200_ID_INVThis report works fine. Depending on the type of the property it shows a numberic field, text field, selectlist (with right values), counter field or date field.
    If the default property is set to a 'CONSTANT' value, the last known value is filled in.
    With a javascript I check the numberic field value and achieve the counterfield to add or substract values when 'plus' or 'minus' is clicked.
    This javascript is placed in the field 'Execute when Page Loads' in the page properties in APEX. Here is the code:
    /*Execute when page loads*/
    /*Allow only numbers */
    number_elem = $('input[name=f42].case5_num');
    number_elem.keypress(function(event) {
      if (event.which && (event.which < 46 || event.which > 57 || event.which == 47) && event.keyCode != 8) {
          event.preventDefault();
      if (event.which == 46 && $(this).val().indexOf('.') != -1) {
          event.preventDefault();
    //for mouse events, remove any non numeric characters
    number_elem.bind('mouseup mousedown mouseleave', function(event) {
       this.value = this.value.replace(/[^0-9]/g, '');
    /* Subtract Button */
    $('a[name="sub_f42"]').click( function() {
      number_elem = $(this).siblings('input[name=f42].case5_num');
      currVal = number_elem.val();
    if ( isNaN( currVal) ){
       elemVal = 0;
    else {
       elemVal = Number(currVal);
    if (elemVal > 0)
         number_elem.val(elemVal-1);
    else
    { elemVal = 0; }
    /* Add Button */
    $('a[name="add_f02"]').click( function() {
      number_elem = $(this).siblings('input[name=f42].case5_num');
      currVal = number_elem.val();
    if ( isNaN( currVal) ){
       elemVal = 0;
    else {
       elemVal = Number(currVal);
    number_elem.val(elemVal+1);
    });Those two codes makes my report works fine. So far I'm happy. But now I want the data, which the user fills in the items, to be saved.
    So I created a process that should do this for me (it wil run after the user hits a button), here is the code:
    declare
         v_objmet_id number := 0;     
    begin
         select measurment_seq.nextval
         into v_objmet_id
         from dual;
         insert into measurment
         ( id
         , obj_id
         , dat
         values
         ( v_objmet_id
         , :P2200_ID_INV
         , :P2200_METDAT_INV
         /*Loop trough the values (g_f42 holds the value of the property)*/     
         for i in 1 .. apex_application.g_f42.count loop
              /*g_f41 holds the key to the default property*/
              if apex_application.g_f41(i) is not null and
                   apex_application.g_f41(i) > 0 then
                   insert into measurment_prop
                   ( measrument_id
                   , defprop_id
                   , wrd)
                   values
                   ( v_objmet_id
                   , apex_application.g_f41(i)
                   , apex_application.g_f42(i)
              end if;
         end loop;
    end;After running this process, the application branches back to the page, clearing the cache and set some items I use for filtering an other report with their own values.
    Both the process and the branche have a 'when button pressed' condition, where the same button is filled in. The branche fires on submit: after processing.
    When I hit the button to save the data, I get an error: ORA-01403: no data found
    In the debug info I can find there is encountered an unhandeled exception in the process, but I don't know what's going wrong...
    I thought it could be something with the date field, I want to save, so I put it in a to_date() with the right format, but I still got the error...
    I've also checked if the query which fetches the nextval of the sequence is correct, and it is, no typeing error in the sequence name, or something.
    I'm using APEX 4.0.2
    Edited by: Mir on 28-jun-2011 10:25
    Changed some code of the javascript, it directed to the wrong item ID, now its correct

    My problem is solved. The error occured when application item g_f41 was accessed, so my application couldn't find the data, the user putted in there. I now pasted this part of the sql, to the other apex_item field, so it became one field and now it works correctly:
    select [...]
    apex_item.hidden(41,defprop.id) ||
    decode(proptyp.id,
                    1, apex_item.text(p_idx=>42,p_value=>''||
                        decode(defprop.srt, 'CONSTANT', (select WRD
                                                                            from    measurement_prop
                                                                            where    defprop_ID = defprop.id
                                                                            AND        measurement_id IN
                                                                                (SELECT ID
                                                                                FROM measurement
                                                                                WHERE OBJ_ID = obj.id
                                                                                AND DAT IN
                                                                                    (SELECT latest_date
                                                                                    from object_instance
                                                                                    WHERE ID = obj.id)))
    [... etc ...]

  • Can We Display Image on Hieararichal Report on Each Line item

    Dear Gurus ,
                         I have a Strange Requirement from the Client . They want to display Image on each line item of report with regard to Material in Hierarchal Sequential Report . Is there any solution for the same .
    Thanks in advance
    regards
    Shankar

    I am having a path which is stored in SAP database which i have fetched in the reported in both alv heriarchal and also in Alv Grid . The Image is stored from DMS . Now what i am doing is i am trying to load a excel file from program BCALV_BDS_UPLOAD and when i run my report and go to view and select Microsoft Excel option the I am getting an error Bad file format .
    The Path is : SAPR3://SAPR3CMS/get/200/DMS_5FC1/DE72B28A5B76F0F1AF0000215E54283E/FM1E1085XX18W-001E.jpg
    Can you please help me out in this .
    Regards
    Shankar

  • Displaying image in abap report

    Hi Everyone.
    I need to display an image in a simple ABAP report giving the filepath of the image.
    Can anyone suggest me how to do it???
    Is there any FM for that, i need some solution.
    Kindly help.
    Thanks
    Regards
    Naveen

    I need to give the path of the image in the report itself and then while executing i must get the image in the output screen...
    Giving path is a must....

  • Displaying Images in a Report or in PLSQL Code

    Hi all,
    I have a products catelog in an items table (item_id, item_name, item_image (blob)). I want to display it in a table form but Reports in Portal30 do not allow images.
    I can write simple PLSQL code to display table contents in tabular form (using htp, htp packages) but I could not find any procedure/function to display image stored in a db table to an HTML table.
    I shall be grateful for any help or hint regarding this. You can mail me directly if you like.

    Armaghan
    This question is best asked in the Oracle9iAS Portal Applications Forum.

  • Displaying images in pdf reports

    a question please..
    can one display only .gif type images or can they also be .jpgs?
    also, is there a limit to the size of the image one displays?
    also, can one control the size of these images in the reports.
    sorry about the above. I have looked around for answers with very little success.
    thanks in advance.

    Hi
    I'm actually wondering about the same thing, however, I'd like to implement a BLOB-image in a PDF Report.
    I found this link http://blogs.oracle.com/xmlpublisher/2006/05/05#a34 which makes it seem that BI Publisher supports base64encoded pictures. (There's a sample there aswell)
    Now my question is; how can we get the blobdata presented as base64 in the XML from ApEx? Anyone with some experience on this?
    Regards,
    Vidar

  • Display images in a report

    Hi all,
    I have a table, Standard_Products, and i want to show an image in my report along with some other data.
    I am using file browser to import the images at the moment.
    Please advise what to do - at the moment the column is showing "Datatype" instead of the image itself.
    Thanks,
    Rob

    Take a look at: http://htmldb.oracle.com/pls/otn/f?p=18326:54:2841216309756218::::P54_ID:268
    Mike

  • Displaying image in ABAP report "Urgent"

    Hi Everyone
    My requirement is as follows...
    On Material Master there is an image stored in document management system.
    In a report we need to display the material details plus the image from DMS system.
    I heard that there is some function module in this area.
    Can anyone pls help how can i achieve this....
    Kindly help as soon as possible.
    Thanks
    Regards
    Naveen

    Hi Naveen,
    Hope the report is ALV..
    Re: How do I insert a logo in ALV using Function Modules?
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm
    Steps for uploading Logo :-:
    1. Goto the transaction OAER
    2. Enter the class name as 'PICTURES'
    3. Enter the class type as 'OT'
    4. Enter the object key as the name of the logo you wish to give
    5. Execute
    6. Then in the new screen select Standard doc. types in bottom window
    Click on the Screen icon
    Now, it will ask for the file path where you have to upload the logo
    7. Now you can use this logo in REUSE_ALV_COMMENTARY_WRITE
    Here you go !!
    *& Form TOP_OF_PAGE
    text
    FORM F_TOP_OF_PAGE.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    IT_LIST_COMMENTARY = IT_LISTHEADER
    i_logo = Logo name
    I_END_OF_LIST_GRID =.
    ENDFORM. "TOP_OF_PAGE
    <b>Reward points if this helps.
    Manish</b>

  • Display Image in Bex Report

    Hi All,
    I have a requirement where the client wants to dsiplay the image of a particular characteristics in the Bex report.
    For example, they have a charaacteristic Material, and they have the images of all the materials. The requirement is to display the image of the particular material wherever it appears in any report.
    Can somebody let me know if this is possible and if yes how this can be done? I want to know how the master data (with the images) will be maintained and how it can be implemented on the reporting side.
    Thanks in advance for any help.
    Arnab Ghosh

    refer:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/709cfb6e-f99c-2910-ba82-e85202944022
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8046aa90-0201-0010-5e99-962948c83331

  • Display image in forms & reports developed on windows and deployed on Unix

    Hi,
    We are upgrading from Forms and reports 6i to forms10g.
    We need to insert image in forms and reports. Recompile and deploy on unix server.
    So can anyone let me know the exact steps to create jar file containing images, where to place the jar file.
    Corresponding folder, file and configuration changes required on windows and unix.
    Av.

    Hi Frank,
    thanks for the link it helped me in understanding how images work for forms.
    But my real concern is how this will work in reports?
    As we dont have any reportsweb.cfg nor any java path for reports?
    Can you help me in understanding how to embed image in reports that will be displayed even after porting the report on unix oas.
    Regards,
    Av.

  • Displaying Images In A Report Template Build In Word

    Hi
    I am trying to display a company logo (image) blob data type from a query within my database on a BI Report
    EG
    A basic Query
    Select id, logo
    from headers
    where company_id = 1
    I am then trying to display this by creating a word template. I can display the ID fine but the image is just the raw content of the blob.
    Can someone point me in the right direction.
    Many Thanks

    Ive resolved this
    Thanks
    FYI In case anyone needs the info
    <fo:instream-foreign-object content-type="image/jpg"><xsl:value-of select=".//FIELDNAME"/></fo:instream-foreign-object>

  • Insert and display images in a report

    Hi ABAPers, I need to insert and display an image (bitmap format) in a standard ABAP report. With the consideration that the image (an employee photograph) could vary depending on the employee numer the user enter as an input parameter for the report. Any ideas of how can I do it? Help will be appreciated. Thanks in advance.
    Regards.
    Sebastian.

    No you can’t do it as Vashmi already said so , you can upload the pictures in ALV, but  in your requirement I must say you should see the OSS note # 353949
    <b>FYI</b>
    Symptom
    In the following note you will find some of the most frequently asked questions and their answers. Most answers are release independent, but some are valid for release 4.6 only.
    Other terms
    Questions, picture in header, profile, FAQ
    Solution
    [1] Question: Is it possible to configure the profile e.g. for a                   person?
    [2] Question: How can I bring a picture of the person into the                   profile header?
    [1] Question: Is it possible to configure the profile e.g. for a                   person?
    Answer: It is possible to add or delete sub-profiles. You can do this in the customizing (transaction OOPF). There you can deactivate sub-profiles for an object type. Or add a new existing sub-profile.
    <b>[2] Question: How can I bring a picture of the person into the                   profile header?
    Answer:
    You should have an employees picture with format JPG or BMP...
    Start transaction OAAD to add the picture to SAP ArchiveLink. Press the Create-Button there. You have to type in PREL for the Business object and HRICOLFOTO for the Document type. Then press create. On the popup you must maintain the wished Personnel number for that the picture should be valid. Then press 'Continue'. Choose the picture and continue.
    For the screen header 00 (if it isn't changed) you should see the picture in the profile.</b>
    Hope this’ll give you idea!!
    <b>P.S award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Knowledge comes but wisdom lingers!!"

  • Displaying Image in Oracle Reports 9i Web view

    I can not just display the image in the web view of the Oracle reports version 9i. It is displaying in the paper layout view though. It is a database field queried with all other columns. Can somebody please tell me how to do this?

    Hi Ujjal,
    Search for a line similar to the one shown below in your report's web source (that is, the code that shows the image) - it will be in the data area generated by the Report Wizard:
    <td <rw:headers id="HFadphoto241" src="HBadphoto241"/> class="OraCellText"><rw:field id="Fadphoto241" src="ad_photo" nullValue=" "> F_ad_photo </rw:field></td>
    You need to change it to the following:
    <td <rw:headers id="HFadphoto241" src="HBadphoto241"/> class="OraCellText"><rw:field id="Fadphoto241" src="ad_photo" nullValue=" " containsHtml="yes"> F_ad_photo </rw:field></td>
    Notice the addition of:
    containsHtml="yes"
    Navneet.

Maybe you are looking for