Value of Variable with OracleDiagent throwing error in white

Hi all

In my process I use 3 variables as input #GL_Product_code, #GL_Period_no, #GL_Year, on this basis, I need to get all the details, if I gave the white input from of the two other entries value must extract the value below in the code where condition
.. .or product_code = nvl('#GL_Product_code',product_code) and period_no = nvl('#GL_Period_no',period_no) and year = nvl('#GL_Year',year)

but when I use local agent my process of execution with errors, when I execution of his mistake to launch as variable with OracleDiagent has no value

Error details

oracle.odi.core.exception.OdiRuntimeException: java.lang.Exception: ODI-17506: Variable has no value: GL_VALIDATE.GL_PERIOD_NO

Thanks for your suggestion...

Published by: 981371 on February 11, 2013 09:53

Published by: 981371 on February 12, 2013 02:28

Published by: 981371 on February 12, 2013 22:10

Give a default value for this variable as 'IS NULL' or 'IS NOT NULL' somethhing to be replaced if you don't pass any value then runt.

Chantal
http://dwteam.in

Tags: Business Intelligence

Similar Questions

  • Why multiple selection in parameter throwing error BI publisher 11g?

    Hi all, I have under SQL statement with parameters.

    Select 'TABLE_A '. "" s_number "as"s_number. "

    'TABLE_A '. "" SM "like"sm. "

    'TABLE_A '. "" Loc "as"loc"

    'TABLE_A '. "" Co "as"co. "

    'TABLE_A '. "" s "as"dry. "

    'TABLE_A '. "" m_days "as"m_days. "

    'TABLE_A '. "" b_time "as"b_time. "

    'TABLE_A '. "" e_time "as"e_time. "

    'TABLE_A '. "' build ' as"build. "

    'TABLE_A '. "" RM "as"rm"

    'TABLE_A '. "" aid_credits "as"aid_credits. "

    "TABLE_D. "" Co "as"co_1. "

    "TABLE_D. "" co_des "as"co_des. "

    "TABLE_D. "" pre_co_des "as"pre_co_des. "

    "TABLE_D. "" cont_cou_des "as"cont_cou_des. "

    "TABLE_D. "' end_sm ' as 'end_sm '.

    "St." » « « « dbo ». » TABLE_A' 'TABLE_A '.

    "Left outer join"st. " """dbo"."" TABLE_D""TABLE_D.

    on ('TABLE_A'. "Co"= "TABLE_D". ("" Co ")

    where ('TABLE_A'. ("" in(:PSM) SM "or: PSM is null)

    and ('TABLE_A'. ("' in(:PLOC) Loc" or: PLOP is null)

    and ('TABLE_A'. ("" in(:PCO) Co "or: BCP is null) and"TABLE_D. "" end_sm "="

    order by 'TABLE_A '. "' s_number ' ASC

    I defined in the parameter section

    multiple selection is enabled

    can select all is selected

    NULL value last selected for all parameters: PSM, PLOP, BCP

    now my question is that if I select more than one value in the settings it throws error «an error has occurred on xml data recovery»

    oracle.xdo.XDOException: java.sql.SQLException: type [Hyperion] [SQLServer JDBC Driver] [SQL Server] non Boolean expression specified in a context where a condition is expected, near ', '.

    Please help me what is?

    Kind regards

    Sam

    For this reason, the error is: PSM is null,: PLOP is null and: BCP is null.

    Because it is possible to assign multiple values to a variable to link plain. You must manage this in different ways.

    If she is Oracle DB - decode(:PCO,null,columnxxx,'dummy')

  • Variable with a value. «PURGE error: bad Argument Type.»

    
    

    Hi, my 50G calculator accuses a value for the variable 'X' but I can't find it in any directory, and when I try to delete I get the message "' PURGE error: bad Argument Type." " I also have the theta variable with the same problem. How can I remove the value of these variables? TKS

    In addition to Make suggestions, two other possibilities come to mind: 'X' can be a directory object (which would cause the error to the wrong Type of Argument because non-empty directory objects cannot be purged by PURGE, but must be purged by PGDIR), or it could be a local variable (which can only be served by putting an end to the environment that created which is usually a program).  So if Make suggestions don't work, try foster 'X' PGDIR and if that does not work, try KILL (which ends all the current environments).

    If those WHO do not work, please do 'X' TYPE HOME and tell us what object type 'X'.

    DISCLAIMER: I do not work for HP; I'm a happy user of HP Calculator.

  • Problem adding a variable with a list of values in SQL

    Does anyone have an idea why it works->

    SELECT DISTINCT (countryLong) AS CountryLong
    Of ipcountry
    WHERE countryShort IN ('US', 'UK')
    ORDER BY countryLong

    But it does not work->

    < CFSET target_country = "" WE","UK"" >

    SELECT DISTINCT (countryLong) AS CountryLong
    Of ipcountry
    WHERE countryShort IN (#target_country #)
    ORDER BY countryLong

    When I run the list as a variable I get an error, an incorrect syntax near 'US '.

    (CF8 - MS SQL2005)

    Thank you

    Mark

    In fact, I posted an example by e-mail. But as usual my answer forum. Strangely, he worked a few days ago. In any case at least once.  Must have been a fluke.  Anyway here's what response should have looked like:

    But if you use cfqueryparam instead, you don't have to worry about quoting values

    ...

    WHERE countryShort IN ( )

  • How can I report a number of variable with a precision of 127 type?

    I try to declare a variable with precision - like for example V_NUM NUMBER (1,127).

    According to oracle, it should be possible-

    http://docs.Oracle.com/CD/E11882_01/server.112/e41084/sql_elements001.htm#SQLRF30020

    2

    NUMBER[ (p [, s]) ]

    Number having precision p and scale s . Precision p may vary from 1 to 38. Wide s can vary from-84 to 127. Precision and scale are in decimal digits. A NUMBER value requires 1 to 22 bytes.

    but after the execution of the present

    declare

    Number V_NUM (1 127);

    Start

    V_NUM: = 1.2333333333333333333333234343435;

    DBMS_OUTPUT. PUT_LINE (V_NUM);

    end;

    /

    I got error (I know that p must be greater, then s - but I can't figured an example for this case s = 127)

    Error starting line: 1 at the controls.

    declare

    Number V_NUM (1 127);

    Start

    V_NUM: = 1.2333333333333333333333234343435;

    DBMS_OUTPUT. PUT_LINE (V_NUM);

    end;

    Error report-

    ORA-06502: PL/SQL: digital error or value: number too high accuracy

    ORA-06512: at line 4 level

    06502 00000 - "PL/SQL: digital error or the value of %s.

    * Cause: A digital arithmetic error, String, conversion or coercion

    has occurred. For example, this error occurs if an attempt is made to

    assign the NULL value to a variable declared NOT NULL, or if a

    attempt to assign an integer greater than 99 to a variable

    NUMBER (2) declared.

    * Action: Change the data, how it is handled, or how it is so declared

    that values do not violate the constraints.

    Is it possible to reach my goal?

    Ok. I found this ;)

    Thank you

  • Report throwing error

    Hi the BI Experts,
    I have a question in the report. The request is to give the data, but the report shows the same.
    When no values are given, report throws ERROR instead of give the white page. Client expects blank page or page modeling with tables or positions etc but not the error message.
    Please suggest a solution for this.
    Let me know if anyone needs any other information about it.
    Thanks in advance.

    Make sure your Inbox sent the updated without data found logical model.

  • How to create a file name variable with the County and the date?

    Objective: Create a file name variable with the County and the date

    Error: get a lot of error. Do you know how to change my code?

    Question: how to create a file name variable with the County and the date?

    Mini code:

    std::string * rawfilepath;
    std::string * rawfilename;

    rawfilepath = "./shared/documents/";
    RawFileName = rawfilepath + 'rawlog -' + 0 + '-.txt ';
    QFile file (rawfilename);
    If (file.exists ()) {}
    rawfilenamecount ++;
    RawFileName = "./shared/documents/rawlog-" + rawfilenamecount + "-.txt ';
    }

    Thank you for your attention,

    Thank tzander reminding me the idea. Method of cascades is not good for me because all of the kernel code is written by Native. If I change the channel to QString, I need to change a lot of codes.

    Solution is below.

    While (access (rawfilename, F_OK)! = - 1) {}
    rawfilenamecount ++;
    sprintf (format, RawFileName, rawfilenamecount);
    fprintf (stderr, "file exists");
    }

    Rawlog = fopen (rawfilename, "w"); Save the file in a specific path.
    fprintf (rawlog, "System Time (ms)" "");

  • error packaed and launch: Oh, Snap! Build request failed with the message: [ERROR] an archive or directory does not exist in the specified path:

    Hello

    I get this error when you try to run the sample of cards on the corrugation Simulator:

    Oh, Snap! Build request failed with the message: [ERROR] an archive or directory does not exist in the specified path: "/ Users/Calgacos/Library/Application Support/Google/Chrome/Default/Extensions/cnijnnaimeaacneklcndcafbnkeicckh/0.9.16_0/services/node/node_modules/rbd/Packaged/Maps.zip".

    The .../rbd/Packaged folder is writable and the Maps.zip will be created in the folder ~/RippleSites/Maps/Packaged.  With the help of Mac, the latest versions of everything.  The application runs in undulation ok, but I can't throw on the SIM BB10.

    Someone else have this error and know why?

    PS the Maps.zip does not get created (or copied) in specified folder, of course, but why?

    PS try another application and it worked but is too has not put its zip file into the folder... rbd/Packaged.  I guess it should not but leaves me clueless as to whats wrong with cards.

    Thank you

    The two directories (in the extensions directory and maps project directory) have permissions to 777.

    But you gave me an idea...

    It turns out that simply by putting

    "Packages".

    in setting output wasn't enough, I need the full path

    for example: "/ Users/username/RippleSites/Maps/packed."

    and presto, now it works!

    Thank you!

  • Server of IOM throwing errors

    Hello

    I installed 11gR2PS2 IOM under the guide of the Oracle, but I am facing problem on startup of IOM. There are many upcoming errors such as those listed below:

    < oracle.jps.authorization > < JPS-04155 > < analysis of enforcement policy has failed. Reason {0}

    oracle.security.jps.service.policystore.PolicyStoreException: JPS-10702: jdbc/OPSSDBDS data source is not found.

    weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.ResourceException: could not create a connection from the pool. With the exception of the DBMS driver: listener refused the connection with the following error:

    ORA-12516, TNS:listener could not find Manager available with corresponding protocol stack


    I tried to reinstall twice but still the same problem. All associated IOM deployments are in the Failed state if the server shows as running.


    Please help get the problem solved.

    Hello

    The setting process is probably on the lower side in my opinion. Could you assigning a larger value such as 400 or 500 (depends in fact on the set of connection pool in your environment) and give it a try?

    Kind regards

    Ganesh

  • PowerCLI throwing error when I try to count the totla linux VM


    Hi all

    When I try to run the command on PowerCLI to count total linux/windows VM, it's throwing error, please if any Kown how to solve the problem, please share it.

    Here is the Error Msg:

    PS C:\Program Files\VMware\Infrastructure\vSphere PowerCLI > (Get-VMguest * |) Where-Object {$_.} ({OSFullName-like "* Linux * '}). County | Out-file C:\Users\xbblfl9\Desktop\CNJLinuxcount.txt
    Get-VMGuest: 26/12/2013-12:21:02 Get-VMGuest the underlying connection was closed: an unexpected error occurred on a send.
    On line: 1 char: 13
    + (Get-VMguest < < < < * |) Where-Object {$_.} ({OSFullName-like "* Linux * '}). County |
    Out-file C:\Users\xbblfl9\Desktop\CNJLinuxcount.txt
    + CategoryInfo: NotSpecified: (:)) [Get-VMGuest], ViError)
    + FullyQualifiedErrorId: Client20_QueryServiceImpl_RetrievePropertiesEx_ViError, VMware.VimAutomation.ViCore.Cmdlets.Commands.GetVmGuest

    Get-VMGuest: 26/12/2013-12:21:02 Get-VMGuest value is not found for the required VM parameter
    On line: 1 char: 13
    + (Get-VMguest < < < < * |) Where-Object {$_.} ({OSFullName-like "* Linux * '}). County |
    Out-file C:\Users\xbblfl9\Desktop\CNJLinuxcount.txt
    + CategoryInfo: NotSpecified: (:)) [Get-VMGuest], VimException)
    + FullyQualifiedErrorId: Core_BaseCmdlet_UnknownError, VMware.VimAutomatio
    n.ViCore.Cmdlets.Commands.GetVmGuest

    PS C:\Program Files\VMware\Infrastructure\vSphere PowerCLI >

    Thank you

    Murali J

    Hello

    It does not work, same error, I get when I run the above command.

    I can able to get windows/Linux VM Total count by using below command.

    Get - vm | where {$_ .name-match "^ w"} | measure-object | Out-file C:\Users\Desktop\CNJWindowscount.tx

  • Listener to refuse the connection with the following error ORA-12505

    Hi everyone, Am really new to the oracle database, I work on my school project work and am stuck in the middle of this error (listener refused the connection with the following error ORA-12505).

    I started the time serveral listener and it is said that 'no service supported by the LISTENER', I can't access the database via sqldeveloper including trows on the same error (listener refused the connection with the following error ORA-12505, TNS:Listener currently know of SID given in connect descriptor.) In addition, my em show red arrow down to the listener. Here are my coordinates hard & software.


    Oracle 11.1.0
    OS: Red Hat Enterprise Linux 4 (running the operating system through Vmware workstation)
    TNSNAME. ORA

    LISTENER2 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    ((ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST=localhost.localdomain))
    )
    )

    AUDITEUR1 =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC) (KEY = EXTPROC1521))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))




    Listner, ora




    LISTNER_ORCL
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))
    )

    IMT_ADMI =
    (= DESRIPTION
    (PORT = 1522))
    (ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST=localhost.localdomain))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))

    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = imt_admin
    )
    )

    LISTENER_IMTADMIN =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP (PORT = 1522))(HOST=localhost.localdomain))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))

    )

    ORCL =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1523))
    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))

    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl)

    I read on some forums that I need to edit somethings that am not sure cos I don't want to mess with the database, I need help on what to.
    Thanks for the help in advance.

    (ADDRESS = (PROTOCOL = TCP)(HOST=localhost.localdomain) (PORT = 1521))

    Try to edit listener.ora by:
    (ADDRESS = (PROTOCOL = TCP) (HOST = HOST_NAME_OF_YOUR_DATABASE_MACHINE/OR TRY USING THE IP ADDRESS OF THE DATABASE SERVER MACHINE)(PORT=1521))
    Just try to edit HOST = value line above. You must use HOST_NAME_OF_YOUR_DATABASE_MACHINE or IP OF the DATABASE SERVER MACHINE.

    Host name can be obtained by the hostname command on the database server.

    With localhost, no one can connect to the database remotely.

    Concerning
    Girish Sharma

    Published by: Girish Sharma January 11, 2013 18:26

    then after the output of commands below:
    lsnrctl stop
    lsnrctl start
    Wait 60 seconds...
    ORACLE_SID =
    sqlplus scott/tiger@tnsname

    Show us what is happening now.

  • Listener refused the connection with the following error

    Hi all,

    I faced this problem. So after searching the forum I found the most important command for this questions as follows but until now I have not found the solution to this problem

    Error: Listener refused the connection with the following error:
    ORA-12505, TNS:listener does not currently know of SID given in connect descriptor
     
    I have run the following commands
    lsnrctl start
    lsnrctl service
    lsnrctl status
    results as follows
    C:\Windows\system32>lsnrctl start
    
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 07-JAN-2013 00:28
    :01
    
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    
    TNS-01106: Listener using listener name LISTENER has already been started
    C:\Windows\system32>lsnrctl service
    
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 07-JAN-2013 00:28
    :06
    
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
        Handler(s):
          "DEDICATED" established:0 refused:0
             LOCAL SERVER
    The command completed successfully
    C:\Windows\system32>lsnrctl status
    
    LSNRCTL for 64-bit Windows: Version 11.2.0.1.0 - Production on 07-JAN-2013 00:28
    :08
    
    Copyright (c) 1991, 2010, Oracle.  All rights reserved.
    
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC1521)))
    STATUS of the LISTENER
    ------------------------
    Alias                     LISTENER
    Version                   TNSLSNR for 64-bit Windows: Version 11.2.0.1.0 - Produ
    ction
    Start Date                07-JAN-2013 00:24:39
    Uptime                    0 days 0 hr. 3 min. 28 sec
    Trace Level               off
    Security                  ON: Local OS Authentication
    SNMP                      OFF
    Listener Parameter File   d:\app\DELL2\product\11.2.0\dbhome_1\network\admin\lis
    tener.ora
    Listener Log File         d:\app\dell2\diag\tnslsnr\DELL2-PC\listener\alert\log.
    xml
    Listening Endpoints Summary...
      (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
      (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
    Services Summary...
    Service "CLRExtProc" has 1 instance(s).
      Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    
    C:\Windows\system32>
    This is the 
    
    listener.ora  file 
    
    
    # listener.ora Network Configuration File: d:\app\DELL2\product\11.2.0\dbhome_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.
    
    SID_LIST_LISTENER =
      (SID_LIST =
        (SID_DESC =
          (SID_NAME = CLRExtProc)
          (ORACLE_HOME = d:\app\DELL2\product\11.2.0\dbhome_1)
          (PROGRAM = extproc)
          (ENVS = "EXTPROC_DLLS=ONLY:d:\app\DELL2\product\11.2.0\dbhome_1\bin\oraclr11.dll")
        )
      )
    
    LISTENER =
      (DESCRIPTION_LIST =
        (DESCRIPTION =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
          (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        )
      )
    
    ADR_BASE_LISTENER = d:\app\DELL2
    It's tnsnames.ora

    # tnsnames.ora Network Configuration File: d:\app\DELL2\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.
    
    ORACLR_CONNECTION_DATA =
      (DESCRIPTION =
        (ADDRESS_LIST =
          (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
        )
        (CONNECT_DATA =
          (SID = CLRExtProc)
          (PRESENTATION = RO)
        )
      )
    
    ORCL =
      (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = localhost)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
        )
      )

    Please try with it:

    ALTER system set local_listener ='(ADRESSE = (PROTOCOL=TCP) (HOST = hostname)(PORT=1521))';

    I recommend you to change the value "localhost" to the hostname of the server.
    Also try to ping the server name, example: ping serveroracle.com

    Once the execute the alter system command, try again, please I hope your comments.

    Published by: Francisco Riccio on 2013-ene-06 09:10

  • Throwing error of backing bean on click of a button?

    Hello world

    I have two 2 user lovs lovs must select at least one value from the lov and click on the search button.
    By clicking on search button im getting lov values if at least we're not selected I need to throw an error message.

    How can I throw error message?

    Thank you.

    You always go to the next page. You must return a null value when the condition fails.

    public String Find(){
    
    if(............) {
    //Show the message
    return null;
    }
    return "Find"; // to navigate to next page
    }
    

    Published by: Mohammad Jabr on 27 November 2012 14:34

  • Informatica workflow fails with the CWB0111 error

    My environment: Informatica 9.0.1, CAD build a 10.1.3.4.1. patch.20110427.0538 Build date: April 27, 2011 on Windows server, databases - iSeries V6R1. Informatica connects to the As / 400 using an ODBC DSN name.

    When executing multiple maps don't fail with the following error code
    Severity: ERROR
    Timestamp: 2011-08-15 18:39:44
    Node: node01_HSCUSCHLWS00112
    Thread: READER_1_1_1
    Process ID: 113076
    A message Code: RR_4035
    Message: SQL Error]
    FnName: Pick-[IBM] [I pilot Access ODBC System] column 16: CWB0111 - a buffer passed to a system call is too small to contain the data back
    FnName: Pick-[IBM] [I pilot Access ODBC System] data type string truncation on the right.
    FnName: Pick-[IBM] [I pilot Access ODBC System] column 16: CWB0111 - a buffer passed to a system call is too small to contain the data back
    FnName: Pick-[IBM] [I pilot Access ODBC System] data type string truncation on the right.
    FnName: Pick-[IBM] [I pilot Access ODBC System] column 16: CWB0111 - a buffer passed to a system call is too small to contain the data back
    FnName: Pick-[IBM] [I pilot Access ODBC System] data type string truncation on the right.

    I searched on the web and it seems that the Linux/Unix driver for iSeries has some problems with Unicode, but my environment is Windows only.

    Any suggestions are welcome. Thank you!

    Did you follow all of the steps in your DB system specific Installation Guide? In particular, what exact ODBC driver are you using? Also, has confirmed the connection via the Client configuration wizard? Also found the following problem on a possible bug to theis URL: http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14281148&tstart=0

    Hi all
    The problem is solved in half! This is a bug in the IBM driver.
    It's just exactly the same cause (locale) in the following thread:
    http://www.IBM.com/developerWorks/forums/thread.jspa?MessageID=14051384
    I think the problem is that the AS 400 (iSeries) responds with 30 characters and converted to UTF8 it is 31 bytes. This is a bug...
    If you want to ask more details, but in a nutshell, you need to assign some of your Linux/Unix environment variables what whatsoever NOT utf8!

    I hope this helps. If so, please check the response as helpful or appropriate.

  • How to replace the variable with the help OF the operator?

    Hello

    I'm creating a form where the user selects the check box which products he wants to see. After the choice, I should show all sales of this product, but the selection does not recognize the variable after the IN operator, for example:

    SELECT the product, price, quantity
    FROM the sale
    Product WHERE IN (vcProducts);

    Can someone help me?

    Cree

    I guess that vcProduct is a varchar2 variable where you have a chain of your prodids, as ' 4711,4712 concatinated, 4713'. May be you have each place value '. Is not the question, which is not part of the sql syntax set. You either have a list of enumeration or a subselect.

    Where do you need it? In the block or Pl/Sql where clause.
    In the latter case, you can configure the list in a variable (with enclosing "") and set the block where property.

    In the first of may by INSTR is useful, INSTR (vcProduct, vcDelim | table.prod_id | vcDelim) > 0. Make sure you have your list attached and separated by the vcDelim. If you prodct table with the number of lines (million), it can be slow because no index will be used.

    Dynamic sql or.
    Or write a subquery und temp-table.

Maybe you are looking for