Problem with Apex 5.0 report with a query that runs in SQL Developer

Hello

I have a query that runs in SQL Developer without problem, but when I use it in a classic report, it displays following:

error report:

ORA-06502: PL/SQL: digital or value error: character of number conversion error


The query is:

select 
 T1.ID_ATTACHMENT, 
 T1.BLOB_CONTENT, 
 T2.ATTACH_CATEGORY, 
 T1.FILENAME, 
 T1.ATTACHMENT_DESCRIPTION 
from ATTACHMENTS T1
 LEFT JOIN REF_ATTACH_CATEGORIES T2
  ON T1.ATTACHMENT_CATEGORY = T2.ID_ATTACH_CATEGORY
 WHERE T1.ID_ATTACHMENT IN
  (SELECT ID_ATTACHMENT FROM REL_ATTACHMENTS
   WHERE REL_PART_ID = 1
   AND REL_ID = 64146);


And the output of SQL Developer is:

2015-08-12_01-03-36.png

I have following Setup for the BLOB_CONTENT column in the classic report:

2015-08-12_01-06-25.png

Any ideas what is causing this problem?

Thanks in advance,

Sergio


I don't have notes with me, but I think that the content of the blob must be selected as:

DBMS_LOB. GetLength (blob_content) as blob_content

and check that you have included the primary key in the results.

Tags: Database

Similar Questions

  • Problem with hierarchical query in function PL\SQL

    I have a simple table containing the ID of the parent

    -Create table

    create the table1 table:

    (

    ID NUMBER (12) not null,

    year number 4.

    month NUMBER (2),

    parent_id NUMBER (12)

    );

    -Create/recreate primary, unique and foreign key constraints

    change the table1 table:

    Add primary key constraint PK_TABLE1 (ID);

    change the table1 table:

    Add the foreign key constraint FK_TABLE1_PARENT (PARENT_ID)

    reference TABLE1 (ID);

    data:

    Insert into TABLE1 (id, year, month, parent_id)

    values (5, 2015, 12, 3);

    Insert into TABLE1 (id, year, month, parent_id)

    values (6 (2015), 12, 4);

    Insert into TABLE1 (id, year, month, parent_id)

    values (3 (2015), 11, 1);

    Insert into TABLE1 (id, year, month, parent_id)

    values (4 (2015), 11, 2);

    Insert into TABLE1 (id, year, month, parent_id)

    values (1, 2015, 10, null);

    Insert into TABLE1 (id, year, month, parent_id)

    values (2 (2015), 10, null);

    commit;

    and query

    with h as

    (select t.id, t.year, t.month, CONNECT_BY_ROOT t.id as parent_id from table1 t

    where t.year = 2015 and t.month = 12

    and CONNECT_BY_ROOT t.year = 2015 and CONNECT_BY_ROOT t.month = 10

    connect by prior t.id = t.parent_id)

    Select * from:

    Join table1 t left t.id = h.parent_id;

    It works, but when I put this request in the procedure pl\sql

    create or replace procedure is get_report (p_cur_out on sys_refcursor)

    Start

    Open the p_cur_out for

    with h as

    (select t.id, t.year, t.month, CONNECT_BY_ROOT t.id as parent_id from table1 t

    where t.year = 2015 and t.month = 12

    and CONNECT_BY_ROOT t.year = 2015 and CONNECT_BY_ROOT t.month = 10

    connect by prior t.id = t.parent_id)

    Select * from:

    Join table1 t left t.id = h.parent_id;             

    end get_report;

    /

    They do not compile. And in the fall, with the exception

    Errors of compilation for the PC of the PROCEDURE. GET_REPORT

    [Error: PL/SQL: ORA-00600: internal error code, arguments: [qctcte1], [0], [], [], [], [], [], [], [], [], []]

    Online: 6

    Text: with h as

    Error: PL/SQL: statement ignored

    Online: 6

    Text: with h as

    My version of oracle

    1Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production
    2PL/SQL Release 11.2.0.3.0 - Production
    3CORE Production 11.2.0.3.0
    4AMT for Linux: Version 11.2.0.3.0 - Production
    5NLSRTL Version 11.2.0.3.0 - Production

    What is the problem with my request? Or database? How to solve this problem?

    If you have access to MOS, you can search the reason of it. If you are using left join syntax instead of joining ANSI, owner Oracle procedure compiles and returns the result.

  • Problem with select query that includes a date

    I fought with it for about 4 hours - Yes, quite literally... I was never good with stuff to date. I have a brain block.

    In any case, here's the situation:

    I have an Access database that has a date/time field. There is no time, just a date in the format dd/mm/yyyy.

    This table is a list of classes held for three years. I want to do a query that displays only the classes that have completed after January 1st of this year. I don't want to put the 01/01/2010 in the query itself because I want it to work again next year.

    It's the current query:

    < name cfquery = "classes" datasource = "" #DSN # "dbtype ="ODBC">"

    SELECT classesTitles.ClassTitle, classesTitles.ClassDesc, classCatagories.catagoryName, classes.classStart, classes.classEnd, classes.classNotes, owners.fName, owners.lName, classTime.timeSlot, classes.classID, classes.classLimit

    FROM classCatagories INNER JOIN (((classes INNER JOIN classesTitles ON classes.classTitle = classesTitles.classTitleID) INNER JOIN classTime WE classes.classTime = classTime.timeID) INNER JOIN owners WE classes.classInstructor = owners.ownerID) ON classCatagories.catagoryID = classesTitles.ClassType

    WHERE the classes.classEnd < 01/01 / #DatePart ("yyyy", now())) #.

    ORDER BY classes.classStart, classCatagories.catagoryName, classTime.timeSlot, classesTitles.ClassTitle

    < / cfquery >

    I don't get any results, but I should get a list of each class that has an end date before 1 January of this year - about 200 cases.

    When I swap around the place where clause:

    < name cfquery = "classes" datasource = "" #DSN # "dbtype ="ODBC">"

    SELECT classesTitles.ClassTitle, classesTitles.ClassDesc, classCatagories.catagoryName, classes.classStart, classes.classEnd, classes.classNotes, owners.fName, owners.lName, classTime.timeSlot, classes.classID, classes.classLimit

    FROM classCatagories INNER JOIN (((classes INNER JOIN classesTitles ON classes.classTitle = classesTitles.classTitleID) INNER JOIN classTime WE classes.classTime = classTime.timeID) INNER JOIN owners WE classes.classInstructor = owners.ownerID) ON classCatagories.catagoryID = classesTitles.ClassType

    WHERE classes.classEnd > 01/01 / #DatePart ("yyyy", now())) #.

    ORDER BY classes.classStart, classCatagories.catagoryName, classTime.timeSlot, classesTitles.ClassTitle

    < / cfquery >

    I get EACH class in the database, and I should get only about 50

    The classes are long about 8 weeks, the dates of beginning and end are in the database in the form of date/time fields, so I need to show everything that ends in 2010, regardless of when it began.

    I'm sure it's something pressing, but he's avoiding me.

    Thank you

    Michelle

    Your field format date in access is irrelevent to the situation at hand.  Use objects appropriate date instead of trying to build an appropriate string.  On 1 January of the current year, the createdate() of coldfusion functions and year() now() are your friends.  Then, a message from Adam was not clear, use cfqueryparam with the resulting variable.

  • Problems with a document that runs after you place an inline movie

    I'm trying to put an inline movie and have the content that surrounds reflow, instead when the film is placed it overlaps all the above content.

    I put a movie by using the following code:

    paragraph.insertionPoints[-1].place(File("c:\\users\\kurt\\desktop\\movie\\test.flv"));
    

    And this is the resulting behavior:

    undesiredBehaviour.png

    The weird part is that when I tested it against blank templates, I got these results, which are what I was hoping. The paragraphs surrounding simply reflow to accommodate the film.

    desiredBehaviour.pngdesiredBehaviour2.png

    Any ideas on why the other document is not reinvest in the film placed?

    Yes as Jongware has said that it is not question of film.

    It's a question of wordwrap.  You can see that just by drawing a rectangle and then cut and pasted to an inline object.

    If you want to place as an inline and said Jongware, for what? You can place a change of the vertical offset according to the dimensions of the movie.

    Using the format-myAnchoredObject.anchoredObjectSettings.anchorYoffset = 50;

  • I have problems with an action that I created.

    I have problems with an action that I created. Basically, I created an action that I apply to my images to give them all the same look, but when I add this action that it always enlarges the size of the image lets say 7 MB to 100 MB is possible to decrease this without ruining the action?

    Hi lukef,

    It depends on what kind of changes are included in this action.

    You can choose to save it to the web, if you want to save a low waist.

    Kind regards

    Claes

  • How do I monitor/find where is the State of my download?  I don't know how long it takes or if there is a problem with the download that I can't find anything.  Also, is it supposed to be an icon for my purchase of Photoshop and light in my apps folder

    How do I monitor/find where is the State of my download?  I don't know how long it takes or if there is a problem with the download that I can't find anything.  Also, is it supposed to be an icon for my purchase of Photoshop and light in my apps folder?  Where can I find that when it's done download?

    Could you please confirm the operating system you are using.

    You can see the status of the application of CC desktop download.

    The CC app desktop click the creative cloud icon located in the taskbar (Windows) or the Apple bar (Mac OS) menu, to open the creative cloud desktop application.

    Hope this will help you.

    Kind regards

    Hervé Khare

  • Problem with Admin Windows xp RUN As...

    1. What is the exact error message when you try to run it on Windows XP?
    There is not an error. Just not running. Key program accepts and stored, the AutoRun program does not work.

    2. is the application works properly in Windows 7? Yes, exactly
    Key saves not only the program, it does not matter.

    RUNNING under...: with 'run as...' "is played.

    A: If no admin password, what is the solution?

    B: and if with ctrl + alt + delete, we have been unable to connect to Admin, what is the solution?

    Why am I just click 'RUN AS... "I chose, in the admin password must do, even if you do not have the admin password.
    Notice and when I enter the admin password, then the warning is not ' run as... '. »

    What is the problem? You never know how many people go that route. Admin password must be an administrator to run to run as...?

    If you do not know the admin password, you will not be able to use the option "run as" administrator. It is recommended to run as a Standard user, and then use the ' run as ' when you need to do an administrative task. So, you have the administrator password to perform this task.

    It works as expected.

  • I have a problem with HP Flash that does not appear on my PC

    I have a few problems with HP Flash I do not know the * beep t. when I put in the other system, I mean Mac, it shows me and allows.

    but when I remove that put in another system it gives me just a response as it is connected when I go on my computer there is not availble Flash sign.

    I'll be back in fact once to the top of my Flash on Mac. When I got to that obtained in another system just Visible or disabled this system. Please someone who has the solution, in particular among providers of HP.

    WKhan wrote:

    I have a few problems with HP Flash I do not know the * beep t. when I put in the other system, I mean Mac, it shows me and allows.

    but when I remove that put in another system it gives me just a response as it is connected when I go on my computer there is not availble Flash sign.

    I'll be back in fact once to the top of my Flash on Mac. When I got to that obtained in another system just Visible or disabled this system. Please someone who has the solution, in particular among providers of HP.

    Hello

    Please provide more information: what is your computer and its operating system? I think

    (a) HP is not a product called Mac

    (b) HP has no any product called Flash.

    As a result, HP cannot be Provider Service of Flash on Mac computer.

    Kind regards.

  • Bug? : cannot execute predefined "last awr" report with the latest version of the SQL Developer

    Using sql developer before 4.x... report works fine

    Using SQL developer 4.0.0.13... report fails with ORA-01422

    using the actual query to generate awr against the same range of component snap works perfectly

    I opened a SR on the question

    Thank you

    It's always a good idea to open a SR when you are able.  I assume that you have already received a response from support.  For others I wondered about this, the question is likely related to running the report against a CCR environment, as indicated in the following bug:

    Bug 18132564 - LAST AWR REPORT FAILS WITH ORA-01422 IN CCR ENVIRONMENTS

    The call of the AWR report requires parameters for a DB and an ID of Instance, so that the report should run, as in earlier versions, for only the current instance, or be modified to run all instances in the cluster.

    Kind regards

    Gary

    SQL development team

    P.S.: And, in fact, a discussion prior forum - ai2 4.0-AWR and ASH giving ora-01427

    lead following bugs are connected and supposed to be fixed for SQL Developer 4.0...


    Bug 17481944 - PERFORMANCE PANELS NEED AWR/ASH/ADDM FOR RAC ENVIRONMENTS SUPPORT


    ... with the developer commenting

    I've added a number instance selection control to the various reports: ASH,.
    AWR, difference and SQL. The control is supposed to be visible when the
    connection is a RAC system, tests should a RAC.

    So if you are not on a RAC system, or are on CARS but do not see the selection number instance control, please let us know.

    Post edited by: Gary Graham

  • Network problem with HP DL 380 running ESX

    Hi @ all,

    I m having a BIG problem with a HP DL 380 and ESX 4.0. The setting is as follows:

    1. physical NIC is on the DMZ Port of the firewall, the 2. one is on the switch (simple gigabit switch).

    one of the virtual machines on this server should communicate ONLY on the NETWORK card on the demilitarized zone, but somehow he doesn´t work.

    help the plt

    Bone

    OS (if it's still bone),

    Setup in your jpg looks ok.

    To dig deeper, I need to understand the issue see you "if I turn on the server 'DMZ' is as if it is on the first vSwitch '

    Can you explain the issue you are facing. Is this a connectivity problem. Maybe it is related to the configuration of the physical switch.

    André

    If you are having trouble to explain in English, feel free to send me a private message and describe the problem in German.

  • problem with the query insert masking character @.

    Hi the gems...

    I do through xml schema, run... means using a batch file, I'll call the xml files and the xml file contains the names of files containing all the DDLs and LMD...

    No problem with the DDL...

    now when I run the LMD, all are working well except a few insert scripts...

    Insert into TABLE_NAME (EVENT_ID, EVENT_DESC, EVENT_MESSAGE_TEMPLATE, EVENT_MESSAGE_SUBJECT) values (4, 'abcdefgh',)
    'Hi,
    Order details:
    @Order_ID #.
    @Instrument_ID #.
    This is an automated email. Please do not reply.',
    "executed");

    This kind of scripts insert failed with the error "[ora: sqlplus] SP2-0310: could not open the file" Order_ID #, .sql.

    This problem is due to the @ character before the data...

    problem doesn't happen when I run the script explicitly, xml perform only the origin of the problem

    So, I need to know if there is a way to hide the sign @...

    Please help... Thanks in advance

    user12780416 wrote:
    "[ora: sqlplus] SP2-0310: could not open the file" Order_ID #, .sql.

    In SQL * more the @ character means: run a script. That would explain the error message.
    The real problem is that your chain is written on several lines. A string like this might work:

    {code}
    Insert into TABLE_NAME (EVENT_ID, EVENT_DESC, EVENT_MESSAGE_TEMPLATE, EVENT_MESSAGE_SUBJECT) values (4, 'abcdefgh',)
    "Hi," | Chr (10)
    ||' Order of details :'|| Chr (10)
    |' @Order_ID #' | Chr (10)
    |' @Instrument_ID #' | Chr (10)
    ||' This is an automated email. Please do not respond. »
    "executed");
    {code}

    But it might not be a usable workaound.
    As you create the string insert sort, you might be able to replace all line breaks in the present with you own custom lines.

    Replace (yourEventMessage, Chr (10), "' |) Chr (10): "')

  • Anyone having problems with effects after that put 5.0.3 update?

    Since the 5.0.3 update a few weeks ago, I had problems with adding an effect to a clip. It seems not to matter type (both are res HD, either a shot on a Canon 5 d Mark II or a .m2t file .mov from a camera of HD Sony HVR - Z5U with a registration unit of memory). I have been using the file types of the same cameras with CS5 since August without any rendering problem, by adding effects, playback, slow response time, etc. Now, it seems doubtful that PrPro can handle adding an effect to a clip.

    Before it would show changes to the effect on the video in real time, but now it takes several minutes for the small front wheel I can access PrPro again. By example, if I add a fast color corrector or levels and try to change only one attribute, it unfolds, crashes, and then finally updates. He plants not (unless I force quit), it just hangs. I tried with just Finder and open PrPRo, and it still occurs. Previously, I could launch Photoshop, Firefox, Chrome, Mail, Finder, * AND * Pro

    Nothing else is it slow (playing back non-rendus, while that rendered or book review), although any reading can be slow sometimes with effect. In addition, there doesn't seem to be picky to a certain video effect. I've done everything I can think of, returning Short or reinstall: log in as root, Pref delete, drives hard various small clips. Initially, working on a FW800 external drive, I have recently worked on internally to test clips, but apparently not to the disc material.

    The fact that everything worked fine before, I can't that assume it was the update. I have the same software on a similar but lesser model home with no problem, but the 5.0.3 update failed with the auto-update and I have not tried to install it manually, is still on 5.0.2.

    Anyone else having this trouble and short of reinstalling, you found a solution? Thank you.

    iMac 27 "(21" model of Home Basic) "

    Mac OS X

    10.6.5

    2.8 GHz Intel Core i7 (4 cores)

    8 GB RAM

    ATI Radeon HD 4850 512 MB

    Master Collection CS5

    > Is there documentation available online on how to revert to the previous version?

    Uninstall Premiere Pro. Then, reinstall without updates.

  • Problems with Blue Tooth that connects the Droid to sync Microsoft-

    When I frist got my Droid it worked with Microsoft Sync in my Ford Escape.  A month ago, I started having a sync voice message saying the phone was dropped.  The Droid displays an error message saying that the process com.android.phone has stopped unexpectedly.  Force close.  This continues to be.  I cannot bluetooth my ear bud without problem, and I can sync a razor to escape without problem.  I rest sync and the droid with no luck.  Someone has an idea that can help?

    I have the same problem with my BMW X 5, bluetooth after getting my 2.1 update. Get the same messaged to force close. It's just keep happening, I tried the factory reset, 2.1 reloaded. but no help.

  • Problem with time parameter values Run

    Hi all
    Am facing an error loading 11.5.10 EBS financials. Problem is that my settings in the SQL qualifier (run time parameters in the SQL query) were not replaced with values appropriate for execution. What is happening for the task "SDE_ORA_Reverse_GLJournals_ImportReference_Extract" that have the SQL query in mapplet "mplt_BC_ORA_XactsimpGlrfExtract."
    I checked in the settings file and have values for the parameters of race time. For some reason, these values were not be picked up by this SQL query.
    Can someboday help me about this possible issue or the reasons behind all this?

    Hello useroo7, if I understand correctly (you run FA), then the you listed above is not FA. So I suggest, you can check SAs added to your EP I hope this helps.

  • Problem with Visual Studio 2010, c# and SQL Server

    Several years ago, I programmed in Fortran. In order to get my stack of punch cards to run, I needed a couple of cards that said to the central computer what to do; It was very difficult to get this information as if it were some sort of secret. Today, I am using Visual Studio 2010, and programming in c#. It seems to work OK, but when I try to create a situation of SQL, I find that Windows authentication does not work; If I connect as long as administrator, I can see the database administrator; If I sign my name, I don't see a database created under my name, so that Windows authentication does not work. It seems that I need to know this little piece of information that nobody wants to tell me. I would like to work with an application that I'm developing, but if I can't trust him, I can't use it. I need seamless connections and unequivocal. Help!

    Hello

    It is not a community forum for Visual Studio.

    Try the Visual Studio forums.

    http://social.msdn.Microsoft.com/forums/en-us/category/VisualStudio

    Don

Maybe you are looking for

  • HP 500-267C: Hp 500-267C Second hard drive

    I bought a second hard drive to install in my Hp 500 - 267C. I can't find a Bay to install it in. It's my first HP.  I had the Dells for the past 20 years and an IBM before that: I've never met a configuration that does not have a second hard drive.

  • Autorun

    Hello I'm sorry but I'm not sure that this post is in a good position within this community. I'm using Smart Camera OR (1776C) for the first time and I have developed a system of vision with VBAI 2012. I would like that, every time I turn the camera

  • change orientation on the label of the axis in Excel

    Hello all- I'm trying to use the report generation tool to make an Excel report.  I have a chart, and I want to rotate the label for the vertical axis so that it is vertical!  I can add the label, but it is by default in the horizontal, losing too mu

  • PHOTOS OF WEBCAM LIVE GALLERY MOVI MAKER

    HelloManaged to burn a movie on windows movie maker but when I click on browse in movie maker I only get those who is there, but I can't seem to get those who are in the Windows live gallery, can you please tell me how to move them movie maker in sim

  • Windows Vista refuses my password

    Original title: Home edition of windows vista my computer keeps rejecting my password. won't let me log on