DB Read error from UCCX Script

Hi All,
We are running uccx 7.0.
Trying to return data from DB using stored procedure from the uccx script.
We are able to run this when we pass explicit value instead of variable ANI.
But whenever we provide variable ANI, we get below
error: SQL statement varible not defined : ANI
Query which provided in the DB Read as below,
select * from  table(credit_back.fun_select_point($ANI));
Request your help on it..
Regards,
Shalid K.C

Yes Gergely.
we have created new script and when i add DB Read function in the script, it is not allow to apply it, same time it is giveing the above mentioned error.
but when i test it with explicite value it is working.. .not working by providing variable name
Regards,
Shalid

Similar Messages

  • Reading error from SD photo card on HP 2200

    I have a HP psc 2210xi printer and keep getting a reading error when I insert a SD photo card - 32GB.  I am trying to print off photo sheets from the card.  Please advise.  
    Thank you. 
    This question was solved.
    View Solution.

    I would guess that the card is too large (32GB) for the printer, or in the wrong format for the printer. This document may offer some help here:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c00059994&tmp_task=solveCategory&cc=us&dlc=en&lc...
    007OHMSS
    I was a support engineer for HP.
    If the advice resolved the situation, please mark it as a solution. Thank you.

  • I need to get error from sql script launched from class

    Hello.
    I need to run a bat file (windows xp) inside a PL/SQL procedure and I must check the codes returned by the command.
    I am trying with these files:
    comando.bat
    sqlplus -s fernando/sayaka@ferbd %1
    exit /Bkk.sql
    whenever sqlerror exit sql.sqlcode rollback
    declare
      v_res number;
    begin
      select 1
           into v_res
           from dual
       where 1=2;
    end;
    exit sql.sqlcodeEjecutarProcesoSOreturn.java
    import java.lang.Runtime; 
    import java.lang.Process; 
    import java.io.IOException; 
    import java.lang.InterruptedException;   
    public class EjecutarProcesoSOreturn
        public static int ejecuta(java.lang.String  arg0, java.lang.String arg1)
            java.lang.String[] args= new String[2];
            args[0]=arg0;
            args[1]=arg1;
            int ret = 0;
            System.out.println("En ejecuta");           
            try
                /* Se ejecta el comando utilizando el objeto Runtime
                y Process */               
                Process p = Runtime.getRuntime().exec(args);      
                try
                    /* Esperamos la finalizacion del proceso */                 
                    ret = p.waitFor(); 
                    //ret = p.exitValue();                
                catch (InterruptedException intexc)
                    System.out.println("Se ha interrumpido el waitFor: " +  intexc.getMessage());
                    ret = -1;            
                System.out.println("Codigo de retorno: "+ ret);    
            catch (IOException e)
               System.out.println("IO Exception de exec : " +               e.getMessage());              
               e.printStackTrace();          
               ret = -1;            
            finally
               return ret;
        public static void main(java.lang.String[] args)
            System.out.println("En main");  
            System.out.println("args[0] " + args[0]);           
            System.out.println("args[1] " + args[1]);   
            ejecuta(args[0], args[1]);
    }  When I launch the script from a console I get:
    D:\Ejercicios_Oracle\BATCH_SCRIPTS>comando.bat @kk.sql
    D:\Ejercicios_Oracle\BATCH_SCRIPTS>sqlplus -s fernando/sayaka@ferbd @kk.sql
    declare
    ERROR en lÝnea 1:
    ORA-01403: no se han encontrado datos
    ORA-06512: en lÝnea 4
    D:\Ejercicios_Oracle\BATCH_SCRIPTS>exit /BAnd if I check the errorlevel I get:
    D:\Ejercicios_Oracle\BATCH_SCRIPTS>echo %errorlevel%
    1403When I run it the class I get:
    D:\Ejercicios_Oracle\BATCH_SCRIPTS>java EjecutarProcesoSOreturn comando.bat @kk.sql
    En main
    args[0] comando.bat
    args[1] @kk.sql
    En ejecuta
    Codigo de retorno: 0And if I check the errorlevel I get:
    D:\Ejercicios_Oracle\BATCH_SCRIPTS>echo %errorlevel%
    0How can I get the code 1403 returned from the class?
    Thanks in advance.

    I am trying to extract the error code from the Process.getInputStream() but it seems as if I do not have some privileges.
    This is my class right now:
    import java.lang.Runtime; 
    import java.lang.Process; 
    import java.io.IOException; 
    import java.lang.InterruptedException;   
    import java.io.BufferedReader;
    import java.io.InputStreamReader;
    import java.io.InputStream;
    public class EjecutarProcesoSOreturn
        public static int ejecuta(java.lang.String  arg0, java.lang.String arg1)
            java.lang.String[] args= new String[2];
            args[0]=arg0;
            args[1]=arg1;
    int ret = -100;
            //System.out.println("En ejecuta");           
            try
                /* Se ejecuta el comando utilizando el objeto Runtime y Process */     
                Process p = Runtime.getRuntime().exec(args);      
    ret = -101;   
                try
                    /* Esperamos la finalizacion del proceso */                 
                    ret = p.waitFor(); 
                    //ret = p.exitValue();
                    InputStream bis = p.getInputStream();
                    InputStreamReader isr = new InputStreamReader(bis);
                    BufferedReader br = new BufferedReader(isr);
                    String line = null;
                    String msg = null;
                    String errCode = null;
                    boolean oraError = false;
    ret = -102;   
                    while ( (line = br.readLine()) != null)   
                      //System.out.println(line);
                      if ((line.length() >= 5) & (!oraError))
                        msg = line.substring(0,4); 
                        if (msg.equals("ORA-"))
                             oraError = true;
                             errCode = line.substring(4,9);
    ret = -103;   
                          //System.out.println(errCode);
                          ret = Integer.parseInt(errCode);;
                catch (InterruptedException intexc)
                    //System.out.println("Se ha interrumpido el waitFor: " +  intexc.getMessage());
                    ret = -1;            
            catch (IOException e)
               //System.out.println("IO Exception de exec : " +               e.getMessage());              
               //e.printStackTrace();          
               ret = -1;            
            catch (Exception e)
               //System.out.println("IO Exception de exec : " +               e.getMessage());              
               //e.printStackTrace();          
               ret = -104;            
            finally
               //ret = -100;   
               System.out.println("Codigo de retorno: "+ ret);
               return ret;
        public static void main(java.lang.String[] args)
            System.out.println("En main");  
            System.out.println("args[0] " + args[0]);           
            System.out.println("args[1] " + args[1]);   
            ejecuta(args[0], args[1]);
    }  And when I call the main method with these parameters then I get:
    D:\Ejercicios_Oracle\BATCH_SCRIPTS>java EjecutarProcesoSOreturn d:\comando.bat @d:\kk.sql
    En main
    args[0] d:\comando.bat
    args[1] @d:\kk.sql
    Codigo de retorno: 1403I have this pl/sql function:
    CREATE OR REPLACE FUNCTION FERNANDO.EjecutarProcesoSOreturn (param1 VARCHAR2, param2 VARCHAR2) return NUMBER
    AS LANGUAGE JAVA  name 'EjecutarProcesoSOreturn.ejecuta(java.lang.String, java.lang.String) return java.lang.int';I have granted some privileges to the user FERNANDO:
    begin
        dbms_java.grant_permission
        ('FERNANDO',
         'java.io.FilePermission',
         'd:\comando.bat',
         'execute');
        dbms_java.grant_permission
        ('FERNANDO',
         'java.lang.RuntimePermission',
         'writeFileDescriptor' );
        dbms_java.grant_permission
        ('FERNANDO',
         'java.lang.RuntimePermission',
         'readFileDescriptor' );
        dbms_java.grant_permission
        ('FERNANDO',                   
         'java.io.FilePermission',    
         'd:\*',               
         'read,write');
    end;
    /and when I try the function, I get:
    SQL> DECLARE
      2    RetVal NUMBER := 0;
      3    PARAM1 VARCHAR2(200);
      4    PARAM2 VARCHAR2(200);
      5 
      6  BEGIN
      7    PARAM1 := 'd:\comando.bat';
      8    PARAM2 := '@d:\kk.sql';
      9 
    10    RetVal := EJECUTARPROCESOSORETURN ( PARAM1, PARAM2 );
    11    dbms_output.put_line('RetVal: '||RetVal);
    12    --ROLLBACK;
    13  END;
    14  /
    RetVal: -102Could you please tell me what my problem is?

  • Error with UCCX scripting editor 8.02

    I have had this problem once before cant remember what I did to get around it.  I changed my compatiblity mode in CCX Editor but still wont let me open a script.
    "Failed to load script file"
    java.array.lang.indexoutofbounds exception3184

    you are able to confirm If opening CRS Editor first and open the script from the
    application do you still get the same error message?
    Did you try to open it on a different machine.
    I had seen a case where it was the PC issue and re-imaging the PC fixed it.

  • "Echo" error from deletion script.

    Hey forum!
    I've got this deletion script (attached) that's throw back
    this error:
    Error: Error #2101: The String passed to
    URLVariables.decode() must be a URL-encoded query string containing
    name/value pairs.
    at Error$/throwError()
    at flash.net::URLVariables/decode()
    at flash.net::URLVariables()
    at flash.net::URLLoader/onComplete()
    I don't understand what the problem is. When i look up that
    error i find that usually that error is called by bad echoes, but
    my script doesn't have any. Any help or tips is appreciated!
    Thanks,
    John

    By the way, the script is working as intended.
    Thanks again

  • Unable to Print From from Web-Based Sites, Error Occurred in script.

    When I try to print, I keep getting an error from a script running too long when I try to print anything web-based. I can print documents on my computer wirelessly, but not web-based (i.e.., financial statements). What is causing these errors from web sites? It is frustrating continually getting an error message. I have an HP 65000A Plus wireless CN557A#B1H, all in one printer and using Windows Vista Home edition operating system.
    When I hit print, an error message comes up saying;
    "An error has occurred in the script on this page"
    Line:2053
    Error: Invalid procedure call or argument
    At the bottom, it asks " do you want to continue running scripts on this page?".
    Any help would be appreciated. As mentioned, it is very frustrating.

    I have the same exact problem as SandyStill. It tries to print, ejects plain paper and nothing pending in the printer. I am running a Dell XP Pro, Adobe Reader 8.1.2, RAM-1G, and an HPDJ 6940 printer. Tried tech support with HP to no avail because everything else prints fine.
    I've even tried some of the suggestions of another thread using the Microsoft Utility to remove Adobe and then download it again with no success.
    Does anyone have a solution?

  • Error 1048 Matlab Script depends on string length

    Using: Labview 8.2, Matlab 2007a, Windows XP (AMD X2 4200+ 3GB RAM).
    I'm having an issue with MATLAB script server, Error 1048 failed to get variable from script server.  I've read the forums, but most posts are years old and don't address variable size issues.  I have no problem with these strings inside the MATLAB command window.  I'm somewhat inexperienced with LabView, so maybe this VI could have been simplified.
    I'm writing data files with a tab header, using MATLAB to perform some operations on data (I have a library written to do certain things and can't really spend the time to recode in Labview).  When I try to pass out the new header string, I get error 1048 only when the string length goes above a certain size range.  I have iterations because I want to process hundreds of files in a similar fashion to this VI.
    Header length ~ 1300 chars has always been fine, regardless of number of iterations within the VI.
    Header length ~ 2600 chars presents some errors; not deterministic.
    Header length ~ 5200 chars has many errors; not deterministic.
    Header length ~ 7800 chars has many errors, fails almost all the time.
    Also, timing delay after reading in the file seemed to do nothing to help.  Pausing at the end of the MATLAB script did not seem to help. Clearing MATLAB/restarting LabView did not seem to help.  Is there a way to catch variable-specific errors from the script window?  Notice that the output variable is not cleared when it fails to be obtained from the MATLAB window.  I could wrap the whole thing in a while loop until there are no errors, but that doesn't help when the length is so large none of them succeed.   I can split the string inside matlab, but I'd have to create n strings and then concatenate them outside, which still gives me a lack of scalability.  Is there any better way to handle this kind of non-deterministic error?
    Thanks very much for reading.
    Attachments:
    header6001.txt ‏8 KB
    Matlab Script Server Test1.vi ‏38 KB
    header1001.txt ‏2 KB

    Does NI monitor these forums for bug reports to fix?  Here's a non-scalable hack solution I mentioned earlier, creating n string outputs and concatenating them in Labview.  I've checked this in Matlab using the code below.  I've included the VI if anyone has the same issue and wants it.
    Note that I chose to throw the size error if the string is too large for the n you choose.  I prefer this to trying to check the string output to see if it was truncated.
    hcols = size(hstring,2);
    for k = 1:8
        hvar = strcat('h', sprintf('%d',k));
        if( hcols >  k*1000 & k < 8 )
            hcom = sprintf('%s = ''%s'';', hvar, hstring(1, ((k-1)*1000+1):k*1000 ));
        %if size < k*1000, or we're at the end with leftovers, copy what's left
        elseif( hcols >= (k-1)*1000+1  &  (hcols <= k*1000 | k == 8 ))
            hcom = sprintf('%s = ''%s'';', hvar, hstring(1, ((k-1)*1000+1):end));
        else
            hcom = sprintf('%s = '''';', hvar);
        end  
        eval(hcom);
    end
    %Matlab validation code.  Do not use strcat, as it will chop tabs at the endpoints.
    newh = sprintf('%s%s%s%s%s%s%s%s', h1, h2, h3, h4, h5, h6, h7, h8);
    strcmp(hstring, newh)
    Attachments:
    Matlab Script Server Test2.vi ‏40 KB

  • Error reading data from Infocube using shell script.

    Dear all ,
    I am facing a problem while reading data from an infocube using a shell script.
    The details are as follows.
    One of the shell script reads the data from the infocube to extract files with the values.
    The tables used for extraction by the shell script are :
    from   SAPR3."/BIC/F&PAR_CUBE.COPA"     FCOPA,
           SAPR3."/BIC/D&PAR_CUBE.COPAU"    COPAU,
           SAPR3."/BIC/D&PAR_CUBE.COPAP"    COPAP,
           SAPR3."/BIC/D&PAR_CUBE.COPA1"    CCPROD,
           SAPR3."/BIC/D&PAR_CUBE.COPA2"    CCCUST,
           SAPR3."/BIC/D&PAR_CUBE.COPA3"    COPA3,
           SAPR3."/BIC/D&PAR_CUBE.COPA4"    COPA4,
           SAPR3."/BIC/D&PAR_CUBE.COPA5"    COPA5,
           SAPR3."/BIC/MCCPROD"      MCCPROD,
           SAPR3."/BIC/SCCPROD"      SCCPROD,
           SAPR3."/BIC/MCCCUSTOM"    MCCCUSTOM,
           SAPR3."/BIC/SCCCUSTOM"    SCCCUSTOM,
           SAPR3."/BIC/SORGUNIT"     SORGUNIT,
           SAPR3."/BIC/SUNIMOYEAR"   SUNIMOYEAR,
    /*     SAPR3."/BI0/SFISCPER"     SFISCPER, */
           SAPR3."/BI0/SREQUID"      SREQUID,
           SAPR3."/BI0/SCURRENCY"    SCURRENCY,
           SAPR3."/BIC/SSCENARIO"    SSCENARIO,
           SAPR3."/BIC/SSOURCE"      SSOURCE
    The problem is that the file generation by this script (after reading the data from teh infocube) is taking an unexpected time of 2 hours which needs to be maximum 10 mins only.
    I used RSRV to get the info about these tables for the infocube:
    Entry '00046174', SID = 37 in SID table is missing in master data table /BIC/MCUSLEVEL2
    Entry '00081450', SID = 38 in SID table is missing in master data table /BIC/MCUSLEVEL2
    and so on for SID = 39  and SID = 35 .
    Checking of SID table /BIC/SCUSLEVEL2 produced errors
    Checking of SID table /BIC/SCUSLEVEL3 produced errors
    Can you please let me know if this can be a reason of delay in file generation (or reading of data from the infocube).
    Also , Please let me know how to proceed with this issue.
    Kindly let me know for more information, if required.
    Thanks in advance for your help.
    -Shalabh

    Hi ,
    In continuation with searching the solution to the problem , I could manage to note a difference in the partition of the Fact table of the infocube.
    Using SE14 -> Storage Parameters, I could find the partition done for the fact table as :
    PARTITION BY: RANGE
    COLUMN_LIST: KEY_ABACOPA
    and subsequently there are partitions with data in it.
    I need to understand the details of these partitions .
    Do they correspond to each requests in the infocube(which may not be possible as there are 13 requests in infocube and much more partitions).
    Most importantly, since this partition is observed for this onfocube only and not for other infocubes, it is possible that it can be a reason for SLOW RETRIEVAL of data from this ionfocube( not sure since the partition is used to help in fast retreival of data from the infocubes).
    Kindly help.
    Thanks for your co-operation in advance.
    -Shalabh

  • Pb with script from uccx 7 to uccx 9

    Hello
    i have script that work fine on uccx 7 . when i wan't to use it on UCCX 9 i have error when script use call subflow. 
    subflow_test is on repository\default
    do you some answer
    thanks         

    Hi Jerome,
    Erase the subflow name completely. click on the button right to the down arrow with ... (dots), find you script from the script tab, through the script repository, this will automatically paste the script with the correct path.
    Also, open the both the scripts one that has the subflow and the script named "subflow_test" and validate both of them.
    Let me know if you need further help on this.
    Regards,
    Chuck
    Please rate helpful posts and identify correct answers.

  • Reading Data from a flat file in UCCX

    We have UCCX 7.0 and I need to do a lookup on a flat file or cvs file from a script.
    Can that be done or does it have to be from a database?

    Anything's possible if you want to write a custom Java class that parses the file. Out of the box you need to use XML and XPath or an ODBC connection though.

  • Export with Table Splitting : ORA-01115: IO error reading block from file

    Hello,
    We are in perfroming the last dryrun of our CU&UC conversion.
    The are now in the process of exporting the ECC6 system (Oracle 10.2.0.4.0, HPUX ia64) using sapinst features, "table splitting preparation"
    When doing so, we are facing critical errors :
    Creating file /export_uni/sapinst_splitting/ora_query3_tmp3_1.sql.
    ERROR 2010-08-11 10:27:28.881
    CJS-00084  SQL statement or script failed. DIAGNOSIS: Error message: ORA-12801: error signaled in parallel query server P002
    ORA-01115: IO error reading block from file 90 (block # 16640)
    ORA-27072: File I/O error
    HPUX-ia64 Error: 22: Invalid argument
    Additional information: 4
    Additional information: 16640
    Additional information: -1
    ORA-01115: IO error reading block from file 90 (block # 16640)
    ORA-27072: File I/O error
    HPUX-ia64 Error: 22: Invalid argument
    ORA-06512: at "SAPR3.TABLE_SPLITTER", line 775
    ORA-06512: at line 1
    I have therefore perfmed a dbverify ; no corruption has been recorded.
    When trying to perfrom the EXPORT, without table splitting ; it works fine ...but the processing time is extremely long, as you can imagine. Any help would be highly appreciated.Regards.
    Raoul

    Thank you Stefan,
    Our HPUX Release seems to be indeed 11v3,
    [root@:/root]# uname -a
    HP-UX B.11.31 U ia64 2566039091 unlimited-user license
    I'll check the installation of the  patch and keep you informed
    Thank you
    Raoul
    Edited by: Raoul Shiro on Aug 11, 2010 11:57 AM

  • Unresponsive script error from "chrome://browser/content/browser.js:5582"

    I always get a unresponsive script error from chrome://browser/content/browser.js:5582 . If I uninstall and reinstall firefox, It'll stop for awhile. My os is ubuntu 10.04 64 bit.
    == User Agent ==
    Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.38 Safari/533.4

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Query AD from a UCCX script

    Does anyone know how to query Active Directory from a UCCX script?  Looking to pull the caller's email field from the ANI.

    Hi
    You can do this, but it's not so simple. Two options:
    1) Create a custom java class to read LDAP and return the info you require
    2) Implement a middleware web server that you can call from UCCX, that would take ANI as a parameter and return the email address.
    I've done 1) before, or something very similar...
    Aaron

  • IPhone Error on startup "Script error from content provider"

    When I turn on my iPhone (and when reboot) my iPhone goes black and it says "Script error from content provider". This is a brand new iPhone that Apple gave me today as a replacement of my old one. What's wrong with it? I've done all updates.
    This is an image of what I got
    Thank you

    Took my iphone 4 back to Apple this AM. They removed the sim card and tried it in 3 diffrent phones and the error occured on all the phones. Then they tried a sim from Rogers and the error did not occure.
    Apple gave me a new sim and i came home and activated the new sim  Still had the same error.
    Spoke to Telus tech support. After a long conversation they finally advised me that is a network problem and not a problem with the iPhone. They are working to resolve it.  I was told it was top priority as it was affecting a large number of customers country wide. They have no idea how long it will be.
    It seems to be only happening on Telus network.
    All we can do now is wait.
    At least we know it is not the iPhone.

  • Error in read value from structure

    hi gurus,
    the structure does not contain any data.... so i have 2 problem related to it.
    1. do i apply the select query nd write statement on structure rf05l. i apply it gives error that rf05l is not the table.....
    2. so what is the use of include structure in report, why we used it nd what is the procedure to read data from structure.
    types : BEGIN OF t_rf05l.
    include structure rf05l.
    types : END OF t_rf05l.
    DATA : it_rf05l TYPE STANDARD TABLE OF t_rf05l WITH HEADER LINE,
    wa_it_rf05l TYPE t_rf05l.
    select * from rf05l into it_rf05l.
    append it_rf05l.
    write :......
    reply me soon....
    thanx
    manish sharma.

    Hi
    select * from rf05l into it_rf05l.
    append it_rf05l.
    write :......
    Do this:
    select * from rt05l
    into corresponding fields of table it_r05l.
    loop at it_ro5l into wa_it_rf05l.
    write....
    endloop.
    include structure rf05l. mens you are including all the fields of that Database table into itab or your structure. its does not mean that rt05l can be used as ITAB.
    Regards
    Aditya

Maybe you are looking for

  • Crystal Report 2008 V12 and  Crystal Report in VS2008 problem

    I have made Crystal report Application using VS2008 Since it has Crystal Report V 10.5 it is raising error as For SAP CR2008 V12 See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. Exception Te

  • Looking for a swing component

    Hi, I m looking for a component which resembles to calender. I want date as input from user. Can anybody help in my search. - Pravin

  • What is 'Growl' and why do I need it?

    My system keeps telling me to install GROWL. What is it and why do I need it? Harold

  • How can i get Illustrator 10 SDK?

    I want to develop plug in module in 10 version. but i can find only cs2 and cs1 illustraotr SDK in web site. How can I get Illustrator 10 SDK and materials? Please tell me how i can get thosed. Thank you. Any advice would be greatly appreciated! Sorr

  • [SOLVED] How to patch package build (uzbl-git)

    Hello, I am experiencing a similar issue while building uzbl-git as reported here in the last few posts https://aur.archlinux.org/packages.php? - 2&detail=1 When running "makepkg -s", I receive the following error: creating /usr/lib/python3.2/site-pa