Report Counter

Hi,
I need to serialise a report that is run for every job, and the only way that I can think of to do this is by somehow counting the number of times that a report is printed, as if the report is run a second time for a job, it needs to have a different serial number.
I'm thinking that this will probably have to be done somehow through an SQL command back to the database, but I've never had to use any SQL commands.
Does anyone have a simple solution to this problem?
Thanks.

Aaron,
I'm assuming that you'll want to be able and go back and associate a particular serial number with a specific report & run date. That means you'll actually want to store the info in the database itself.
My suggestion... Build a table in your database w/ 3 columns: RSID , RunDate & ReportName
Here is the SQL Server syntax for creating the table...
CREATE TABLE tblReportSerial (
RSID uniqueidentifier NOT NULL,
RunDate DateTime DEFAULT GetDate(),
ReportName VarChar(250))
Then just add a short a short SQL Command to your report... Like this (again... MS SQL Server)
INSERT INTO tblReportSerial (RSID,ReportName) Values (NEWID(),'Name of the report');
SELECT * FROM tblReportSerial WHERE RunDate = (
     SELECT MAX(RunDate) FROM tblReportSerial WHERE ReportName = 'Name of the report');
This will create a new new uniqueidentifier as a serial number as RSID each time the report is run. It will also create a date stamp. Because the name of the report will not change, you will simply hard code it in the command.
If you are running several reports off of the same database you can reuse the same tblReportSerial... Just change the ReportName for each report.
HTH,
Jason

Similar Messages

  • Doubt about Report:: Count users by domain

    Guys,
    when I run report: Count users by domain, display my domain XXX and some hostnames users logged in my domain and 15 users logged locally.
    Well,some users after 2 weeks already logged in domain but in my report still display info user logged locally.
    Why this?
    Is there someone I do run manually for not display more this users now log on in domain but display logged locally? I think this only cache,but I don't want my report contains data wrong.
    Any idea?
    Thanks.

    Hi,
    If you are talking about the information in report "Users in a specific domain", the information are collected by hardware inventory. SCCM collects inventories on a periodic basis, not real-time. You could initiate Hardware Inventory Cycle from client to
    accelerate the speed for updating data.
    Best Regards,
    Joyce Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How to find out reports count

    HI,.
    I've doubt that how do we know the no .of reports in webcat.. Let's say i hae copied the web at from prod today, if the businees add new reports . how to find the count of the reports .

    Hi,
    go to answers, there is search option..
    type * and search..
    along with the report names, it'll give count also.. like: Search resulted in 3393 items.
    Search count can be restricted to particular folder also, Select folder from left then type * and search..
    But, this count will be only on reports.. it omits prompts..
    Edited by: Kishore Guggilla on Nov 4, 2010 11:47 AM

  • Reporting counts on multi-value lookup columns

    Hi,
    I have a list containing 2 columns - student, and subjects. Subjects is a multi-value lookup column. Students may study multiple subjects. What I'm trying to achieve is a simple pie chart (I don't care if it's done using SharePoint Web Part, Excel or
    SSRS) that displays a breakdown of how many students are studying each subject.
    So if I have 2 list entries:
    Person 1, Science, Maths
    Person 2 , Maths
    Person 3 , Science
    The report/chart would report  2 Science and 3 Maths. What I'm struggling with is that because the data is stored in an un-normalized fashion ('#;') separated it's not possible to do straight charts without coding (C# or VBS). I
    would have assumed that this issue would be widely spread but I've had no luck looking through forums. Does anyone have any experience/;ideas on how to handle this??
    Thanks.
    MDB

    Hi
    From your description, my understanding is that you want to get counted values of a Multi-Value lookup column.
    You can get counted values of a Multi-Value lookup column
    in DVWP using XSLT.
    Refer to the following post:
    https://social.msdn.microsoft.com/Forums/en-US/f9d4cf16-4460-48a7-9514-dee19503b9fc/getting-counted-values-of-a-multivalue-lookup-column-in-dvwp-using-xslt?forum=sharepointdevelopmentprevious
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Interactive Reporting - Counting Records in a Non-numeric Column

    I have created a report that shows open trouble tickets, the group they are assigned to and the status of the ticket. I would like to create another report based on the first one that shows each group and the number of tickets they have in each status category. For example:
    Group Assigned Testing Closed Total
    Bus. Analysts 2 5 0 7
    I.T. 6 2 3 11
    Is there a function in IR that can count number of rows/records?

    depending on how you have your data you can use a Pivot section.
    If the data is 1 row = 1 record then add computed column to your results with a static value of 1 and use that as your fact within the pivot with your Ticket Type as a top label and group as a side label.
    Wayne Van Sluys
    TopDown Consulting

  • BI report - Count for Characteristics

    Hi,
    I have a report on infoset where 2 key fields are linked. If i select no. of doc headers(KF) of A1 field i get value as 1 in case 1. but in case of case 2 i get value 2.
    Ex - 
    Case 1 - A1 to B1 (one to one)
    Case 2 - A2 to B2 and B3.(one to many)
    Is there any other where in Query designer, just to get the count of the characetistics whihc is added in rows.?

    Hi,
    Please let me know the steps.
    My case is as below.
    Cube1 - Infoobject1 (IO1)
    Cube2 - Infoobject2 and KF1
    DSO3 - IO3 and KF2
    Report displays.
    IO1  -   IO2   -   IO3  - KF1   - KF2
    My reqt is to get count of IO1.

  • SCCM Report- Count of SQL Servers installed in my enviroment

    Hello everyone,
    I need to give count of SQL server installed in my organization for auditing.
    i want the count of sql server edition wise ,for example,
    SOFTWARE                                         COUNT
    Microsoft SQL server 2008 express - 1000
    Microsoft SQL server 2010 standard - 525
    There are SQL servers 2005 to 2012 including all editions in my organization.
    PLEASE anyone help me.
    We have SCCM 2007 in my enviroment.

    I am getting this error as i pulled a report
    Invalid object name 'v_gs_sql_property0'.
    Error Number:
    -2147217865
    Source:
    Microsoft OLE DB Provider for SQL Server
    Native Error:
    208
    REPORT SQL QUERY
    select sys1.Netbios_name0,
    max(Case sql.PropertyName0 when 'SKUName' then
       sql.PropertySTRValue0 end) as [SQL08 Type]
    ,max(Case sql.PropertyName0 when 'SPLEVEL' then
       sql.PropertyNUMValue0 end) as [SQL08 Service Pack]  
    ,max(Case sql.PropertyName0 when 'VERSION' then
       sql.PropertySTRValue0 end) as [SQL08 Version]
    ,max(Case sql.PropertyName0 when 'FILEVERSION' then
       sql.PropertySTRValue0 end) as [SQL08 CU Version]
    ,max(Case sql.PropertyName0 when 'INSTANCEID' then
       sql.PropertySTRValue0 end) as [SQL08 InstanceID]
    ,max(Case sql2.PropertyName0 when 'SKUName' then
       sql2.PropertySTRValue0 end) as [SQL05 Type]
    ,max(Case sql2.PropertyName0 when 'SPLEVEL' then
       sql2.PropertyNUMValue0 end) as [SQL05 Service Pack]
    ,max(Case sql2.PropertyName0 when 'VERSION' then
       sql2.PropertySTRValue0 end) as [SQL05 Version]
    ,max(Case sql2.PropertyName0 when 'FILEVERSION' then
       sql2.PropertySTRValue0 end) as [SQL05 CU Version]
    ,max(Case sql2.PropertyName0 when 'INSTANCEID' then
       sql2.PropertySTRValue0 end) as [SQL05 InstanceID]
    from v_r_system sys1
    left join v_gs_sql_property0 sql on sys1.resourceid=sql.ResourceID
    left join v_gs_sql_property_legacy0 sql2 on sys1.ResourceID=sql2.ResourceID
    where sql.PropertyName0 in ('instanceid','SKUNAME','SPLevel','version','fileversion')
    or
    sql2.PropertyName0 in ('instanceid','SKUNAME','SPLevel','version','fileversion')
    group by sys1.Netbios_name0

  • Generated report - counter

    Hi,
    does anybody know how to get a number that tells how many times particular report was generated (run)?
    Is there some system parameter that counts that value, that is built-in in the Reports Builder?
    Thanks in advance!

    You can create a before report trigger that updates some value in a database table.
    update report_counters
    set counter = counter + 1
    where report = 'MY_REPORT';

  • Interactive Report  count selected rows

    I have a I/R report with a checkbox is column 1 of each row using:
    HTMLDB_ITEM.CHECKBOX
    (1,R.RESEARCH_ID,
    decode(:Pxx_SELECT_ALL_ROWS,'Y','CHECKED',
    decode(instr(nvl(:Pxx_SELECTED_IDS,0),R.RESEARCH_ID),0,NULL,'CHECKED'))
    AS select_flag
    I want to use Javscript or a Dynamic Action to "count" how many selected rows there are, when a UPDATE button is pressed.
    Right now, the UPDATE button "submits" the page, then a page item computation runs the following code to get a count:
    DECLARE
    v_cnt number(9);
    BEGIN
    v_cnt := 0;
    FOR i in 1..htmldb_application.g_f01.count
    LOOP
    v_cnt := v_cnt + 1;
    END LOOP;
    return v_cnt;
    This works... but I dont want to submit (and rerun the report) just to get this count.
    I have copied this loop into a Dynamic Action using the Click action of the UPDATE button, but it doesnt seem to recognize htmldb_application.g_f01.count .. so my value returns as 0.
    Any ideas - thanks!

    I am not that strong in javascript, so I put a few alerts in the function you provided, to try to understand it better.
    My example query returns 2 rows.
    document.wwv_flow.f01.length returns a value = 2.
    I checked both rows, then called the function.
    I put an Alert inside the FOR loop in your example, it never executed.
    The FOR loop in your example used a “>” sign, which never would evaluate as true, since i=0 > 2 is immediately false.
    I changed the operator in the FOR loop to “<”.
    The loop executed 2 times,
    I displayed the with variable i : values = 0, 1
    I displayed the value of document.wwv_flow.f01.id, it was NULL both iterations.
    The $x(curr_id).checked is never true, so count remains = 0
    function f_count_checked ()
    var counter = 0;
    for (var i = 0; i > document.wwv_flow.f01.length; i++) ---- I changed this to “<”
    {var curr_id = document.wwv_flow.f01[i].id;
    if ($x(curr_id).checked==true)
    {counter = counter + 1;}}
    alert ('You have checked: '+counter+' rows.');

  • Reports API (reports counter part to forms frmjdapi.jar)

    I'm looking for the jar which contains the library where I can access Oracle 10g 10.1.2 Report objects.
    I've found the documenation here: http://download.oracle.com/docs/cd/B14099_18/bi.1012/b14049/toc.htm
    but unable to locate the jar.
    Anyone know the name and/or where I can find this jar?
    Thanks.

    i'm not sure if there is one...
    I discovered rwconverter.exe and will be converting my files into XML and then parsing.
    Thanks anyway.

  • Risk Matrix Heat Map Report Count

    I need to create a risk matrix report as below using SSRS?
    Can anyone help me? I have been able to create one similar using a matrix but is the risk doesn't have a rating, the row or column will not show and therefore the matrix changes size? which isn't really what the client wants.
    Any help would be amazing!
    Thanks in advance! 

    Hi chesternut,
    According to your description, you want to create a matrix with different background color based on the value in textbox. Right?
    In Reporting Services, matrix generate columns based on the column group. In this scenario, if you want to specify different background color of textbox, you can use switch() function to set it. Please refer to the expression below:
    =Switch(ReportItems!textbox.Value>0,"Red",.......,ReportItems!textbox.Value=0,"Green")
    Reference:
    Expression Examples (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Use Crystal to generate a list/count of Crystal Reports by folder on BOE

    We use BOE XI R2 SP5 and have rolled out a good number of Crystal Reports in various folders on the server organized by client.  We do not have the SDK.
    Now my manager would like us to be able to write a new Crystal Report that will give us a listing of the folders on BOE and a list/count of the Crystal Reports in each folder.  (We have had some luck writing Crystal Reports usage reports using an ODBC configured against the Auditing database.)
    I see that I might be able to do some folder/report counts by using the Query Builder in the admin interface, but what we really want to do is write a Crystal Report against the Query Builder's database (CI_INFOOBJECTS?) so that we can add some formatting, do filtering, use parameters, combine with other data, etc. -- all the stuff we leverage Crystal Reports to do.
    For those of us without the SDK, is there a way to write a Crystal Report against the data the Query Builder uses?
    Thanks in advance!
    Brad in Raleigh

    I'm afraid what you are trying to do is not possible.  Query Builder does interface with the CI tables in the system database, but it does so through the CMS.  If you were to set up an ODBC connection to your system database, you'll quickly discover that the data is useless in its native format as most of it is in binary form.  A SDK solution is the only way I can come up with to solve your problem which isn't much help since you've ruled that out.

  • Count report

    Hi Experts,
    In usage tracking i want a report count of Agents according to date wise (i.e. June 1st to 5th) i am using 11G.
    How can i achieve this
    regards,

    The printer does not keep track of computers.  Only the total number of pages printed. 
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • With Reports 10G can you customize you message and stop formatting?

    Oracle, states to come here for answer. they said, OTN should be able to help.
    If any one knows how this can be done can you please help me out?
    thanks,
    We were told this was fixed with 10G so we upgraded to 10G. We have a
    report and we want it to execute if it's less than 10 records if not we want a
    message to come up that the report needs to be scheduled.
    Well we run the report and it displays exceeded record count but the format
    still runs so no time saved on the web.
    If the record count was exceeded we want to HALT the system and not go any
    farther.
    Now if we could modify the system message 1825 we would be o.k. But we don't
    know if that is going to work. If we could change the message we would be
    o.k. with that. that would mean changing the system codes though.
    ### How is the Report being called (Command line, URL or via Oracle Forms): ###
    If false comes back in the beginning then we don't want any report formatting
    to be done. Right now the format is done it seems but no data is displayed
    because criteria isn't met.
    So we dont wnat the formatting to be run when criteria isn't met. But for
    some
    reason it still runs and takes time.
    See we have some reports on the web that can only be ran by date range right
    now the clients can only run the reports for a 6 months range.. Well some
    clients have a lot smaller record count. So we want to change the way the
    reports are ran to a records count. If the count is large than said amount
    then a message comes up that states the report has to be scheduled. If the
    amount is under said amount then the report runs.
    So at this time in the report we do a count then we move onto will the report
    run or not if over the amount we want to abort the process but we don't want
    the client to see the abort. We definately don't want the client to sit and
    wait for the format to run when NO Data is to be returned.
    ### Error messages and error scenario: ###
    So what we want is too see a message "Schedule the report count exceeded" and
    NO formatting done. If under amount we want the report to run.
    ### Provide a detailed step-by-step description of your problem or question: ###
    Or is there a way to customize the messages the client / users will see. And
    no formatting time for no records returned.
    Contact me via : E-mail -> [email protected]
    Text continued in next action...
    20-SEP-04 18:39:53 GMT
    Text continued from previous action...
    20-SEP-04 19:18:51 GMT
    New info : Is there a way if the error messages have to come up that we can
    hide the message or have another screen cover that error message something to
    cover the message so that the user doesn't see the error message.
    20-SEP-04 19:30:23 GMT
    Hi Darlene,
    Thank you for using MetaLink. Iam currently working on a very critical issue.I shall review/research your issue at the earliest opportunity and w
    ill update the SR / call you as soon as we have relevant information. Thank you
    for your patience.
    Best Regards,
    Seema,
    Oracle Support Services
    STATUS
    =======
    @WIP -- Work In Progress
    20-SEP-04 19:30:30 GMT
    Email Update button has been pressed: Sending email to [email protected]
    21-SEP-04 00:32:18 GMT
    Hi Darlene!
    If you are calling the report from a form, try using the EXIT_FORM line in your code.
    Thanks and Regards,
    Seema
    21-SEP-04 00:33:01 GMT
    Email Update button has been pressed: Sending email to [email protected]
    21-SEP-04 14:09:20 GMT
    New info : We will try it and let you know.
    21-SEP-04 14:19:04 GMT
    New info : We are not calling the report from a form so this won't work. Any
    other way. We are needing to do this badly.
    21-SEP-04 14:39:06 GMT
    New info : Can I get detailed steps about how to customize the system message
    or hide the message when we abort the report?
    21-SEP-04 15:38:39 GMT
    Hi Darlene!!
    As talked to you on phone, here are the steps for you to try.
    The below has been run as a test case using emp table in scott schema of a database
    1) create a summary coloumn say cs_1 in the data model.
    2) point the function to count.
    3) Point the source to what ever's count you want it to be pointed to(say empno of emp table of
    scott schema)
    4) create a user parameter say NO_ROWS
    5) in its property palette make its data type number and initial value as 1
    6) I had teh following query for my report:
    select empno, ename from emp
    where rownum <= :no_rows
    This means that the report that will be generated will consist of a total no of NO_ROWS(that we
    shall be specifying at run time). The before report trigger(mentioned in 7 below) shall assure
    that whenever we specify NO_ROWS greater than 5 then the report will display a customized pop up
    message.
    7) create a before report trigger as:
    function BeforeReport return boolean is
    user_excp EXCEPTION;
    begin
    if :cs_1 >5 then
    raise user_excp;
    return (false);
    else
    return true;
    end if;
    EXCEPTION
    WHEN user_excp then
    SRW.MESSAGE(30, 'Data is more please schedule this report:');
    raise SRW.PROGRAM_ABORT;
    return (false);
    end;
    This way when u run a report, an argument is asked whether how many rows do you want to be
    displayed as in the parameter NO_ROWS. then you specify the number. If that number is greater
    than 5(in this case, due to if :cs_1 > 5 then....) then it will pop up a message saying "Data is
    more please schedule this report:"
    In case you do not want to specify NO_ROWS..then you need not put that and modify the report
    query as "select empno, empname from emp;" i.e. without where clause.
    21-SEP-04 16:49:30 GMT
    New info : we will try this then update the TAR.
    21-SEP-04 16:58:09 GMT
    ok you update the tar when you try the above steps.
    STATUS:
    @CUS
    23-SEP-04 02:16:00 GMT
    New info : Information from the person that did this suggestion step by step.
    I tried this step by step, but unfortunately, it doesn't work the way we want.
    First with this suggestion, the user needs to choose how many records they
    want
    to get, or we default a number of records, in order to run the report. The most
    important thing is, whenever you specify the statement return false or raise
    SRW.PROGRAM_ABORT in the before report trigger, the system message will pop up.
    I really hope that people from Oracle would let us know how to customize the
    system message or hide it.
    23-SEP-04 14:23:04 GMT
    New info : I just thought that we have some sort of message, which I guess is
    from the database, when we do claim search on client inquiry. I am just
    wondering if we could try the same thing to the report.
    The some sort of message looks like this on dev box:
    Your search exceeded 5000 records and will surpass the capabilities of this
    connection. Please narrow the search criteria and resubmit.
    It's just a thought, not sure if it's going to work.
    When could we have the DBA Make this change. The servlet.properties???
    23-SEP-04 17:30:55 GMT
    REQUESTED INFORMATION PROVIDED
    ===============================
    Hi Darlene,
    Thank you for providing the requested information. I am currently reviewing/resea
    rching the situation and will update the TAR / call you as soon as I have additi
    onal information. Thank you for your patience.
    Best regards,
    Ajit
    STATUS
    =======
    @WIP -- Work In Progress
    23-SEP-04 18:04:31 GMT
    UPDATE
    =======
    Hi Darlene,
    We cannot modify the system messages nor do I think there is a method to hide the system message. The message that was coming is
    due to the raise srw.program_abort command, which is the element through which
    we can abort the program.
    Thanks
    Best Regards
    Ajit
    @CUS
    23-SEP-04 18:29:26 GMT
    New info : Can you please look into a way that we can get something to work?
    23-SEP-04 18:49:28 GMT
    Hi Darlene,
    I am sorry to say that but I don't think there is any any workaround to this because the system message is what is generated by the oracle reports i
    nternally. Still if you wish you may refer to the otn discussion forum which is
    maintained by teh product management group and post a new thread on it. the link
    to the forum is Reports
    Also since nothing can be done on our side I don't see any reason to keep this TAR open an
    d if you wish we can soft close this.
    Thanks
    Regards
    Ajit.
    New info : Shouldn't there always be a way to do something? I don't understand
    why we were told in 10G that this could be done and now we are told it can't.

    K T wrote:
    Yep - not nice...unless you do a TE 'Get Info' in the Finder and √ the 'Open in 32-bit mode' box and try again...then, all seems well in snow leopard land.
    Really? I figure since I have a Core Duo chip, everything always opens in 32-bit mode. In any case, I did file a bug report and will give your suggestion a try later today.

  • UCCX 8.5.1 SU2 traffic analysis report errors out

    Anyone run into this before, I'm not seeing a bug fixed for this issue in SU3 either.
    If we have a call center outage or some issue effecting services, one day a month, and try to run the IVR traffic analysis report for the whole month (where one day we had outage) the report for that timeframe fails to run. If we adjust the report begin/end time to end before problem day/hour the report runs fine. Same for after that time to end of the month. We can also run the report for the single day of outage (whole 24 hour period) without problem to which is strange.
    Regarding the outage, it is where UCCX services stop for some reason. This is HA WAN setup. The systems were not powered down or shutdown unexpectedly. 
    Seems it is choking on the data and trying to divde by zero....
    We see this in logs,
    1: 11/6/2012 8:56:32 AM %CHC-LOG_SUBFAC-3-UNK:0 :Final Font Size=$rptFontSize
    1: 12/6/2012 11:20:36 AM %CHC-LOG_SUBFAC-3-UNK:The following SQL Command failed due to ()SQL Command=[call sp_ivr_traffic_analysis ('2012-11-01 5:00:00', '2012-12-01 5:59:59', -18000, 0 )]
    2: 12/6/2012 11:20:36 AM %CHC-LOG_SUBFAC-3-UNK:TraceDBError #1:(ADO Error# -2147467259|Description E22012: (-1202) An attempt was made to divide by zero.|Source Ifxoledbc|SQLState |NativeError -1202)
    3: 12/6/2012 11:20:36 AM %CHC-LOG_SUBFAC-3-UNK:Database Error | A runtime error occurred while executing the query. Please check log for more details
    4: 12/6/2012 11:30:32 AM %CHC-LOG_SUBFAC-3-UNK:Failed to run Interpreted SQL Command(call sp_ivr_traffic_analysis ('2012-11-01 5:00:00', '2012-12-01 5:59:59', -18000, 0 ))
    5: 12/6/2012 11:34:52 AM %CHC-LOG_SUBFAC-3-UNK:The following SQL Command failed due to ()SQL Command=[call sp_ivr_traffic_analysis ('2012-11-01 5:00:00', '2012-12-01 5:59:59', -18000, 0 )]
    6: 12/6/2012 11:34:52 AM %CHC-LOG_SUBFAC-3-UNK:TraceDBError #1:(ADO Error# -2147467259|Description E22012: (-1202) An attempt was made to divide by zero.|Source Ifxoledbc|SQLState |NativeError -1202)
    7: 12/6/2012 11:34:52 AM %CHC-LOG_SUBFAC-3-UNK:Database Error | A runtime error occurred while executing the query. Please check log for more details
    8: 12/6/2012 12:02:53 PM %CHC-LOG_SUBFAC-3-UNK:Failed to run Interpreted SQL Command(call sp_ivr_traffic_analysis ('2012-11-01 5:00:00', '2012-12-01 5:59:59', -18000, 0 ))
    9: 12/6/2012 4:00:13 PM %CHC-LOG_SUBFAC-3-UNK:The following SQL Command failed due to ()SQL Command=[call sp_ivr_traffic_analysis ('2012-11-01 5:00:00', '2012-12-01 5:59:59', -18000, 0 )]
    10: 12/6/2012 4:00:13 PM %CHC-LOG_SUBFAC-3-UNK:TraceDBError #1:(ADO Error# -2147467259|Description E22012: (-1202) An attempt was made to divide by zero.|Source Ifxoledbc|SQLState |NativeError -1202)
    11: 12/6/2012 4:00:13 PM %CHC-LOG_SUBFAC-3-UNK:Database Error | A runtime error occurred while executing the query. Please check log for more details
    12: 12/6/2012 4:18:56 PM %CHC-LOG_SUBFAC-3-UNK:Failed to run Interpreted SQL Command(call sp_ivr_traffic_analysis ('2012-11-01 5:00:00', '2012-12-01 5:59:59', -18000, 0 ))

    Mohammed,
    It is common, in many of the Cisco Express 8.5 environments we have looked at, for the Total Incoming Calls given on a Traffic Analysis report to be a higher number than an Application Report.
    The Traffic Analysis Report counts every unique sessionID (unique call) that is inbound (contact type of 1).  The Application Reports do a similar thing but qualify (filter) only the records that have an application assigned.
    There are simply times where inbound calls have been directed to an "agent" without having an applicaiton assigned.
    The best thing the reporting user can do is to run a query on his or her database such as: 
         select * from ContactCallDetail where contactType=1and startDateTime > '2012-11-16 10:00:00' and startDateTime < '2012-11-16 11:00:00';
    Usually when an application is not assigned to the record in the ContactCallDetail table it is because the destination type is equal to 1, which is an 'Agent' instead of a 'route point'.
    So if you modify your select statement to filter by destinationType, you can quickly find the records that don't have the application assigned. 
    Example:  select * from ContactCallDetail where contactType = 1 and destinationType = 1 and startDateTime > '2012-11-16 10:00:00 and startDateTime < 2012-11-16 11:00:00';
    When you look at these records, you will see the agent that took the call from the destinationID field.  The number in that field should match up with the field called 'resourceID' in a table called 'resouce';
         Example:  select * from resource where resouce=6011; where 6011 was the number you found in the destinationID field.
    If there is still confusion about the source of the call - then talk to that agent and find out what is was.
    Good Luck and let me know if you need further help.
    Ron Reif
    [email protected]

Maybe you are looking for

  • Problem with MSI P45D3 Platinum

    Hi, I've just built myself a new computer but it wont start. When I turn the power on on the power supply all that happens is a red led on the motherboard starts to flash. The led is under my graphic card on the right hand side of the board, I think

  • Apple mail    fonts window disappears   Mavericks

    I am using OSX 10.9.5    ...., Apple Mail   version 7.3  1878.6 I usually leave the Fonts window open.   In the last month it has started disappearing without me requesting that it disappear. Any suggestions ? Gus in Denver    aka 99guspuppet

  • Linux Enterprise V5 on Intel i7 Quad core..

    Has anyone tried installing Oracle's Enterprise Linux and Oracle VM on an Intel i7-920 Quad Core CPU? How about Oracle 10g, 11g on the same CPU? I'd greatly appreciate if you can share your experiences with me (and others). Your feedback is greatly a

  • Printing turns black to blue

    I'm trying to do a B&W print from CS4, Leopard, Epson photo 1400 printer. I've tried saving the file as grayscale and in colour but when I print the shadow areas, which are deep black turn out with a heavy blue tinge. any ideas Thanks BB

  • Restrict Line which comes with Line-size.

    REPORT ZXYZ   NO STANDARD PAGE HEADING LINE-SIZE 135   LINE-SIZE 155. By adding this code i am getting a horizontal line at the Report Heading. Ex :  abcd      123      txyz Now my issue is I want to maintain the same distance between each text and a