Error with Interactive Report Query

Hi,
using apex 4.1 on 11.2.0.1
i have the following query in an IR:
select     *
from     v_dialer_egn
where dtstart between :P200_STARTDATE and  :P200_ENDDATEwhen i submit the query,the following error returns:
ORA-28500: connection from ORACLE to a non-Oracle system returned this message: [FreeTDS][SQL Server]Operand type clash: text is incompatible with datetime[FreeTDS][SQL Server]Statement(s) could not be prepared. ORA-02063: preceding 2 lines from DIVOSECCv_dialer_egn is defined as:
CREATE OR REPLACE FORCE VIEW V_DIALER_EGN
   DTSTART,
   AGENTNUMBER,
   AGENTNAME,
   STRCALLEDNUMBER,
   CAMPAIGNNAME,
   CALLSTATUS,
   NDURATIONSEC,
   NSPEAKDURSEC,
   NEXTRAWORKDURATIONSEC,
   CALLTRIES
AS
   SELECT "dtstart" AS dtstart,
          "agentnumber" AS agentnumber,
          "agentname" AS agentname,
          "strcallednumber" AS strcallednumber,
          "campaignname" AS campaignname,
          "callstatus" AS callstatus,
          "ndurationsec" AS ndurationsec,
          "nspeakdursec" AS nspeakdursec,
          "nextraworkdurationsec" AS nextraworkdurationsec,
          "calltries" AS calltries
     FROM v_ora_dialer_egn@divosecc;the query works on sqlplus/toad/sqldeveloper
desc v_dialer_egn shows that dtstart is a date column.
if i remove the where clause, the query is accepted by apex.
v_ora_dialer_egn@divosecc is a view on mssql (v 10.x)
connected using freetds and unixodbc
Edited by: unficyp on 17.02.2012 06:31

I think you , using a Sql Server Database, have to convert the two text fields (:P200_STARTDATE , :P200_ENDDATE).
Check this conversions and let me know if it works:
http://www.sqlusa.com/bestpractices/datetimeconversion/
edit: Something like:
SELECT *
FROM V_DIALER_EGN
WHERE DTSTART BETWEEN CONVERT(DATETIME,:P200_STARTDATE, 103) AND CONVERT(DATETIME,:P200_ENDDATE, 103)Edited by: Vitor Rodrigues on 17/Fev/2012 14:37

Similar Messages

  • Error when process an Interactive Reporting Query  - EPM 11

    Hi everyone...
    We are on EPM 11.1.2 working with Interactive Reporting
    I already submitted a SR with Oracle, with this problem that I describe on the next lines:
    If I open a document and then try to process the Query (Essbase/Oracle datasource). It throws the next error message…
    *[2018]: "Failed to acquire Data Access Service with data sources that match the specified OCE";*
    If try Again (like 1, 2, or 3 times) without close the document … then the query process responds without problem.
    If I try to process the query again (without close the document)… eventually it throws me the same error.
    Why sometimes makes the connection with the values configured and sometimes throws the error ?
    Any clue, about the origin of this problem... or some tests to discard some kind of configuration
    Note:
    - The connections are already configure in DAS, and in some time it works well
    - We have 2 DAS Services running on my environment (with the same values ) created at the beginning to work as a cluster.
    Regards
    Alberto Martínez

    Yes I did.
    I have written the code as given below. It is not working either. Can you please check my code.
    DATA:
          FM_NAME TYPE RS38L_FNAM,
          FP_DOCPARAMS      TYPE SFPDOCPARAMS,
          FP_OUTPUTPARAMS   TYPE SFPOUTPUTPARAMS.
    fp_outputparams-nodialog = 'X'.
    fp_outputparams-getpdf = 'X'.
    CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
    ie_outputparams = fp_outputparams
    EXCEPTIONS
    cancel = 1
    usage_error = 2
    system_error = 3
    internal_error = 4
    OTHERS = 5.
    Get the name of the generated function module
    CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
    i_name = 'ZHR_APPT'
    IMPORTING
    e_funcname = fm_name.
    Set form language and country (->form locale)
    fp_docparams-langu = 'E'.
    fp_docparams-country = 'US'.
    fp_docparams-fillable = 'X'.
    call the generated function module
    CALL FUNCTION FM_NAME
        EXPORTING
          /1BCDWB/DOCPARAMS        = FP_DOCPARAMS
          T_HR                     = wa_emphr1
       IMPORTING
        /1BCDWB/FORMOUTPUT       =
        EXCEPTIONS
          USAGE_ERROR           = 1
          SYSTEM_ERROR          = 2
          INTERNAL_ERROR           = 3.
    Thx,
    John

  • Pagination Reset Error on Interactive Report

    I have an interactive report that shows 15 rows per "page." My user clicks next page at the bottom to say the 3rd page (rows 31-45) and then clicks on a column header and types a valid value in the search box for the column. The interactive report then returns an error that says
    Invalid set of rows requested, the source data of the report has been modified.
    Reset Pagination
    I have an unconditional branch on the page that resets pagination. However, I don't believe the interactive report is actually submitting the page when it returns this result. Is this just a bug with interactive reports or did I miss something?
    For reference, we're using Apex 4.0.2.00.07
    Theme 11. Green Spring

    Hi,
    Bit same kind of post here
    Reset pagination with dynamic action?
    Regards,
    Jari

  • Query Engine report error with Crystal Report 9 And MS SQL SErver 2000

    Hi,
    Currently I m doing a report with Crystal Report 9 and MS SQL as back End.I used a stored procedure to fetch data from DB.The Stored procedure works properly with query analyzer . But when I take report through application
    "Table Not Found" Error is coming.Later I Found that In stored procedure for certain conditions only this error comes.But I cant resolve it.
    Can any One check any pblm with this query
    ELSE IF ISNULL(@intSourceID,0) = 10 Or ISNULL(@intSourceID,0) = 11 Or ISNULL(@intSourceID,0) = 12 Or ISNULL(@intSourceID,0) = 13 Or ISNULL(@intSourceID,0) = 14  
    BEGIN
    IF ISNULL(@intSchemeID,0) <> 0  
    BEGIN
    Select* From table
    END 
    ELSE IF ISNULL(@intSchemeID,0) = 0  
    BEGIN
    Select 
    END 
    END
    When I comment the above codes , report works fine....
    Can any one help me....plz....I m in such a critical situation...

    Hi,
    Currently I m doing a report with Crystal Report 9 and MS SQL as back End.I used a stored procedure to fetch data from DB.The Stored procedure works properly with query analyzer . But when I take report through application
    "Table Not Found" Error is coming.Later I Found that In stored procedure for certain conditions only this error comes.But I cant resolve it.
    Can any One check any pblm with this query
    ELSE IF ISNULL(@intSourceID,0) = 10 Or ISNULL(@intSourceID,0) = 11 Or ISNULL(@intSourceID,0) = 12 Or ISNULL(@intSourceID,0) = 13 Or ISNULL(@intSourceID,0) = 14  
    BEGIN
    IF ISNULL(@intSchemeID,0) <> 0  
    BEGIN
    Select* From table
    END 
    ELSE IF ISNULL(@intSchemeID,0) = 0  
    BEGIN
    Select 
    END 
    END
    When I comment the above codes , report works fine....
    Can any one help me....plz....I m in such a critical situation...
    Refer the above statement highlighted in BOLD. That statement is WRONG. Select what ???? Try any one of the below statement,
    select ''
    --or
    select 0
    --or
    select null
    Regards, RSingh

  • Error in Interactive reports

    Hi,
      The following error is rised when i was trying to get a report.
    Source system DM1CLNT100 does not exist Details
    Error reading the data of InfoProvider /CRMBW/CRM_C04I Details
    Error while reading data; navigation is possible
    Online analytical processing: query execution aborted Details
    Value "<ENTER LOGSYS>" is too long for variable /CRMBW/V_LOGSYS
    Specify reference currency; default is EUR
    Can any one suggest a possible solution to rectify these error.
    With Regards,
    Selvam T

    Hi,
    Interactive reporting uses a BI client installed within the same system of CRM. Check the logical system settings and it's name along with your Basis and or BI consultant, he would be able to rectify it. Hope it helps.
    BR.

  • Error creating interactive report

    Hi
    I get the following Oracle error when I attempt to create an interactive report:
    ORA-01446: cannot select ROWID from, or sample, a view with DISTINCT, GROUP BY, etc. ORA-02063: preceding line fromThe select statement I am trying to base the report on is:
    SELECT MAX(b.oracle_job_num)                                                          AS "Oracle Job Number"
          ,MAX(b.stream_id)                                                               AS "Stream ID"
          ,MAX(b.batch_id)                                                                AS "Batch ID"
          ,b.billing_pk                                                                   AS "Billing Reference"
          ,MAX(REPLACE(b.job_type_desc2,'_',' '))                                         AS "Job Type"
          ,MAX(b.file_date)                                                               AS "Date Recieved"
          ,MAX(b.total_docs)                                                              AS "Volume Recieved"
          ,SUM(NVL(d.total_docs_dispatched,0))                                            AS "Volume Dispatched To Date"
          ,MAX(b.total_docs) - SUM(NVL(d.total_docs_dispatched,0))                        AS "Volume Outstanding To Date"
          ,NVL(TO_CHAR(MIN(d.dispatch_timestamp),'DD-MM-RRRR HH24:MI'),'N/A')             AS "First Dispatch Date"
          ,NVL(TO_CHAR(MAX(d.dispatch_timestamp),'DD-MM-RRRR HH24:MI'), 'N/A')            AS "Last Dispatch Date"
          ,ROUND(SUM(NVL(d.total_docs_dispatched,0)) / MAX(b.total_docs) * 100)           AS "Percentage Dispatched"
          ,MAX(b.total_sheets)                                                            AS "Total Sheets"
          ,MAX(b.impressions)                                                             AS "Total Impressions"
    FROM billings b
        ,job_batch_dispatch_details d
    WHERE b.billing_pk = d.billing_pk (+)
    AND TRUNC(file_date) >= '25-APR-2008'
    AND UPPER(customer) LIKE 'B%'
    GROUP BY b.billing_pkPlease can anyone suggest what I need to do in order to get the report to work?
    Many thanks

    Paul,
    There should be more to that error message, that instructs you to change the "Unique Column" which is used to identify each row for the default drill-down link.
    If you are creating this report using the Create Page or Create Region wizard, try choosing "No" for "Link to Single Row View" below the query.
    - Marco

  • Dynamic action with interactive report region refresh

    Hi!
    I'm using APEX 4.02
    I've got a page with 2 regions.
    Region1 is a (input) form
    Region2 is an interactive report on the same table as region 1
    When entering values on the form I'm trying to dynmically lookup similar records in the table with the interactive report.
    I've made a dynamic action on the change of the form fields which should refresh the interactive report region. I can see this one fires if I add a alert to debug if it fires.
    The dynamic report is based on a query with bind variables pointing to the form fields, for example
    where
    field1 = :P2_FIELD1
    This works great on the page load, so no dynamic action is fired but I can see the rows in the report region are the ones I am looking for.
    But the refresh of the report region is not working, it is never refreshing and/or showing the correct data after a change of the form fields, so it looks like the dynamic action "refresh region" is not working on the interactive report.
    Any ideas why this can go wrong ?
    I would like to solve this using standard dynamic actions and preferrably not via PL/SQL or JS, shoudl be possible if I should believe the documentation... ;)
    Cheers
    Bas
    Edited by: bklerk on 26-apr-2011 3:07

    Hi,
    When you change value to item, I assume you do not set value to session state.
    Use interactive report advanced attributes "Page Items to Submit" , set items session state before report is refreshed.
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/app_comp.htm#sthref1235
    Similar post/issue here
    Hide and show region - hides on refresh
    Regards,
    Jari

  • JavaScript error on Interactive Report

    When clicking on the Magnifying glass of my interactive report search bar, I receive a JavaScript error.
    Line: 2 Char: 15193 Error: Syntax Error
    The page that I am navigating to has 2 regions. The first is an interactive report and the second is an html region that has an Iframe reference to another interactive report. Based upon the selection of a radio group, the corresponding region(interactive report) displays. All other interactive reports work fine when their pages don't have a region with a Iframe reference.
    If I navigate to another page after the error occurs and then come back to the page, everything then works fine. The error only happens on the first use. I have installed the latest patch set for Apex 3.2 I currently am running 3.2.1.00.11. I read a bug on Metalink that referenced this javascript error, but applying the patch set does not seem to fix the issue. The bug was 8568894.
    Any help would be appreciated.

    This might be useful for others also...
    After hours and hours of debugging headers and responses and comparing pages to others which work, I realised that this interactive report's display condition is based on REQUEST = SUBMIT.
    As such, the actions menu will NOT set the Request parameter when clicking in the actions menu and the Apex engine refuses to send anything back to the browser - not even an error message.
    I'll raise a bug for this via Oracle Support.
    Cheers, Pete

  • XML Page cannot be displayed error on interactive reports

    Hi, I am having trouble with a user downloading an interactive report as a CSV output. When a user tries to download the interactive report (as it is displayed when the web page loads, no alterations), they are getting this error:
    The XML Page cannot be displayed.
    Cannot view XML input using XSL style sheet. Please correct the error and then click the refresh button, or try again later.
    A name was started with an invalid character. Error processing resource 'http.............'.
    This is only happening with a small group of users which doesn't include me, so it has been very hard to troubleshoot. I can download the report and open in Excel without any problems.
    I am using Apex version 3.2 and IE 8. The user did not have multiple windows or tabs open logged into ApEx at the same time.
    Has anyone ever had this problem before? I could not find a thread with the same issue.
    Thanks!

    i'm pretty sure that error comes up when your browser (ie, specifically, i believe) can't render the xml data it's received. i'm also pretty sure, as the full message implies, it's because it doesn't know what style sheet to use when you go to that page. in short, it's a browser config issue. one way to bypass it (to at least prove that it's a browser issue) would be to create a link to your page, right click the link, and do a "Save Target As...". the resulting file will be your valid XML one. fwiw, i've had better luck controlling the manner in which my xml data is received when i use mozilla or netscape (but i'd imagine there's just some setting you'd toggle in IE to avoid your issue).
    hope this helps,
    raj

  • Date format interfering with interactive report

    My APEX version is 3.1.1.00.09.
    I'm using a method described elsewhere to change the global date format of my application. I have application items for a start and end date. I have two application processes, one for On Load: Before Header, the other for On Submit: After Page Submission - Before Computations and Validations. They both do:
    DBMS_SESSION.SET_NLS(param => 'NLS_DATE_FORMAT', value => '''fmMM/DD/fmYY''')
    Okay, all is well with that, my dates seem to stay the way I want them to. Since our upgrade I'm going through each section of my application and updating as necessary, and I particularly want to use the interactive reports. They work fine when the page is loaded, but if I change any options on the interactive report and submit it, I get an "ORA-01843: not a valid month" error. If I refresh the page, everything works as it should.
    What can I do to get around this, or do I have something wrong with my method that is causing this to happen?
    Chris

    Hi Chris,
    I tried to replicate this, but could not. Now granted, I tried this using the new "modern" method of controlling the default application date format via the new application Globalization attribute "Application Date Format". I set the Application Date Format to fmMM/DD/fmYY and my IR on EMP worked just fine.
    If you can replicate this on apex.oracle.com (using Application Date Format), I'd be happy to take a look at it.
    Joel

  • How to send a conditional email with interactive report subscription

    Hi,
    i have an interactive report with subscription.
    I would like to send an email with the attachment only when the query returns one or more records.
    How to to this?
    Apex 4.0.2
    Thanks in advance
    lukx

    Well, to understand your requirements can I ask this:
    You said earlier you want a report sent whenever records that meet a criteria exist, correct? So you want the application to query for a condition, and when that condition occurs (a row with primary Key = X, a select COUNT(1) for rows with column X returns a result of 1 or more)
    Then you would schedule a batch job:
    BEGIN
    -- Job defined entirely by the CREATE JOB procedure.
    DBMS_SCHEDULER.create_job (
    job_name => 'Send_Email_Procedure',
    job_type => 'PLSQL_BLOCK',
    job_action => 'BEGIN Test_For_COND_SEND(); END;',
    start_date => SYSTIMESTAMP,
    repeat_interval => 'freq=hourly; byminute=0',
    end_date => NULL,
    enabled => TRUE,
    comments => 'Job defined entirely by the CREATE JOB procedure.');
    END;
    This would in theory run hourly and run your test_for_cond_Send process, in which you would test for the condition and send an e-mail if it was found that would contain the results from your query/report.
    Here is a link to generate a PDF report that could be sent via e-mail: Re: how to save pdf in APEX 3.0
    Thank you,
    Tony Miller
    Webster, TX
    While it is true that technology waits for no man; stupidity will always stop to take on new passengers.

  • Got deploment error with Interactive forms

    Hi Frnds,
    Jus now i instelled ADS(Acrobat designer lifcy), n i did't made any changes in sld r vis admin ,i want to genrate a reports in PDF formate , so i designed a view with Interactive forms n i deployed ,igot this error
    com.sap.engine.services.webservices.jaxrpc.exceptions.InvalidResponseCodeException: Invalid Response Code: (404) Not Found. The request URL was:"<http://localhost:50000/AdobeDocumentServices/Config?style=document>". Check, whether the URL is correct, and the Web Service that you are requesting is up and running
    is it necessary to made a changes @ SLD n visual admin
    thanks & regards

    Hi
    Open the j2ee engine web page and go to web service navigator --
    http://<servername>:<port>/wsnavigator.
    there should be a ADS webservice there. you should be able to execute it successfully. if it is not present then it means ADS service is not installed on your server.

  • Issue with Interactive Report

    I have a report that grabs over 10,000 rows (it's an inventory). When I run it from sql plus, it is pretty fast. When I run it from a standard report, again it's pretty fast. However, my interactive report takes about 2 min to load. I did a p_trace and got this result from the accompanying TKPROF
    <pre>
    select
    ROWID as apxws_row_pk,
    "MASTER_STYLE",
    "STYLE_DESCR",
    "STYLE_LINK",
    "STYLE",
    "COLOR_NO",
    "COLOR_DESCR",
    "LINEPR",
    "RETAIL_PRICE",
    "AVL",
    count(*) over () as apxws_row_cnt
    from (
    select * from (
    select style,
    style_link,
    style_descr,
    color_no,
    color_descr,
    avl_qty,
    linepr,
    retail_price,
    master_style,div,
    k_apex.return_avl_matrix(style,color_no,k_apex.f_get_value('WHOUSE'),:global_cust_no) AVL
    from nkw.vw_style_chooser
    where (div = :global_div_no or :global_div_no is NULL)
    ) r
    ) r where rownum <= to_number(:APXWS_MAX_ROW_CNT)
    order by ROWID
    call count cpu elapsed disk query current rows
    Parse 1 0.00 0.00 0 2 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 17 0.67 0.65 271 62548 8700 17
    total 19 0.67 0.65 271 62550 8700 17
    Misses in library cache during parse: 1
    Optimizer mode: CHOOSE
    Parsing user id: 61 (recursive depth: 1)
    Rows Row Source Operation
    17 WINDOW SORT
    10000 COUNT STOPKEY
    10000 NESTED LOOPS
    10000 NESTED LOOPS
    10000 NESTED LOOPS
    10000 NESTED LOOPS SEMI
    10000 TABLE ACCESS FULL INVENTORY_M
    10000 INDEX UNIQUE SCAN PK_ITL (object id 31210)
    10000 TABLE ACCESS BY INDEX ROWID COLOR_M
    10000 INDEX UNIQUE SCAN PK_COLOR_NO (object id 30737)
    10000 TABLE ACCESS BY INDEX ROWID COSTING_M
    10000 INDEX UNIQUE SCAN PK_CS_STYLE (object id 30759)
    10000 TABLE ACCESS BY INDEX ROWID COSTCOLS
    10000 INDEX UNIQUE SCAN PK_CCL_SKU (object id 30752)
    Elapsed times include waiting on following events:
    Event waited on Times Max. Wait Total Waited
    ---------------------------------------- Waited ---------- ------------
    db file scattered read 26 0.01 0.03
    db file sequential read 70 0.00 0.06
    </pre>
    Is there a way to only have it start with a few hundred rows to speed up the process?
    Thanks,
    Scott

    What is the pagination type that you have selected in the in the interactive report ? (Pagination type is under "Pagination" tab of interactive report attribute). Ensure that it is not set to "Row ranges X to Y of Z". That can be one of the reason for slow performance.
    Regards,
    Ashish
    http://www.dbcon.com

  • Javascript error in interactive reports  chart - 3.1

    I created an application with the new interactive reports.
    http://apex.oracle.com/pls/otn/f?p=33003:1
    When I use the Chart option in IE I get a javascript error.
    'null' is null or not an object
    It is working fine in Firefox.
    I tried with 3 different themes and it is always giving me that javascript error on the charts. I also tried on different machines.
    Thanks
    Francis.

    Francis,
    I just tried with the exact same version of IE and didn't get any errors. Do you have version 9+ of the Flash Player? I'm not sure why an earlier version would cause a javascript error, but it's worth checking. You can check by right-clicking any Flash content and clicking "About Adobe Flash Player X..."
    - Marco

  • Attn Carl: Issue with interactive report and custom JavaScript

    I am trying to use interactive reports on the same page as a third-party JavaScript datepicker. The two components obviously interfere with each other, but I am not skilled enough in JavaScript to figure out why. It would be great if you could take a quick look.
    I am using the datepicker from http://yellow5.us/projects/datechooser/ (by the way, this is a really nice, lightweight datepicker that does not pop up a new window, and something like this should be built-in in the next version of Apex, instead of the cumbersome server-side popup that is currently in Apex. Consider this a post-3.1 enhancement request... :-).
    I have put up a simple demonstration page here:
    http://apex.oracle.com/pls/otn/f?p=36647:1
    When loading the page, Firefox complains (in the Error Console) that "event is not defined" on datechooser.js line 895, which looks like this:
    e = e || events.fix(event);
    (The error console in FF links to the full JS source code...)
    After the page has loaded, any clicks on the Interactive Report gives an error in the Error Console: "gReport has no properties".
    Internet Explorer (6.0) displays a similar warning message ("gReport.controls is null or not an object"), but the functionality (both datepicker and interactive report) still works.
    Would be eternally grateful if Carl or anyone JS-savvy could take a look at this problem...
    - Morten

    Hello,
    On line 931 of your file there is a call to attach the function to the window onload function
    events.add(window, 'load', function()......
    Try replacing that with this which is the way we do it in APEX , looks like that is where the conflict is.
    addLoadEvent(function().......
    I'm not sure this will fix it but hopefully it does, I can take a closer look tomorrow if it's doesn't.
    Consider this a post-3.1 enhancement requestCan you add to the enhancement thread.
    Regards,
    Carl
    blog : http://carlback.blogspot.com/
    apex examples : http://apex.oracle.com/pls/otn/f?p=11933:5

Maybe you are looking for

  • HT204204 iphone unable to link to the internet

    My wife's iPhone 5c running iOS8.2 has not been able to send or received email or contact the internet since around March 24.  She decided not to tell me, and now she is leaving for a month early tomorrow AM and I have to fix it NOW. I have checked a

  • Dragging music out of iTunes 12

    Hello I upgraded recently to Yosemite and iTunes 12. My problem is that I can no longer drag content out of iTunes and on to my desktop or other folders on my hard drive. I find this a very useful function, not least because I have an Android phone t

  • Can I 'mute' video clips in iphoto

    There is a slide beneath each clip which will mute when the clip is playing, but when it is then added to a Ken Burns slideshow the sound reappears.  How can I mute the clip without having to take it to iMovie?  Many thanks for any help

  • ALE Configuration Required

    Hi all,    I am doing <b>file to IDOC scenario</b>. can anyone tell me what ALE Configuration is required to do in SAP R/3 and and XI.     By which manner I hv to create ports and rfc detaination and how to point them? and how to point them?   And Wh

  • Be a smart Energy Consumer

    The innovative service will allow customers to remotely access, control and monitor doors, windows, thermostats and appliances via a smart phone and PC, and, if you are a FiOS TV subscriber, interact with your home through a FiOS TV widget. A connect