UCCX 9.0.2 - Agent state problems when Default script is execute

Hello,
I need some help on that problem.
I created a special script I want to use as the default script in my application. When I use this special script as the main script, everything is fine.
But when I use this special script as the "default script" in my application, desabled the main script to force my special script to be executed, I have problems with the agent's states.
--> When my agent receives the call from UCCX,  he becomes in reserved state but when he answers the call, instead of going in talking state, it goes to available state.  The UCCX do not further monitor the call.  The only way to hang up the call is with the telephone. 
Thanks,

The default scripts are not meant to be used as call routing scripts.  The intention is to allow you to gracefully bow out of the call, with a customized and friendly error message, versus the default Cisco message.
NoteRemember that the purpose of the default script is to gracefully terminate the call when the main script fails, not to have a fall back to provide the original services intended by the primary script. This distinction is important because using system resources to execute this default script may impair system performance. If the primary script fails too often, then you should fix the primary script rather than providing another script to attempt the same task.
Source: UCCX Getting Started with Scripts, Chapter 5 - Advanced Scripting Techniques, Section Advanced Error Handling, Subsection Using Default Scripts
Good Example
StartAccept (--Triggering Contact--)Play Prompt (--Triggering Contact--, P[whoops.wav] + DP[3000])Terminate (--Triggering Contact--)End
EDIT: August 1, 2013 - I just learned a new trick.  If you need to only play a single prompt as your default script, as in the above "good example", then UCCX has a way to do this without creating a new default script, and setting it on every single application.  You upload your prompt to the repository with the filename: "unrecov_error.wav".  You can even have one per language!  That's pretty cool!
Bad Example
StartAccept (--Triggering Contact--)...greeting......check for holidays......check business hours......deliver main menu of 7 choices......ask caller for account number......perform DB lookup on account number......check agents logged in......select resource......queue the caller for 5 minutes......route call to agent...End
I'm not saying this is why you are seeing the weird behavior, I'm just trying to inform you that you shouldn't be routing calls to Agents in your default script.
Anthony Holloway
Please use the star ratings to help drive great content to the top of searches.

Similar Messages

  • Problem when defaulting a value to the field

    Hi CRM Experts,
    I am new to CRM, i am facing a problem when defaulting a value to the field in the Tcode 'SOLMAN_WORKCENTER' (Solution Manager Server).
    when i am defaulting it is displaying fine in the view( Redefined the getter method there i passed the value), i set a break point in the getter method when i am executing the getter method i am unable to get the defaulted value in the importing parameter value, but i am getting the value here when i used to type manually in the filed, i cant understand why it is behaving like that? please can any body help in this regard...
    Thanks in advance
    Hari..

    There are other ways to get the string-value of an enum (format into string with a %s formatter for instance).
    But I have no idea what you are seeing.
    However I would not use the enum to string technique chose you have, just add the enum to the 'file' VI as an input.
    And the =0 comparison you have is useless, add the enum to the case structure as the selector.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • UCCX 10.5 / Finesse - agent state error

    Hi,
    I am curently testing UCCX 10.5 and finesse agent desktop I have a trouble with finesse :
    A agent is in READY state, when a call is comming, the state change to NOT READY, it should be TALKING
    In the Agent state log is see NOT READY -> Reason code 32761, in the documentation I reed "Agent is logged in to the desktop or IP phone and receives a call that is not queued on the Unified CCX platform." 
    The caller is effectively an internal phone but the composed number is the CTI route point of the UCCX
    I have check with "Reactive script" function of the CCX Editor, there is not any error, the call goes well through the script
    Any idea ?
    Hugo Chevalier

    Hi,
    I test using the "select ressource" box, that way I am using a CSQ and it's works. Before, I was just testing with a "Redirect call" box and that is not the right solution.
    Thank you
    H.C

  • Strange problem when running scripts via packages

    Hi there,
    I am having problems with a really wierd issue, and I'm just wondering if anyone else is seeing the same thing.
    I have a simple script which copies some data around with the same application, and it runs perfectly when run from the script debugger. But when I try and run it from a package, no matter what path I add into the "MODIFYSCRIPT" variable, the package keeps trying to run DEFAULT logic.
    This is from my Formula log after the package has run (and failed, as I temporarily renamed DEFAULT.lgf):
    Logic File:E:\BPC\Data\WebFolders\<appset>\Adminapp\work_Force\CopyCatWORKFORCE.lgf
    (this is the correct path to my logic file)
    But then further down I get an error:
    missing file:E:\BPC\DATA\WebFolders\<appset>\AdminApp\work_Force\DEFAULT.LGX
    I'm not trying to run default logic, and this doesn't appear in my CopyCatWorkforce.lgf script as an *INCLUDE either.
    I have tried to create a brand new package file in BIDS, but for some reason it STILL looks for default even though I haven't told it to!
    Any ideas? I'm stumped on this one!
    Thanks,
    Jason

    OK, so I have just realised I didn't have the LOGICMODE=1 flag in my MODIFYSCRIPT, which I've now added!
    Solved this issue, but now created another one... closing this and will post a new question later...

  • Problems when I have tried execute two consecutive selects

    Hi,
    I am trying to execute two consecutive selects, when the second sql has been executed, it response "Operation failure of ado2xfa. Imposible find the element in the colection that corresponds with the name" (I have translated the message).
    The error happens when I execute the second DB.open
    In the data conection I have selected "text" in the commandType with "select * from t1"
    First I tried to execute both sqls but, if I try to execute just the "select * from t2" in the first sql command I obtain the same error.
    In the data view I have just one db connection linked with table T1, do I need to create one db connection per table?
    For example if I want to connect with 6 different tables I will need 6 different DB connection objects.
    Somebody know what is the problem?
    Thanks
    Rubén
    var DB;
    var record;
    var i;
    DB = xfa.sourceSet.Oracle
    record = xfa.record.Oracle
    try {
    DB.close();
    } catch (e) {}
    DB.resolveNode("#command").query.select.value = 'Select * from T1';
    DB.open();
    DB.first();
    for (i=0;i <= record.nodes.length;i++)
    console.println(record.nodes.item(0).value);
    DB.next();
    DB.close();
    DB.resolveNode("#command").query.select.value = 'Select * from T2';
    DB.open(); <--------LINE THAT PRODUCE THE ERROR---------

    It's because the data connection has been set up to expect the fields returned from T1. When you query T2 different fields are returned and it doesn't know what to do with them so it throws an error. You would need to 2 data connections, 1 for T1 and 1 for T2.
    Chris
    Adobe Enterprise Developer Support

  • Problem when calling script in different languages..

    Hi,
                I copied F150_DUNN_01 standard sap script to ZDUNN in all 12 languages. And after that i changed the original language from DE to EN. Made some changes. When I am executing the transaction F150 it is calling the ZDUNN. The standard program is calling the script based on language. the language is not Login  language, it is picking language from customer master. When the customer language is EN, am seeing the changes. When the languages is HU am not seeing the changes. Later i came to know that it is calling the same form in HU language, then i change the same ZDUNN form by loging in HU. And now If HU also the changes are coming. 
                 I copied the form in all 12 languages, and same name. When i change anything in EN its not reflecting in another language.  So as per my requirement I changed in EN and HU. Now if the customer languages is not EN or HU, i want the form default in HU. Say if customer languages is RU, the print program is picking RU form, no changes in that. What will happen if delete the form in RU, what the print program will do?? will it pick default language or through any error??  Please tell me about this? And do you know how to copy standard script in only 3 languages in ECC 6.0???

    Hi ,
    If the form is not available it will cause shortdump (Ex: /E 143  Element  is not Found )
    When your creating or changing the form in the 
    Administrative tab you will find the  Language attributes   Translate into all languages  &  To Individual Languages & Do not translate  Go through that  
    You will find the lots of forums on  this 
    Hope you will resolve your issue 
    Let me know if any concerns.....

  • Have problem when using EXECUTE IMMEDIATE.

    Hi, i'm new here... i having problem when trying to use execute immediate statement... :(
    procedure code as below:
    create procedure copy_row(
    p_table varchar2,
    p_key varchar2,
    p_keyval varchar2,
    p_user varchar2,
    p_frmto varchar2 default 'FROM')
    IS
    V_SQL VARCHAR2(500);
    BEGIN
    if upper(p_frmto)='FROM' then
    V_SQL:='INSERT INTO '||P_TABLE||
    ' SELECT * FROM '||P_USER||'.'||P_TABLE||' WHERE '||P_KEY||' = '''||P_KEYVAL||'''';
    elsif upper(p_frmto)='TO' then
    V_SQL:='INSERT INTO '||P_USER||'.'||P_TABLE||
    ' SELECT * FROM '||P_TABLE||' WHERE '||P_KEY||' = '''||P_KEYVAL||'''';
    end if;
    EXECUTE IMMEDIATE V_SQL;
    exception
    when others then
    raise_application_error(-20000,'PROCEDURE: COPY_ROW - UNABLE TO COPY ROWS! SQL='||V_SQL,TRUE);
    end;
    is there any limitation on using EXECUTE IMMEDIATE command? i need to use procedure because i'm using old form builder.... but the database server was 9i which able to use this command, so... i decide to use procedure....
    i've done some testing on this.... assume the structure of schema1.table1 and schema2.table1 are same....
    SQL> CREATE PROCEDURE TESTING IS
    2 BEGIN
    3 exeCute IMMEDIATE 'INSERT INTO schema1.table1 SELECT * FROM schema2.table1 WHERE column1 = ''abc''';
    4 END;
    5 /
    Procedure created.
    SQL> BEGIN
    2 TESTING;
    3 END;
    4 /
    BEGIN
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "SCHEMA1.TESTING", line 3
    ORA-06512: at line 2
    any idea?? or have better solution other than this?
    database server:9i
    sqlplus:SQL*Plus: Release 8.0.6.0.0

    Do you have an access to tables you are going to insert into / select from ?
    Dynamic SQL checks the access permissions at runtime, not at the compilation stage:
    SQL> create user master identified by master default tablespace users temporary
      2  tablespace temp;
    User created.
    SQL> alter user master quota unlimited on users;
    User altered.
    SQL> grant create session to master;
    Grant succeeded.
    SQL> grant create table to master;
    Grant succeeded.
    SQL> grant create procedure to master;
    Grant succeeded.
    SQL> conn master/master
    Connected.
    SQL> create procedure wrong_prc
      2  is
      3  begin
      4   execute immediate 'insert into master.t select * from scott.t';
      5  end;
      6  /
    Procedure created.
    SQL> create table t (id number);
    Table created.
    SQL> exec wrong_prc;
    BEGIN wrong_prc; END;
    ERROR at line 1:
    ORA-00942: table or view does not exist
    ORA-06512: at "MASTER.WRONG_PRC", line 4
    ORA-06512: at line 1
    SQL> conn scott/tiger
    Connected.
    SQL> grant select on t to master;
    Grant succeeded.
    SQL> conn master/master
    Connected.
    SQL> exec wrong_prc;
    PL/SQL procedure successfully completed.
    SQL> select * from t;
            ID
             1And don't use literals in dynamic SQL - you should use binding variables instead.
    Rgds.

  • Problem saving SQL Scripts

    Has anyone has this problem:
    1) I log onto my database (Oracle XE 10.2.0).
    2) I open a SQL Script that I previously created and saved. The script is about 1700 bytes.
    3) I edit the script. I run the script. I click "Edit Script" button on results screen.
    4) Everything is fine.
    5) I repeat these steps (1-4) 10 or 20 times and then all of a sudden all edits to my script stop saving.
    A) When I run the script without explicitly saving the script, it runs the unedited version of the script.
    B) When I explicitly save the script, the edits do not save.
    C) If I log off the database and back on again, the effects are the same (beginning here with "5)" from the get-go).
    D) I I log off the database, shut down IE 7.0, reboot IE, log back on to the database I begin here at "5)" again.
    E) I mark all my script and copy it to clipboard. I replace script with 3 bytes: "aaa". I click "Save". The three bytes save.
    F) I replace the 3 bytes with my original 1700 bytes of code. The 1700 bytes do not save; only the three bytes remain.
    6) In summary, I would ask, "Is there a size limit to the amount of SQL script you can save using this application?". However, the problem with this question is that everything worked fine for me for one and one-half hours of using the app.
    I will go now to reboot my machine to see if that resolves it.
    I will report back here with the results of that experiment.
    Anybody has any insight, I would be grateful 'cause this is frustrating!!
    Thank you,
    Mike Kemp
    St. Petersburg, FL

    OK problem started right off the bat today.
    But then again the computer had been up and running overnight, multiple users during that time, etc.
    So I rebooted.
    Script is up to 2120 bytes now.
    Problem was not resoved by reboot.
    No matter what I do I can't edit my script and have it save (I edit it, copy and paste to Notepad and move back and forth as needed ... however problem is that when I click "Run" it never recognizes the new script; it always runs the old one).
    Let me take my 2120-byte script and paste it into a brand-new Script Editor window and see if it will run from there (thinking that maybe this Apex thing just can't run long scripts at all)....
    OK that works!!
    Hmmmm...so looks to me like Apex Script Editor can't edit long scripts (I started running into problems when my script exceeded 1700 bytes).
    I'll keep posting back here in case somebody big in Oracle Apex World (I just heard Tom Kyte talking about the guy who created Apex ... can't remember his name now) cares.
    I know, I know they'll probably tell me it's user error :-)
    -Mike

  • UCCX - Changing agent states in scripts

    Hi all,
    I would like to chagne the state of my agent from reserved to ready inside a script. One of the steps in the script doesn't connect the contact to the agent (which is OK because some contacts have dedicated agents and not any agent can take the call), but after the step, which checks if the choosen agent is the dedicated agent, doesn't connect the call, the choosen agent becomes reserved until the contact hangs up. Is there a way to change the state of the choosen agent from reserved to ready inside the script or to not set the agents state to reserved if the call won't be connected? As far as I can see, Set User Info doesn't help me with my problem.
    Thank you,
    Ivana

    Thanks for replying back and keeping this alive.  You definitely have a common scenario where you are both:
    A) Classifying your callers into prioritized groups
    B) Assigning a preferred Agent to the each caller
    Fortunately, UCCX does natively support assigning priorities to callers, but I don't see in your explanation where you are/would be using this feature.
    Unfortunately, UCCX does not natively support queuing to individual Agents.  Which is why your current script is retrying the Agent every second in what I presume is a Goto/Label loop using the Select Resource step.  One thing the community does to work around this is to create a CSQ for each of your VIP Agents, and assign a skill/resource group to a single Agent such that only they can service that CSQ.
    E.g.,
    Agent: Anthony Holloway
    Resource Group: vip_avholloway_rg
    CSQ: vip_avholloway_csq
    Now, inside your script you can actually queue to an Agent individually.  The down side is that you now need to burn a CSQ for each Agent, and UCCX does have a limit to how many CSQ's it will safely support. (See SRND or Datasheet for limits)
    In short, you wont' beable to solve your problem with forcing Agent states out of Reserved.  You will need to approach the solution differently.  Do you happen to have the complete business logic written out, and could you share it here for our review and subsequent solution recommendation?
    Anthony Holloway
    Please use the star ratings to help drive great content to the top of searches.

  • Statement terminator problems when exporting data with SQL Developer 3.2

    I've ran across what appears to be a bug with SQL Developer 3.2.20.09. If someone can let me know if this is indeed a bug, or just something I need to configure differently, please let me know.
    The problem is related to exporting a database as a SQL script, and terminator characters at the end of "create" statements, especially when columns have comments, and problems that occur when using SQLPlus to run the export script to create the tables. With the old SQL Developer 1.5.4, with the "Terminator" and "Pretty Print" options checked, statements like the following are generated:
    -- DDL for Type NUM_ARRAY
    CREATE OR REPLACE TYPE "NUM_ARRAY"
    IS TABLE OF NUMBER(20)
    -- DDL for Sequence MYTABLE_SEQ
    CREATE SEQUENCE "MYTABLE_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE ;
    -- DDL for Table MYTABLE
    CREATE TABLE "MYTABLE"
    (     "MYTABLE_ID" NUMBER,
         "COL2" NUMBER,
         "COL3" NUMBER
    -- DDL for Table ANOTHERTABLE
    CREATE TABLE "ANOTHERTABLE"
    (     "ANOTHERTABLE_ID" NUMBER,
         "COL2" VARCHAR2(1024),
         "COL3" VARCHAR2(1024)
    COMMENT ON COLUMN "ANOTHERTABLE"."ANOTHERTABLE_ID" IS 'This is a comment.';
    When I then run the script using SQLPlus, everything works fine. However, with SQL Developer 3.2.20.09, with the same options enabled, the same statements are generated like this:
    -- DDL for Type NUM_ARRAY
    CREATE OR REPLACE TYPE "NUM_ARRAY"
    IS TABLE OF NUMBER(20)
    -- DDL for Sequence MYTABLE_SEQ
    CREATE SEQUENCE "MYTABLE_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE ;
    -- DDL for Table MYTABLE
    CREATE TABLE "MYTABLE"
    (     "MYTABLE_ID" NUMBER,
         "COL2" NUMBER,
         "COL3" NUMBER
    -- DDL for Table ANOTHERTABLE
    CREATE TABLE "ANOTHERTABLE"
    (     "ANOTHERTABLE_ID" NUMBER,
         "COL2" VARCHAR2(1024),
         "COL3" VARCHAR2(1024)
    COMMENT ON COLUMN "ANOTHERTABLE"."ANOTHERTABLE_ID" IS 'This is a comment.';
    Notice all of the extra slashes in there. If a slash is not used as a statement terminator, SQLPlus treats slashes as a command to repeat the last SQL statement, which causes many errors about tables or sequences already existing. So, I tried removing the "Terminator" flag from the export options. This lead to statements that looked a bit more promising:
    -- DDL for Type NUM_ARRAY
    CREATE OR REPLACE TYPE "NUM_ARRAY"
    IS TABLE OF NUMBER(20)
    -- DDL for Sequence MYTABLE_SEQ
    CREATE SEQUENCE "MYTABLE_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE
    -- DDL for Table MYTABLE
    CREATE TABLE "MYTABLE"
    (     "MYTABLE_ID" NUMBER,
         "COL2" NUMBER,
         "COL3" NUMBER
    -- DDL for Table ANOTHERTABLE
    CREATE TABLE "ANOTHERTABLE"
    (     "ANOTHERTABLE_ID" NUMBER,
         "COL2" VARCHAR2(1024),
         "COL3" VARCHAR2(1024)
    COMMENT ON COLUMN "ANOTHERTABLE"."ANOTHERTABLE_ID" IS 'This is a comment.'
    The big problem, though, is in the statement for the table with a comment. Notice that there are two statements, but there is not a semicolon after either of them. This unfortunately causes the "COMMENT" statement to be appended to the "CREATE TABLE" statement before being executed, which causes the table to not be created (which causes even more errors later on when the script attempts to populate the table with data).
    So, it would appear that this is a bug, but I'm not sure. Is there a way I can configure the export options to make SQL Developer export these statements like it used to in older versions?
    Thanks,
    -Bill

    >
    So, it would appear that this is a bug, but I'm not sure.
    >
    That would be a bug. Thanks for reporting it and providing the detailed example.
    >
    Is there a way I can configure the export options to make SQL Developer export these statements like it used to in older versions?
    >
    No.
    Leave the thread open. One of the developers for sql developer should be monitoring the forum and can provide more information.

  • Weird problem when executing an update statement

    Please help me out with this issue. This a very weird problem i'm facing while executing the following update statement.
    update tblo.S_TABLE c
    SET (ACCNT_NAME, ACCNT_LOC)
    =
    (select NAME, LOC from S_TABLE1 p
    where p.ROW_ID = c.ACCNT_ID)
    where ROW_ID = 'XXXXX'
    The statement executes perfectly fine in "SQL Plus" but when i try from my application or any SQL Tool that uses ODBC, it fails with the following error
    <eb1>ORA-00923: FROM keyword not found where expected
    State:S1000,Native:923,Origin:[Oracle][ODBC][Ora]</eb1>
    ODBC Driver Used: 9.2.0.2.0

    Yes this could most probably be resolved by upgrading the driver. I'hv tried MS Oracle ODBC driver but that is even more problematic!
    The applications works fine in another environment which uses a Merant ODBC driver. Thanks for your time and advice.

  • HT4623 I am unable to switch on my IPad as it states that 'iPad is disabled'.  How do i fix this problem when I have no access to the iPad?  Any help or advice will be gratefully received.

    I am unable to switch on my IPad as it states that 'iPad is disabled'.  How do I fix this problem when I have no access to the iPad?  Any help or advice will be gratefully received.

    Forgotten Passcode or device disabled after entering wrong passcode

  • HAVE A PROBLEM WHEN SENDING AN EMAIL IT STATES IT DOES NOT ALLOW RELAYING

    HAVE A PROBLEM WHEN SENDING AN EMAIL IT STATES IT DOES NOT ALLOW RELAYING

    You have either entered the wrong SMTP server info or they have blocked the sending of e-mails from outside their network. That message indicates that you are not permitted to send through that server from the network you are using to connect.
    Contact them again. There is no magic that will allow you to bypass this.

  • UCCX Agent State

    Hey,
    I found a topic that kind of covers what i am after, but i feel that i need some more input.
    https://supportforums.cisco.com/thread/272586
    Thought:
    My desire is to build a silly http triggered application that returns the state of the agent to CAD via a browser window in a simplified manner.
    In short i want to do it this way.
    Script Outlines:
    Start
    **Missing peice**
    Get Reporting Statistics -> Resource IPCC Express -> State
    if State variable = "Not ready" || "Not logged in"
    --true
    ----Set State Returnvalue = "Warning !"
    --false
    ----- Set State Returnvalue = "OK !"
    Then make a keyword transform to a HTML document with the Returnvalue.
    Then a Send http Response.
    End
    Conclusion:
    As the thread above implies to be able to pull the actual state of an agent we first need to know the agentID.
    I have some thoughts around this but my question is really what options do we have to retrive an agents userid from a http triggered session?
    Regards,

    To bump this thread up and to add a final comment i will present my thoughts.
    The way i was thinking about solving this would be to request the user to input their agent id via the web-interface and work with sessions to keep that data in temporary memory when later figuring out the agent state.
    It would have been nice if we do not have to "demand" user input.
    Hope that helps,

  • UCCX reports - Agent State Summary

    I'm running the above report Agent State Summary and have a question on the columns
    The total logged in time is as it states, the amount of time an agent is logged in 
    Not Ready - Amount of time they are in a not ready state within the Total Logged in time
    Ready State- same as Not Ready - Time within the Total Logged in time
    Now the question
    Example of the states below 
    Total Logged in time 10 hours
    Not Ready 2 hours 20%
    Ready 6 hours  60%
    Talk time 1 hour 10%
    Work time 30 hour 5%
    Reserve time 30 mins 5%
    Does this  mean the agents only spent 10% of their time actually talking to the customer and potentially 60% of the time waiting for callers?
    thanks

    Aaron
    Just one more thing. for example SLA on the CSQ  is set to 10 secs
    Call is offered to the agent via Resource commend but the agent does not answer so  RONA (15sec) is invoked and the call is re-queue - Does this impact SLA?
    No agents are available so the call is queued with IVR- Does this impact SLA ?
    Basically I guess the   SLA  is impacted if the call is either ringing on an agents  phone after the 10 Sec SLA but answered or returned to queue if the RONA is say 15 secs - either way  the SLA is impacted is this correct?
    Sorry for the "obvious " question but customer stated that she was informed the SLA is only impacted on "ringing" time on the agents phone and not if the call is queuing, listen  to on hold while queuing 

Maybe you are looking for