Custom Sql fails when using Date Parameter

I need to do following using DB adapter
select count(*) from some_table where creation_date >= #from_date and creation_date <= #to_date
I used Custom sql options, but It did not asked for add params. so I added manually above params in the query. I am getting following query. I don't know how to get this working. i am on 10.1.3.
Here I am getting from and to dates from a AQ message. AQ has from and to_date as date type elements. I am doing copy assign of these to SQL input params
below is the error.
<messages><input>
<RecordCount_service_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
name="XI_RecordCount_serviceInput_msg"><XI_RecordCount_serviceInput xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">
<ns0:v_fromdate1 xmlns="" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">2008-01-01T00:00:00.000-06:00</ns0:v_fromdate1>
<ns0:v_todate1 xmlns="" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">2008-01-31T00:00:00.000-06:00</ns0:v_todate1>
<ns0:v_fromdate2 xmlns="" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">2008-01-01T00:00:00.000-06:00</ns0:v_fromdate2>
<ns0:v_todate2 xmlns="" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/XI_RecordCount_service">2008-01-31T00:00:00.000-06:00</ns0:v_todate2>
</XI_RecordCount_serviceInput>
</part></RecordCount_service_InputVariable></input><fault><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>1861</code>
</part><part name="summary"><summary>file:/u01/app/oracle/product/10.1.3/bpm/bpel/domains/arun/tmp/.bpel_XI_P2EU_Allegro_Service_1.0_79d8666bc8efe5a375691e0a5f06e2e4.tmp/XI_RecordCount_service.wsdl [ XI_RecordCount_service_ptt::XI_RecordCount_service(XI_RecordCount_serviceInput_msg,XI_RecordCount_serviceOutput) ] - WSIF JCA Execute of operation 'XI_RecordCount_service' failed due to: Pure SQL Exception.
Pure SQL Execute of select count(*) record_count FROM XI_TABLE WHERE ( (trunc(CREATION_DATE) >= ? AND TRUNC(CREATION_DATE) &lt;= ?) OR (trunc(last_update_date) >= ? AND TRUNC(last_update_date) &lt;= ?) ) failed. Caused by java.sql.SQLException: ORA-01861: literal does not match format string
; nested exception is:
     ORABPEL-11633
Pure SQL Exception.
Pure SQL Execute of select count(*) record_count FROM XI_TABLE WHERE ( (trunc(CREATION_DATE) >= ? AND TRUNC(CREATION_DATE) &lt;= ?) OR (trunc(last_update_date) >= ? AND TRUNC(last_update_date) &lt;= ?) ) failed. Caused by java.sql.SQLException: ORA-01861: literal does not match format string
The Pure SQL option is for border use cases only and provides simple yet minimal functionality. Possibly try the "Perform an operation on a table" option instead.
</summary>
</part><part name="detail"><detail>ORA-01861: literal does not match format string
</detail>
</part></bindingFault></fault></messages>

I think the database accepts only your database format' dd-mm-yyyy'.
Try to define #from_date & #to_date as string and use to_date() in your custim sql statement.
Marc

Similar Messages

  • Script error when using Data parameter.

    Post Author: despec
    CA Forum: General
    Hello,I'm not sure what's going on here, but when I try to use a data parameter and run the report, upon clicking on the calander icon, I get a JS error saying that an object was expected in line 80.  A referring URL to a prompting htrml is listed, but I'm just not sure what I need to do to straighten this out.  Service pack perhaps? David

    Post Author: V361
    CA Forum: General
    I have had a similar problem with CR XI,  if I put the date in manually no worries, if I use the calendar, I get some sort of error as well,  "a runtime error has occured, error line 742", this happens on my CR XI on one machine, it is running on product version 11.5.8.963,  I also have CR XI, on a test server, running 11.5.8.826 and I do not have an issue with this one.  So... Long story made short, it may well be the service patch.  When I debug the error it tells me there is a "Microsoft Jscript runtime error"  It is pointing to c:/program files/business objects/common/3.5/crystalreportveiwers115/prompting/js/promptengine_calendar.js

  • Custom classloader fails when using Java Web Start

    Hope you can help me with a problem that is driving me nuts. I have implemented my own classloader to support plugins. This classloader works as follows:
    1. The classloader is configured to access a plugin components jar file downloaded by jws.
    2. The plugin components jar file contains other jar files which contains the actual plugin code to be loaded using my own classloader.
    3. Upon initialization - my classloader extracts all jar files contained in the plugin components jar file into temporary files.
    4. These temporary files are used by my classloader when defining plugin classes.
    The classloader works fine when not using java web start. Then I launch the application using java web start with security policy in .jnlp file set to:
    <security>
    <all-permissions/>
    </security>
    After a while (it was able to load some of the classes) it fails with the following stack-trace:
    Regards,
    Terje
    java.security.AccessControlException: access denied (java.io.FilePermission C:\DOCUME~1\TEOES\LOCALS~1\Temp\activity61102.jar read)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkRead(Unknown Source)
         at java.util.zip.ZipFile.<init>(Unknown Source)
         at java.util.jar.JarFile.<init>(Unknown Source)
         at java.util.jar.JarFile.<init>(Unknown Source)
         at my.plugin.ActivityClassLoader.getJarFileEntry(ActivityClassLoader.java:258)
         at my.plugin.ActivityClassLoader.search(ActivityClassLoader.java:244)
         at my.plugin.ActivityClassLoader.loadClass(ActivityClassLoader.java:99)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    Does anyone have source code for implementing a simple class loader that can be used with Java Web Start (preferrably with all jar files to be used by the classloader wrapped into a jar file)

    If you implement your own classloader, and then still run with a SecurityManager installed, then your ClossLoader is responsible for asigning the permissions to the code it loads.
    You need your ClassLoader to extend SecureClassLoader, and implement the method :
    SecureClassLoader.getPermissions(CodeSource cs) to return the PermissionCollection you want.
    /Andy

  • Error "Conversion failed when converting date and/or time from character string" to execute one query in sql 2008 r2, run ok in 2005.

    I have  a table-valued function that run in sql 2005 and when try to execute in sql 2008 r2, return the next "Conversion failed when converting date and/or time from character string".
    USE [Runtime]
    GO
    /****** Object:  UserDefinedFunction [dbo].[f_Pinto_Graf_P_Opt]    Script Date: 06/11/2013 08:47:47 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE   FUNCTION [dbo].[f_Pinto_Graf_P_Opt] (@fechaInicio datetime, @fechaFin datetime)  
    -- Declaramos la tabla "@Produc_Opt" que será devuelta por la funcion
    RETURNS @Produc_Opt table ( Hora datetime,NSACOS int, NSACOS_opt int)
    AS  
    BEGIN 
    -- Crea el Cursor
    DECLARE cursorHora CURSOR
    READ_ONLY
    FOR SELECT DateTime, Value FROM f_PP_Graficas ('Pinto_CON_SACOS',@fechaInicio, @fechaFin,'Pinto_PRODUCTO')
    -- Declaracion de variables locales
    DECLARE @produc_opt_hora int
    DECLARE @produc_opt_parc int
    DECLARE @nsacos int
    DECLARE @time_parc datetime
    -- Inicializamos VARIABLES
    SET @produc_opt_hora = (SELECT * FROM f_Valor (@fechaFin,'Pinto_PRODUC_OPT'))
    -- Abre y se crea el conjunto del cursor
    OPEN cursorHora
    -- Comenzamos los calculos 
    FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
    /************  BUCLE WHILE QUE SE VA A MOVER A TRAVES DEL CURSOR  ************/
    WHILE (@@fetch_status <> -1)
    BEGIN
    IF (@@fetch_status = -2)
    BEGIN
    -- Terminamos la ejecucion 
    BREAK
    END
    -- REALIZAMOS CÁLCULOS
    SET @produc_opt_parc = (SELECT dbo.f_P_Opt_Parc (@fechaInicio,@time_parc,@produc_opt_hora))
    -- INSERTAMOS VALORES EN LA TABLA
    INSERT @Produc_Opt VALUES (@time_parc,@nsacos, @produc_opt_parc)
    -- Avanzamos el cursor
    FETCH NEXT FROM cursorHora INTO @time_parc,@nsacos
    END
    /************  FIN DEL BUCLE QUE SE MUEVE A TRAVES DEL CURSOR  ***************/
    -- Cerramos el cursor
    CLOSE cursorHora
    -- Liberamos  los cursores
    DEALLOCATE cursorHora
    RETURN 
    END

    You can search the forums for that error message and find previous discussions - they all boil down to the same problem.  Somewhere in your query that calls this function, the code invoked implicitly converts from string to date/datetime.  In general,
    this works in any version of sql server if the runtime settings are correct for the format of the string data.  The fact that it works in one server and not in another server suggests that the query executes with different settings - and I'll assume for
    the moment that the format of the data involved in this conversion is consistent within the database/resultset and consistent between the 2 servers. 
    I suggest you read Tibor's guide to the datetime datatype (via the link to his site below) first - then go find the actual code that performs this conversion.  It may not be in the function you posted, since that function also executes other functions. 
    You also did not post the query that calls this function, so this function may not, in fact, be the source of the problem at all. 
    Tibor's site

  • SAP query error - 1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string.  'Received Alerts' (OAIB)

    SAP query error - 1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string.  'Received Alerts' (OAIB)
    SELECT    
    CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
    WHEN T0.DocStatus = 'C' THEN 'CLOSED'  END  AS 'Document Status',
    T0.DocDate AS 'Posting Date',
    T0.DocNum AS 'Doc.No',
    T0.NumAtCard,
    T0.TransId AS 'Trans. No.',
    T0.Comments AS 'Remarks',
    T0.CardCode AS 'Offset Acct',
    T0.CardName AS 'Offset Acct Name',
    sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
    T3.DueDate AS 'Cheque Date',
    T3.CheckSum AS 'Amount'
    FROM         ODPO AS T0 LEFT OUTER JOIN
                          VPM2 AS T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry LEFT OUTER JOIN
         OVPM AS T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
                          VPM1 AS T3 ON T2.DocEntry = T3.DocNum
    where T0.DocDate>='[%0]' and T0.DocDate<='[%1]'

    Hi,
    Try this:
    SELECT   
    CASE WHEN T0.DocStatus = 'O' THEN 'OPEN'
    WHEN T0.DocStatus = 'C' THEN 'CLOSED'  END  AS 'Document Status',
    T0.DocDate AS 'Posting Date',
    T0.DocNum AS 'Doc.No',
    T0.NumAtCard,
    T0.TransId AS 'Trans. No.',
    T0.Comments AS 'Remarks',
    T0.CardCode AS 'Offset Acct',
    T0.CardName AS 'Offset Acct Name',
    sum(T0.DocTotal) + (T0.WTSum) as 'DocTotal',
    T3.DueDate AS 'Cheque Date',
    T3.CheckSum AS 'Amount'
    FROM         ODPO  T0 LEFT OUTER JOIN
                          VPM2  T1 ON T0.ObjType = T1.InvType AND T0.DocEntry = T1.DocEntry
    LEFT OUTER JOIN
         OVPM  T2 ON T2.DocEntry = T1.DocNum LEFT OUTER JOIN
                          VPM1  T3 ON T2.DocEntry = T3.DocNum
    where T0.DocDate >= '[%0]' and T0.DocDate <='[%1]'
    group by T0.DocStatus,T0.DocDate ,
    T0.DocNum ,
    T0.NumAtCard,
    T0.TransId ,
    T0.Comments ,
    T0.CardCode,
    T0.CardName ,
    T0.WTSum ,
    T3.DueDate ,
    T3.CheckSum
    Thanks & Regards,
    Nagarajan

  • Conversion failed when converting date and/or time from character string

    Hi experts,
    I'm trying running a query in Microsoft Query but it gives the following error message:
    "conversion failed when converting date and/or time from character string"
    when asks me the data I'm inserting 31-01-2014
    i've copy the query form the forum:
    SELECT T1.CardCode, T1.CardName, T1.CreditLine, T0.RefDate, T0.Ref1 'Document Number',
         CASE  WHEN T0.TransType=13 THEN 'Invoice'
              WHEN T0.TransType=14 THEN 'Credit Note'
              WHEN T0.TransType=30 THEN 'Journal'
              WHEN T0.TransType=24 THEN 'Receipt'
              END AS 'Document Type',
         T0.DueDate, (T0.Debit- T0.Credit) 'Balance'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')<=-1),0) 'Future'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=0 and DateDiff(day, T0.DueDate,'[%1]')<=30),0) 'Current'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>30 and DateDiff(day, T0.DueDate,'[%1]')<=60),0) '31-60 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>60 and DateDiff(day, T0.DueDate,'[%1]')<=90),0) '61-90 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>90 and DateDiff(day, T0.DueDate,'[%1]')<=120),0) '91-120 Days'
         ,ISNULL((SELECT T0.Debit-T0.Credit WHERE DateDiff(day, T0.DueDate,'[%1]')>=121),0) '121+ Days'
    FROM JDT1 T0 INNER JOIN OCRD T1 ON T0.ShortName = T1.CardCode
    WHERE (T0.MthDate IS NULL OR T0.MthDate > ?) AND T0.RefDate <= ? AND T1.CardType = 'C'
    ORDER BY T1.CardCode, T0.DueDate, T0.Ref1

    Hi,
    The above error appears due to date format is differnt from SAP query generator and SQL server.
    So you need convert all date in above query to SQL server required format.
    Try to convert..let me know if not possible.
    Thanks & Regards,
    Nagarajan

  • [svn:bz-4.x] 16147: Fix a few more regression tests on the 4. x branch that were failing when using Spring integration.

    Revision: 16147
    Revision: 16147
    Author:   [email protected]
    Date:     2010-05-17 06:18:38 -0700 (Mon, 17 May 2010)
    Log Message:
    Fix a few more regression tests on the 4.x branch that were failing when using Spring integration.
    Modified Paths:
        blazeds/branches/4.x/qa/apps/qa-regress/WEB-INF/src/runtimeconfig/remoteobjects/ROMessage Destination.java
        blazeds/branches/4.x/qa/apps/qa-regress/WEB-INF/src/runtimeconfig/remoteobjects/RuntimeCo nfigurator.java
        blazeds/branches/4.x/qa/resources/webtier/flex_sdk_4/flex-config.xml

    Well heres my story. I tried kde4 from extra the last 3 weeks and I like it. I have used xfce for the past 3 years, previous to that gnome. Tried kde but never really liked it. Now I am only using workspace, base, mutimedia and graphics.
    Here is what I like.
    1- Dolphin, awesome I have used thunar a while and it is great but I love splitview, and fish for ssh (which has been around a while I know), and the ability to mount other partitions on my hdd with a click no fstab entry or nothin'.
    2-Pretty, I've used xfce with built in compositor an love the snappiness. But I like desktop grid with kde4 and flipswitch. Compiz-fusion is cool but I prefer not to use I'll take what the DE gives. Plasmoid are cool too.
    3- Gwenview is nice too. Use to use gqview, but thumnails are nice.
    Looking forward to or lacking
    1- Keyboard shortcuts, Yes xbindkeys is there but if I have a DE I want it to do it. They just don't work now.
    2- kde4 has windows specific settings, but I can't set the opacity for particular windows , doesn't work.
    3- Ram of course is much higher in kde4, but maybe I'm getting old I just don't care as much.

  • Error when using data postion delay

    I obtained this error when using data position delay. Can anyone please
    tell me the reason why I can not configure the delay to be between 0.7
    and 0.8.
    Possible reason(s):
    Driver Status:  (Hex 0xBFFA403F) Unable to configure requested delay property given the current clock rate.
    Ensure that the delay value specified is within the valid range for the
    frequency specified or do not configure property for delay operation.
    Device: PXI1Slot2
    Property: Data Position
    Sample Rate: 40000000.0
    Requested Value: 0.71875
    Supported Values: 0.000 through 0.200, 0.300 through 0.700, 0.800 through 1.000,
    Status Code: -219401

    Timothy,
    The 656x devices have a limit on the available data delay values based
    on frequency.  Between 25MHz and 50MHz there are "holes" in the
    available delay range.  Above 50MHz, the full 0 to 1 data delay is
    valid.  If you look in the specifications installed with NI HSDIO
    for the NI 656x, on page 7, Figure 1, there is an illustration showing
    how to compute what the valid range is for the frequency of interest.
    For example, at 40MHz, valid values are:
    0 to 0.2
    0.3 to 0.7
    0.8 to 1
    In the error message posted below, you tried to input a value of 0.71875 which is not within these ranges.

  • IFCORE-1565: The Dgraph could fail when using a relevance ranking strategy.

    Hi,
    I just saw the release notes for Endeca 6.2.2 and read this bug:
    IFCORE-1565: The Dgraph could fail when using a relevance ranking strategy.
    Is there someone who could provide some more information on this bug? What is it and when does it occur? Reading the word 'could' would suggest a kind of unpredictability?
    Thanks,
    Maarten

    The known trigger for the bug was doing relrank on a query that contained multiple text searches.

  • Device gets turned off when using data on mobile

    device gets turned off when using data on mobile... and not responding,i.e., if we hold the power button also there was no response,not getting on... when I connect it to charger,after 10min it gets automatically turning on.otherwise no chance to use the device..sometimes it gets off at 25%, sometimes at even 72% battery...seems it might be a severe problem..please suggest a solution..

    This might help:
    http://helpblog.blackberry.com/2013/02/restart-blackberry-z10/

  • Custom Report Erroring when using All as parameter

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

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

  • Sql retrives record but fails when used in a view

    Hi,
    I have a unique problem. I am able to retrive a record based on a certain criteria using a SQL.
    When the same sql is used in a create view statement the records do not show up.
    I did a count on records using the sql and get 54,521 where
    a count on the number of records from a view created using the same sql gives a lower number 40,967
    Here is the script
    /* Formatted on 2009/10/07 16:22 (Formatter Plus v4.8.8) */
    CREATE OR REPLACE FORCE VIEW ssvsec2_js (term_code_key,
    crn_key,
    seq_number_key,
    active_section_ind,
    active_course_ind,
    course_coreq_ind,
    course_prereq_ind,
    section_coreq_ind,
    section_prereq_ind,
    course_eff_term_code,
    coll_code,
    dept_code,
    levl_code1,
    levl_code2,
    levl_code3,
    levl_code4,
    divs_code,
    subj_code,
    crse_number,
    ceu_ind,
    csta_code,
    credit_hours,
    credit_hours_low,
    credit_hours_high,
    credit_hours_ind,
    billing_hours,
    billing_hours_low,
    billing_hours_high,
    billing_hours_ind,
    ssts_code,
    camp_code,
    gmod_code,
    title,
    sapr_code,
    census_enrollment1,
    census_enrollment_date1,
    census_enrollment2,
    census_enrollment_date2,
    projected_enrollment,
    maximum_enrollment,
    actual_enrollment,
    seats_available,
    ptrm_code,
    ptrm_start_date,
    ptrm_end_date,
    link_identifier,
    begin_time1,
    end_time1,
    bldg_code1,
    room_code1,
    schd_code_meet1,
    monday_ind1,
    tuesday_ind1,
    wednesday_ind1,
    thursday_ind1,
    friday_ind1,
    saturday_ind1,
    sunday_ind1,
    begin_time2,
    end_time2,
    bldg_code2,
    room_code2,
    schd_code_meet2,
    monday_ind2,
    tuesday_ind2,
    wednesday_ind2,
    thursday_ind2,
    friday_ind2,
    saturday_ind2,
    sunday_ind2,
    begin_time3,
    end_time3,
    bldg_code3,
    room_code3,
    schd_code_meet3,
    monday_ind3,
    tuesday_ind3,
    wednesday_ind3,
    thursday_ind3,
    friday_ind3,
    saturday_ind3,
    sunday_ind3,
    begin_time4,
    end_time4,
    bldg_code4,
    room_code4,
    schd_code_meet4,
    monday_ind4,
    tuesday_ind4,
    wednesday_ind4,
    thursday_ind4,
    friday_ind4,
    saturday_ind4,
    sunday_ind4,
    begin_time5,
    end_time5,
    bldg_code5,
    room_code5,
    schd_code_meet5,
    monday_ind5,
    tuesday_ind5,
    wednesday_ind5,
    thursday_ind5,
    friday_ind5,
    saturday_ind5,
    sunday_ind5,
    begin_time6,
    end_time6,
    bldg_code6,
    room_code6,
    schd_code_meet6,
    monday_ind6,
    tuesday_ind6,
    wednesday_ind6,
    thursday_ind6,
    friday_ind6,
    saturday_ind6,
    sunday_ind6,
    begin_time7,
    end_time7,
    bldg_code7,
    room_code7,
    schd_code_meet7,
    monday_ind7,
    tuesday_ind7,
    wednesday_ind7,
    thursday_ind7,
    friday_ind7,
    saturday_ind7,
    sunday_ind7,
    begin_time8,
    end_time8,
    bldg_code8,
    room_code8,
    schd_code_meet8,
    monday_ind8,
    tuesday_ind8,
    wednesday_ind8,
    thursday_ind8,
    friday_ind8,
    saturday_ind8,
    sunday_ind8,
    begin_time9,
    end_time9,
    bldg_code9,
    room_code9,
    schd_code_meet9,
    monday_ind9,
    tuesday_ind9,
    wednesday_ind9,
    thursday_ind9,
    friday_ind9,
    saturday_ind9,
    sunday_ind9,
    begin_time10,
    end_time10,
    bldg_code10,
    room_code10,
    schd_code_meet10,
    monday_ind10,
    tuesday_ind10,
    wednesday_ind10,
    thursday_ind10,
    friday_ind10,
    saturday_ind10,
    sunday_ind10,
    attr_code1,
    attr_code2,
    additional_attributes_ind,
    primary_instructor_id,
    primary_instructor_last_name,
    primary_instructor_first_name,
    primary_instructor_middle_init,
    instructor_id2,
    instructor_last_name2,
    instructor_first_name2,
    instructor_middle_init2,
    instructor_id3,
    instructor_last_name3,
    instructor_first_name3,
    instructor_middle_init3,
    additional_instructors_ind,
    coll_code_override,
    divs_code_override,
    dept_code_override,
    schd_code1,
    schd_workload1,
    schd_max_enrl1,
    schd_adj_workload1,
    schd_code2,
    schd_workload2,
    schd_max_enrl2,
    schd_adj_workload2,
    schd_code3,
    schd_workload3,
    schd_max_enrl3,
    schd_adj_workload3,
    schd_code4,
    schd_workload4,
    schd_max_enrl4,
    schd_adj_workload4
    AS
    SELECT ssbsect_term_code, ssbsect_crn, ssbsect_seq_numb,
    SUBSTR (f_active_section_ind (ssbsect_ssts_code), 1, 1),
    SUBSTR (f_active_course_ind (a.scbcrse_csta_code), 1, 1),
    SUBSTR (f_check_for_course_coreqs (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code
    1,
    1
    SUBSTR (f_check_for_course_prereqs (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    1,
    1
    SUBSTR (f_check_for_section_coreqs (ssbsect_term_code, ssbsect_crn),
    1,
    1
    SUBSTR (f_check_for_section_prereqs (ssbsect_term_code,
    ssbsect_crn,
    1,
    1
    a.scbcrse_eff_term, a.scbcrse_coll_code, a.scbcrse_dept_code,
    SUBSTR (f_get_course_levels (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    1
    1,
    2
    SUBSTR (f_get_course_levels (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    2
    1,
    2
    SUBSTR (f_get_course_levels (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    3
    1,
    2
    SUBSTR (f_get_course_levels (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    4
    1,
    2
    a.scbcrse_divs_code, ssbsect_subj_code, ssbsect_crse_numb,
    a.scbcrse_ceu_ind, a.scbcrse_csta_code,
    NVL (ssbsect_credit_hrs, a.scbcrse_credit_hr_low),
    a.scbcrse_credit_hr_low, a.scbcrse_credit_hr_high,
    a.scbcrse_credit_hr_ind,
    NVL (ssbsect_bill_hrs, a.scbcrse_bill_hr_low),
    a.scbcrse_bill_hr_low, a.scbcrse_bill_hr_high,
    a.scbcrse_bill_hr_ind, ssbsect_ssts_code, ssbsect_camp_code,
    NVL (ssbsect_gmod_code,
    SUBSTR (f_default_gmod (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code
    1,
    1
    NVL (ssbsect_crse_title, a.scbcrse_title), ssbsect_sapr_code,
    ssbsect_census_enrl, ssbsect_census_enrl_date,
    ssbsect_census_2_enrl, ssbsect_census_2_date, ssbsect_proj_enrl,
    ssbsect_max_enrl, ssbsect_enrl, ssbsect_seats_avail,
    ssbsect_ptrm_code, ssbsect_ptrm_start_date, ssbsect_ptrm_end_date,
    ssbsect_link_ident, k.ssrmeet_begin_time, k.ssrmeet_end_time,
    k.ssrmeet_bldg_code, k.ssrmeet_room_code, k.ssrmeet_schd_code,
    k.ssrmeet_mon_day, k.ssrmeet_tue_day, k.ssrmeet_wed_day,
    k.ssrmeet_thu_day, k.ssrmeet_fri_day, k.ssrmeet_sat_day,
    k.ssrmeet_sun_day, l.ssrmeet_begin_time, l.ssrmeet_end_time,
    l.ssrmeet_bldg_code, l.ssrmeet_room_code, l.ssrmeet_schd_code,
    l.ssrmeet_mon_day, l.ssrmeet_tue_day, l.ssrmeet_wed_day,
    l.ssrmeet_thu_day, l.ssrmeet_fri_day, l.ssrmeet_sat_day,
    l.ssrmeet_sun_day, m.ssrmeet_begin_time, m.ssrmeet_end_time,
    m.ssrmeet_bldg_code, m.ssrmeet_room_code, m.ssrmeet_schd_code,
    m.ssrmeet_mon_day, m.ssrmeet_tue_day, m.ssrmeet_wed_day,
    m.ssrmeet_thu_day, m.ssrmeet_fri_day, m.ssrmeet_sat_day,
    m.ssrmeet_sun_day, n.ssrmeet_begin_time, n.ssrmeet_end_time,
    n.ssrmeet_bldg_code, n.ssrmeet_room_code, n.ssrmeet_schd_code,
    n.ssrmeet_mon_day, n.ssrmeet_tue_day, n.ssrmeet_wed_day,
    n.ssrmeet_thu_day, n.ssrmeet_fri_day, n.ssrmeet_sat_day,
    n.ssrmeet_sun_day, o.ssrmeet_begin_time, o.ssrmeet_end_time,
    o.ssrmeet_bldg_code, o.ssrmeet_room_code, o.ssrmeet_schd_code,
    o.ssrmeet_mon_day, o.ssrmeet_tue_day, o.ssrmeet_wed_day,
    o.ssrmeet_thu_day, o.ssrmeet_fri_day, o.ssrmeet_sat_day,
    o.ssrmeet_sun_day, p.ssrmeet_begin_time, p.ssrmeet_end_time,
    p.ssrmeet_bldg_code, p.ssrmeet_room_code, p.ssrmeet_schd_code,
    p.ssrmeet_mon_day, p.ssrmeet_tue_day, p.ssrmeet_wed_day,
    p.ssrmeet_thu_day, p.ssrmeet_fri_day, p.ssrmeet_sat_day,
    p.ssrmeet_sun_day, q.ssrmeet_begin_time, q.ssrmeet_end_time,
    q.ssrmeet_bldg_code, q.ssrmeet_room_code, q.ssrmeet_schd_code,
    q.ssrmeet_mon_day, q.ssrmeet_tue_day, q.ssrmeet_wed_day,
    q.ssrmeet_thu_day, q.ssrmeet_fri_day, q.ssrmeet_sat_day,
    q.ssrmeet_sun_day, r.ssrmeet_begin_time, r.ssrmeet_end_time,
    r.ssrmeet_bldg_code, r.ssrmeet_room_code, r.ssrmeet_schd_code,
    r.ssrmeet_mon_day, r.ssrmeet_tue_day, r.ssrmeet_wed_day,
    r.ssrmeet_thu_day, r.ssrmeet_fri_day, r.ssrmeet_sat_day,
    r.ssrmeet_sun_day, s.ssrmeet_begin_time, s.ssrmeet_end_time,
    s.ssrmeet_bldg_code, s.ssrmeet_room_code, s.ssrmeet_schd_code,
    s.ssrmeet_mon_day, s.ssrmeet_tue_day, s.ssrmeet_wed_day,
    s.ssrmeet_thu_day, s.ssrmeet_fri_day, s.ssrmeet_sat_day,
    s.ssrmeet_sun_day, t.ssrmeet_begin_time, t.ssrmeet_end_time,
    t.ssrmeet_bldg_code, t.ssrmeet_room_code, t.ssrmeet_schd_code,
    t.ssrmeet_mon_day, t.ssrmeet_tue_day, t.ssrmeet_wed_day,
    t.ssrmeet_thu_day, t.ssrmeet_fri_day, t.ssrmeet_sat_day,
    t.ssrmeet_sun_day, e1.ssrattr_attr_code, e2.ssrattr_attr_code,
    SUBSTR (f_more_attributes (scbcrse_subj_code,
    scbcrse_crse_numb,
    scbcrse_eff_term
    1,
    1
    x.spriden_id, NVL (x.spriden_last_name, 'STAFF'),
    x.spriden_first_name, SUBSTR (x.spriden_mi, 1, 1), y.spriden_id,
    y.spriden_last_name, y.spriden_first_name,
    SUBSTR (y.spriden_mi, 1, 1), z.spriden_id, z.spriden_last_name,
    z.spriden_first_name, SUBSTR (z.spriden_mi, 1, 1),
    DECODE (u.spriden_pidm, NULL, 'N', 'Y'), ssbovrr_coll_code,
    ssbovrr_divs_code, ssbovrr_dept_code, f1.scrschd_schd_code,
    f1.scrschd_workload, f1.scrschd_max_enrl, f1.scrschd_adj_workload,
    f2.scrschd_schd_code, f2.scrschd_workload, f2.scrschd_max_enrl,
    f2.scrschd_adj_workload, f3.scrschd_schd_code, f3.scrschd_workload,
    f3.scrschd_max_enrl, f3.scrschd_adj_workload, f4.scrschd_schd_code,
    f4.scrschd_workload, f4.scrschd_max_enrl, f4.scrschd_adj_workload
    FROM scbcrse a,
    ssbovrr,
    spriden x,
    spriden y,
    ssrmeet k,
    ssrmeet l,
    ssrmeet m,
    ssrmeet n,
    ssrmeet o,
    ssrmeet p,
    ssrmeet q,
    ssrmeet r,
    ssrmeet s,
    ssrmeet t,
    scrschd f1,
    scrschd f2,
    scrschd f3,
    scrschd f4,
    ssrattr e1,
    ssrattr e2,
    spriden z,
    spriden u,
    ssbsect
    WHERE x.ROWID(+) =
    f_get_instr_spriden_rowid (ssbsect_crn,
    ssbsect_term_code,
    'Y',
    AND y.ROWID(+) =
    f_get_instr_spriden_rowid (ssbsect_crn, ssbsect_term_code, '', 1)
    AND z.ROWID(+) =
    f_get_instr_spriden_rowid (ssbsect_crn, ssbsect_term_code, '', 2)
    AND u.ROWID(+) =
    f_get_instr_spriden_rowid (ssbsect_crn, ssbsect_term_code, '', 3)
    AND ssbovrr_term_code(+) = ssbsect_term_code
    AND ssbovrr_crn(+) = ssbsect_crn
    AND a.scbcrse_subj_code = ssbsect_subj_code
    AND a.scbcrse_crse_numb = ssbsect_crse_numb
    AND a.scbcrse_eff_term =
    (SELECT MAX (b.scbcrse_eff_term)
    FROM scbcrse b
    WHERE b.scbcrse_subj_code = ssbsect_subj_code
    AND b.scbcrse_crse_numb = ssbsect_crse_numb
    AND b.scbcrse_eff_term <= ssbsect_term_code)
    AND k.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    1
    AND l.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    2
    AND m.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    3
    AND n.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    4
    AND o.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    5
    AND p.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    6
    AND q.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    7
    AND r.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    8
    AND s.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    9
    AND t.ROWID(+) =
    gvsuowner.f_get_ssrmeet_rowid_js (ssbsect_term_code,
    ssbsect_crn,
    10
    AND f1.ROWID(+) =
    f_get_scrschd_rowid (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    1
    AND f2.ROWID(+) =
    f_get_scrschd_rowid (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    2
    AND f3.ROWID(+) =
    f_get_scrschd_rowid (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    3
    AND f4.ROWID(+) =
    f_get_scrschd_rowid (ssbsect_subj_code,
    ssbsect_crse_numb,
    ssbsect_term_code,
    4
    AND e1.ssrattr_term_code(+) = ssbsect_term_code
    AND e1.ssrattr_crn(+) = ssbsect_crn
    AND e1.ssrattr_attr_code(+) = 'SWS'
    AND e2.ssrattr_term_code(+) = ssbsect_term_code
    AND e2.ssrattr_crn(+) = ssbsect_crn
    AND e2.ssrattr_attr_code(+) LIKE 'TM%';
    Thanks ,
    Irene

    Welcome to the forums !
    If this issue is not related to a database upgrade, pl post the question in the "SQL and PL/SQL" or "Database - General" forums for a better/faster response.
    http://forums.oracle.com/forums/category.jspa?categoryID=18
    HTH
    Srini

  • SQL Error when adding data with UDO + Form

    Good morning, friends.
    Initially, I apologize for any mistakes in my English.
    I am developing an addon for a client and now I came across a problem that started happening about 5 days ago:
    I customized a MasterData postcodes in B1, I created a UDO (oCNSTCEP) and bind to a form created by the Screen Painter. It is noteworthy that this program has been operating without any problems in the customer environment for at least 3 months. Finally, for reasons unknown to the system now has to give the following message when I insert a new record:
    [Microsoft] [SQL Server Native Client 10.0] [SQL Server] Conversion failed When converting the nvarchar value 'oCNSTCEP' to data type int. (CINF)
    The strange thing is that the record is written into the UDT corresponding to the UDO. But the error message is given, giving the user the impression that the routine was not completed successfully.
    Yesterday you told me what is happening the same error in another form, ie, the way any given recording through UDOs are giving problem.
    I searched for this post in SDN and the maximum that I discovered is that it could be happening because of the variable @ object_type in SBO_Notification be as int instead of being as nvarchar (20). I checked the stored procedure and @object_type is nvarchar(20) type.
    I would like to help for a solution to this problem. Since now, thank you!
    Sincerely,
    Junior

    The error is coming from the stored procedure and is easy to fix,
    Anywhere where you check the @object_type, you need to put the value in single quotes.
    e.g if your stored proc includes both of these:
    IF @object_type = 17
    IF @object_type = 'oCNSTCEP'
    It will fail with the error you mentioned. But if you have:
    IF @object_type = '17'
    IF @object_type = 'oCNSTCEP'
    It will work.

  • Error when using Date Parameters...

    Hi everybody,
    I have a little issue.
    Ever since I upgraded my CRXI R2 to SP4 I've had a little problem using date parameters.
    The little calendar icon next to the parameter field no longer works.
    When I click it I get the following error message:
    An error has occurred in the script on this page.
    Line:       79
    Char:      1
    Error:      Object Expected
    Code:      0
    URL:       file://C:\Documents and Settings\jlong\Local Settings\Temp\prompting1.html
    I'm thinking this is probable a quick registry fix, but I have no idea where to start looking.
    Hopefully one of you CR guru's knows the answer.
    Thanks in advance,
    Jason

    It seems you are having a scripting issue.
    Go onto the Internet explorer settings (internet options under control panel)
    click on security and then click on Internet and then Custom tab.
    Scroll right down where it says Scripting and enable it.
    That should resolve the issue.
    Here is the full list of browsers with scripting options:
    Windows Internet Explorer
    (all versions except Pocket Internet Explorer)
    Note To allow scripting on this Web site only, and to leave scripting disabled in the Internet zone, add this Web site to the Trusted sites zone.
    1. On the Tools menu, click Internet Options, and then click the Security tab
    2. Click the Internet zone.
    3. If you do not have to customize your Internet security settings, click Default Level. Then do step 4
    If you have to customize your Internet security settings, follow these steps:
    a. Click Custom Level
    b. In the Security Settings u2013 Internet Zone dialog box, click Enable for Active Scripting in the Scripting section.
    4. Click the Back button to return to the previous page, and then click the Refresh button to run scripts.
    ===========
    Mozilla Corporationu2019s Firefox version 2
    1. On the Tools menu, click Options.
    2. On the Content tab, click to select the Enable JavaScript check box.
    3. Click the Go back one page button to return to the previous page, and then click the Reload current page button to run scripts.
    ===========
    Opera Softwareu2019s Opera version 9
    1. On the Tools menu, click Preferences.
    2. On the Advanced tab, click Content.
    3. Click to select the Enable JavaScript check box, and then click OK.
    4. Click the Back button to return to the previous page, and then click the Reload button to run scripts.
    ===========
    Netscape browsers
    1. Select Edit, Preferences,Advanced
    2. Click to select Enable JavaScript option
    Hope this helps.
    Regards
    Jehanzeb
    Edited by: Jehanzeb Navid on Jul 28, 2008 4:38 PM
    Ok I think I got this totally wrong. this isn't what you are looking for.
    Sorry!!! can't delete this reply arggghh!!!
    Edited by: Jehanzeb Navid on Jul 28, 2008 4:40 PM
    Maybe this might help?
    Remove Web Customization
    If multiple folders are causing the script error, remove Web customization from any folder that generates the error message.
    To remove customization from a folder, use the following steps:
    1. Open the appropriate folder.
    2. On the View menu, click Customize This Folder, click Remove Customization, click Next, and then click Finish.
    3. Close the folder.

  • Crystal Reports Publication fails when using dynamic recipients

    Hi experts,
    We are facing a problem related with the BOE 3.1 Dynamic recipients Publication.
    We have created a Publication with just one Crystal Report based on a MDX Query.  We send the report in PDF format to email destinations
    Dynamic recipients are defined in a WebI report pulling data from a BW query universe. We can display the email, user ID, Use Name and other fields we would like to use as dynamic parameters.
    Server side trust seems to be configured (is there any way to test it is properly configured?).
    The Publication is working fine with enterprise recipients (which have SAP BW account), and each recipient receive its PDF by email.
    When we execute same report with dynamic recipients without selecting dynamic personalization parameters it is working fine. But when we select one dynamic parameter (which is coming from the WebI report we use for dynamic recipients) eg: Profit Centre, the Publication fails and we get a Database Connector error:
    2011-02-14 08:53:25,275 ERROR [PublishingService:HandlerPool-13] BusinessObjects_PublicationAdminErrorLog_Instance_31036 - [Publication ID # 31036] - Scheduling document job "P&L" (ID: 31,051) failed: Error in File ~tmp191067bfa343ff0.rpt: Database Connector Error (FBE60502) [1 recipients processed.]
    How can a dynamic parameter affect on the Database Connection?
    Does anyone have an idea about what could be wrong?
    Thanks!

    Ino, what do you mean for "technical name or the member unique name"? Are you talking about the SAP User name? So in the dynamic recipients we can find  these parameters:
    - Recipient Identifier (required):      
    - Full Name:      
    - Email:      
    In the Recipient Identifier I should refer to a SAP user?
    Dynamic recipients option is working for same recipients. The problem appears when I assign one parameter to a field coming from the dynamic webi report.It fails with the previously detailed error. This parameter assignment seems to be causing the Database Connector error.
    Message in CMC:
    2011-02-14 17:00:25,590 ERROR [PublishingService:HandlerPool-24] BusinessObjects_PublicationAdminErrorLog_Instance_31594 - [Publication ID # 31594] - Scheduling document job "B1 - P&L" (ID: 31,603) failed: Document for recipients {BD1~500/EVER} failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error Document for recipients {EVER, JOHNDOE} failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error Document for recipients failed: Error in File ~tmpa0067c160f93d0.rpt: Database Connector Error (FBE60502) [4 recipients processed.]
    Error in the Adaptive jobserver trace does'nt give more details:
    |1c2fd2be-3ba1-f414-f8fa-e4f7b004f1ee|2011 02 14 17:00:18:974|+0000|==| | |jobserver_vwd2520.AdaptiveJobServer_CRCPPSchedulingService_CHILD0| 2560|4856|| |6187|1|11|2|CMC.WebApp|vwd2520:1624:39.23486:1|CMS.runJobs|localhost:8392:11648.936338:1|jobserver_vwd2520.AdaptiveJobServer_CRCPPSchedulingService_CHILD0.run|localhost:2560:4856.5:1|CntazqXlSEO7hcDJVIv11545bbb|||||||||||(.\src\reportdllerrors.cpp:140) ras21-cr: procReport.dll: CRPE FAILED: GetLastPEErrorInfo(1) returns crpe error code [707] with extended error string [Database Connector Error: ''
    Failed to retrieve data from the database.
    Failed to export the report.
    Error in File ~tmpa0067c160f93d0.rpt:
    Database Connector Error]. Localized error string is [Error in File ~tmpa0067c160f93d0.rpt:
    Database Connector Error]
    I would like to discard thats a SNC misconfiguration error. Can I consider that SNC server side trust is properly configured if I can run Publication for many SAP users mapped in Enterprise?
    Thanks!

Maybe you are looking for