Exception Count

Hi,
How can we measure the number of system exceptions that came from the same activity? Is there a way to do that.. Because the activity fails when there is a system exception .. Therefore no code inside that activity is executed.. So when it comes to the system exception flow, there is no way to identify whether this is a first exception from that activity or second.. How can we do that?

Well yes, I can handle System Exceptions.. I have already done that.. Yes, I can log the count.. But I cannot log the count for the same activity..
For e.g. I get a system exception from activity A.. I go to my exception flow.. Increase my count to 1 .. I do action = BACK..
But I again get another system exception from the same activity .. Now the count is increased to 2.. I do action = BACK...
Now I go to another activity.. I have a code inside the other activity to reduce the count to zero i.e. count = 0.. So that I can start back the count from 1 for the next activity.. BUT.. the next activity also goes into a system exception.. When there is a system exception, no code inside that activity is executed.. So the count does NOT become zero ..Therefore the count remains 2.. i.e. count =2 when it goes into system exception flow..
Therefore now, in the system exception the count becomes 3 ..instead of count =1 for the next activity.. That's my problem. Any solution?
Remember no CODE is executed once there is a system exception..

Similar Messages

  • Alert Exception count

    Hi
    In Review Alert History (For Alert we have 2 actions) Exceptions count is different for 2 actions of alert not sure why it is so, we are using suppress duplicates. Action set details are same for both
    Also would like to know whether we can use UNION Clause alert sql as we have to get data from multiple selects
    Regards
    Kamalakar.G

    Hi,
    In Review Alert History (For Alert we have 2 actions) Exceptions count is different for 2 actions of alert not sure why it is so, we are using suppress duplicates. Action set details are same for bothWhat is the application release?
    What do you mean by "Exceptions count is different for 2 actions"? Please elaborate more.
    Also would like to know whether we can use UNION Clause alert sql as we have to get data from multiple selectsI believe it should be OK to use union clause.
    Regards,
    Hussein

  • JRockit Management Console - Exception Count

    Hello,
    I'm using jrockit-j2sdk1.4.2_04. I download the JRA from: /wljrockit/docs142/JRA.zip. I started the Management Server with Tomcat 5.0. After starting the management console the exception count continuously increases one per second (approx). Is this a bug? Am I doing anything wrong? Can I drill down to see whats happening somehow?
    Thanks,
    Ralph

    You can run JRockit with the (undocumented and unsupported) option -Djrockit.printstacktraces=true to print out every exception that happens. This will probably tell you what the exception is.
    One exception every second is nothing to worry about from a performance pespective.
    Regards,
    /Staffan

  • Exceptions count question

    Hi everyone,
    I have been looking at issues regarding an application that is in the test phase (running quite slow). I'm using JRockit Mission Control to check different issues. One big issue that I can't seem to find an answer for is the class exception count that is been reported by JRMC. It seems that in one hour of flight recording the report shows 3.5 million errors coming from backing beans. 90% of them are from the same object. Below is the trace from JRMC. Just this backing bean got 50K of exceptions in one hour. All backing beans get the same trace. The strange thing is that all these exceptions do not appear in the logs. The application was coded in Jdev 11g.
    ...taskflows.global.accountdetails.view.backing.AccountDetailsBean.<init>()
    sun.reflect.GeneratedConstructorAccessor1398.newInstance(Object[])
    sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Object[])
    java.lang.reflect.Constructor.newInstance(Object[])
    java.lang.Class.newInstance0()
    java.lang.Class.newInstance()
    oracle.adfinternal.controller.beans.ManagedBeanFactory.newInstance(ManagedBean)
    oracle.adfinternal.controller.beans.ManagedBeanFactory.instantiateBean(ManagedBean)
    oracle.adfinternal.controller.state.ScopeMap.get(Object)
    Can someone share some light on this. Much appreciated.
    Cheers

    Hi Vinod,
    Yes I had a look at the constructor, but the error from the trace does not seem to match the code. See below
    public AccountDetailsBean() {
    if (helper == null) {
    helper =
    (AccountDetailsHelper)ELHandler.get(AccountDetailsConstants.ACCT_DTLS_TASKFLOW_HELPER);
    if (serviceCode == null) {
    serviceCode =
    (String)ELHandler.get(AccountDetailsConstants.SERVICE_CODE);
    helper.setServiceCode(serviceCode);
    if (helper.getAccountType() != null) {
    if (helper.getAccountType().equals(LOAN_ACCT)) {
    helper.setIsLoanVisible(true);
    } else if (helper.getAccountType().equals(CASA_ACCT)) {
    helper.setIsCasaVisible(true);
    } else if (helper.getAccountType().equals(TD_ACCT)) {
    helper.setIsTdVisible(true);
    accountDetailsVO =
    IteratorHandler.getViewObject(AccountDetailsConstants.ACCT_DETAILS_VO_ITR);
    if (accountDetailsVO != null && accountDetailsVO.getRowCount() == 0) {
    Row newRow = accountDetailsVO.createRow();
    newRow.setAttribute(0, "");
    accountDetailsVO.insertRow(newRow);
    accountDetailsVO.setCurrentRow(newRow);
    helper.setAccountDetailsVO(accountDetailsVO);
    helper.setAccountDetailsBean(this);
    At the top of the trace the exception class seems to be oracle.mds.core.MetadataNotFoundException.
    Maybe I'm missing something.
    Cheers

  • How can I resolve Exception : "Count Field Incorrect" error

    Hi all,
    I am experiencing with "Count Field incorrect" error. What's wrong with it? How can I resolve it?
    This error is occured at UPDATE function of SQL. My JSP page is to update the old record.
    Sometimes, "Update statement error" message appear. These two problems I always confusing.
    What are the possible point of these error in my Java file and JSP page? I use package import to JSP Page.
    Pls help me.
    With thanks,

    Thanks,
    Your URLs help me exectly. But after I have changed my code, the error is changed to "Too Few Parameters : Expected 35". What's wrong with it? The following is my code.
    try {                                                                                                                                                                                                                
    String DRIVER = ("sun.jdbc.odbc.JdbcOdbcDriver");               
    String URL = "jdbc:odbc:Industrial_One_DSN";
    String sql = "UPDATE BusinessRegistration " +
    "SET [Date] = ?, ISIC = ?, BizName = ?, BizAddress = ?, " +
    "OwnerName = ?, OwnerNRC = ?, Investment = ?, EstablishedYear = ?, " +
    "L_Male = ?, L_Female = ?, F_Male = ?, F_Female = ?, " +
    "OwnershipType = ?, Remarks = ?, IndustialZoneName = ?, Unit = ?, " +
    "Fuel = ?, FactoryType = ?, FactoryName = ?, Township = ? " +
    "MainProductName = ?, MainProductCountType = ?, " +
    "MainProductQuantity = ?, MainProductValue = ?, RMName = ?, " +
    "RMCountType = ?, RMQuantity = ?, RMValue = ?, EnergyName = ?, " +
    "MachinePower = ?, AmountGallon = ?, StateDiv = ?, BizSize = ?  " +
    "WHERE RegistrationID = ?";
    Class.forName(DRIVER);
    Connection con = DriverManager.getConnection(URL);
    PreparedStatement pstmt = con.prepareStatement(sql);
    int ilmale = Integer.parseInt(lmale);
    int ilfemale = Integer.parseInt(lfemale);
    int ifmale = Integer.parseInt(fmale);
    int iffemale = Integer.parseInt(ffemale);
    int impq = Integer.parseInt(mpq);
    int impv = Integer.parseInt(mpv);
    int irmq = Integer.parseInt(rmq);
    int irmv = Integer.parseInt(rmv);
    int iamountgallon = Integer.parseInt(amountgallon);
    pstmt.setString(1, date);
    pstmt.setString(2, isic);
    pstmt.setString(3, bizname);
    pstmt.setString(4, bizaddress);
    pstmt.setString(5, ownername);
    pstmt.setString(6, ownernrc);
    pstmt.setString(7, investment);
    pstmt.setString(8, eyear);
    pstmt.setInt(9, ilmale);
    pstmt.setInt(10, ilfemale);
    pstmt.setInt(11, ifmale);
    pstmt.setInt(12, iffemale);
    pstmt.setString(13, ownershiptype);
    pstmt.setString(14, remark);
    pstmt.setString(15, izn);
    pstmt.setString(16, unit);
    pstmt.setString(17, fuel);
    pstmt.setString(18, ft);
    pstmt.setString(19, fname);
    pstmt.setString(20, township);
    pstmt.setString(21, mpn);
    pstmt.setString(22, mpct);
    pstmt.setInt(23, impq);               
    pstmt.setInt(24, impv);
    pstmt.setString(25, rmname);
    pstmt.setString(26, rmct);
    pstmt.setInt(27, irmq);
    pstmt.setInt(28, irmv);
    pstmt.setString(29, ename);
    pstmt.setString(30, mpower);
    pstmt.setInt(31, iamountgallon);
    pstmt.setString(32, statediv);
    pstmt.setString(33, bizsize);
    pstmt.setInt(34, Integer.parseInt(rid));
    pstmt.executeUpdate();
    }I have got 35 fields in my db. But i wanna edit 34 fields only. I have no primary key in my table. Is't alright?
    pls keep on helping me.
    With thanks,
    WTDAHL

  • Best practice for retail store cycle count

    Hi experts
    Would you have any experience/best practice in designing for cycle count process for your clients?
    By cycle count, I mean for frequent counting (daily) for specific item category / exceptional count request.
    My client want to implement a cycle count process to minimize the effort for full stock take which happen around 3 times per year.
    They are using SAP as the core system to keep track of inventory, and using external store system, so some considerations would be on, for example:
    - whether the count variance or counted quantity shall be interfaced back to SAP
    - whether SAP should be the source to initiate a stock count process or POS initiate
    It would be very nice if you can share some best practice as in the process flow, system information flow, etc.
    Best regards
    Dominic

    Hello
    Both can be done but as you say SAP is the core system at least for tracking inventories, better create and integrate inventories is SAP aswell.
    The main advice I would give is to avoid specific tables for inventory integration because standard tables and specific won't be updated well sometimes and support would be needed, stick on standard transactions.
    If the inventory is centralised in SAP, you can for example count them with PDA, send to SAP connectors your counting which will be integrated from a xml file transformed in a Idoc for SAP.
    One parameter is important to consider as the freeze for inventory. You have to decide if you take into account any stock movement that could occur after your inventory creation or not. If you do, the variance after the counting will depend on the initial stock value and also the movement.
    If you don't, the variance will only take into account your initial stock value withotu considering the stock movement.
    Hope it helps you,
    Génia.

  • Add counter only when duplicate segments are present in mapping

    Hi Gurus,
    I have a FILE to FILE scenario, and the source file is as this:
    aaa aaa aaa
    bbb bbb bbb
    ccc ccc ccc
    ccc ccc ccc
    ddd ddd ddd
    and the structure will be as:
    <Row>
    field1> aaa
    field2> aaa
    field3> aaa
    </Row>
    <Row>
    field1> bbb
    field2> bbb
    field3> bbb
    </Row>
    etc
    In the target structure, I need to have the same elements, but there is one more field which is a counter field that need to be increased for each repetitive line and then reset back to 1 for a non-unique one.
    So regarding the source structure, the target one should be as this:
    <Row>
    field1> aaa
    field2> aaa
    field3> aaa
    counter> 1
    </Row>
    <Row>
    field1> bbb
    field2> bbb
    field3> bbb
    counter> 1
    </Row>
    <Row>
    field1> ccc
    field2> ccc
    field3> ccc
    counter> 1
    </Row>
    <Row>
    field1> ccc
    field2> ccc
    field3> ccc
    counter> 2
    </Row>
    <Row>
    field1> ddd
    field2> ddd
    field3> ddd
    counter> 1
    </Row>
    etc
    I am asumming that I need to do this using UDF and local variables, but what I don't know is how can I compare the actual Row data with the previous one so I can increase the counter (or reset it).
    Any idea on what can I do here?

    Hi,
      You can try the below logic to get the counter incremented according to the row. For all fields its simple one to one mapping except counter.
       Row----Row
       field1---field1
       field2---field2 etc
    for counter concat field1,field2,field3 with empty delimiter ...
    concatinationof3fields--removecontext-sort-splitbyvaluechange-UDF-splitbyeachValue--counter
    **execution type of UDF is Allvalues of a context.
    public void UDF(String[] var1, ResultList result, Container container) throws StreamTransformationException{
              ArrayList aList =  new ArrayList();
         int counter = 1;
         int cnt = 1;
         for(int i=0; i<var1.length; i++){
                  if(aList.contains(var1<i>)){
              cnt++;
              result.addValue(cnt);
                                 else{
              aList.add(var1<i>);
              result.addValue(counter);
    Regards
    Priyanka

  • How to count number of rows in table

    can I get number of row in table except Count(*) in pl/sql
    is there any other way

    Also posted and answered here
    how to count number of rows in table
    count(*) will be the fastest way. It is only slow if the table has a vast number of rows, in which case why do you need to know the tables has 73552436467721 rows and not 73552436467737 rows. It doesn't seem to be much use. Either that or you are counting them a lot, which again seems rather pointless.

  • Table for Reading Counter in CRM IBASE

    Hi All,  
              I want the table link and table names for CRM Ibase counter reading value.
    In CRMD_MPK_READING table i can get all counter values except Counter reading value.
    Thanks in advance,
    Regards,
    Madhan

    Hi Madhan
    These tables might help.
    CRMC_MPK_APPGRP
    CRMD_MPK_MPOINT
    Please refer these links.
    http://scn.sap.com/thread/1394539
    http://scn.sap.com/thread/1403552
    Regards
    Vivikta

  • [Counter Strike 1.6] Mouse wheel working poorly

    I've been playing CS since 2003 and I've always jumped with MWHEELDOWN, I even still have my Logitech MX310 from 2003 and the wheel works perfectly on every other game I try (I can prove it). But since a few months ago or even less I can't use the mouse wheel anymore, there's something wrong with the game in regards to using it, be it to jump or scroll through the game command line or any wheel operation in Counter Strike.
    Anybody else having this? Other people using other distros reported that the mouse wheel works fine for them. So I guess this is a Valve problem with newer software.
    BTW my mouse is old and I know it. The wheel works fine on every game I have except Counter Strike. I tried different mouses but they all show the same bug in-game, so it's not a problem with the mouse. Also, Valve have been doing a lot of mistakes with updates to Counter Strike. I notified them on Github about this problem. So if anyone have the game on Steam, please test it and let's solve this problem together.

    It's a problem with my config.cfg
    This is weird, I've been using this same config over the past years and it never gave me problems. I couldn't find any problems with it so I'll post it here.
    // This file is overwritten whenever you change your user settings in the game.
    // Add custom configurations to the file "userconfig.cfg".
    unbindall
    bind "TAB" "+showscores"
    bind "ENTER" "+attack"
    bind "ESCAPE" "cancelselect"
    bind "SPACE" "+jump"
    bind "'" "+moveup"
    bind "+" "sizeup"
    bind "," "buyammo1"
    bind "-" "sizedown"
    bind "." "buyammo2"
    bind "/" "+movedown"
    bind "0" "slot10"
    bind "1" "slot1"
    bind "2" "slot2"
    bind "3" "slot3"
    bind "4" "slot4"
    bind "5" "slot5"
    bind "6" "slot6"
    bind "7" "slot7"
    bind "8" "slot8"
    bind "9" "slot9"
    bind ";" "+mlook"
    bind "=" "sizeup"
    bind "[" "invprev"
    bind "]" "invnext"
    bind "`" "toggleconsole"
    bind "a" "+moveleft"
    bind "b" "buy"
    bind "c" "radio3"
    bind "d" "+moveright"
    bind "e" "+use"
    bind "f" "impulse 100"
    bind "g" "drop"
    bind "h" "+commandmenu"
    bind "i" "showbriefing"
    bind "j" "cheer"
    bind "k" "+voicerecord"
    bind "m" "chooseteam"
    bind "n" "nightvision"
    bind "o" "buyequip"
    bind "q" "lastinv"
    bind "r" "+reload"
    bind "s" "+back"
    bind "t" "impulse 201"
    bind "u" "messagemode2"
    bind "v" "+voicerecord"
    bind "w" "+forward"
    bind "x" "radio2"
    bind "y" "messagemode"
    bind "z" "radio1"
    bind "~" "toggleconsole"
    bind "UPARROW" "messagemode admin_tsay"
    bind "DOWNARROW" "+back"
    bind "LEFTARROW" "+left"
    bind "RIGHTARROW" "+right"
    bind "ALT" "+strafe"
    bind "CTRL" "+duck"
    bind "SHIFT" "+speed"
    bind "F1" "autobuy"
    bind "F2" "rebuy"
    bind "F3" "admin_rcon mp_freezetime 1; admin_rcon mp_flashlight 1; admin_rcon mp_roundtime 8.5;admin_rcon mp_c4timer 35;admin_rcon mp_forcechasecam 0;admin_rcon mp_forcecamera 0;admin_rcon mp_startmoney 16000;admin_rcon mp_buytime 10.5;admin_rcon mp_friendlyfire 0;admin_rcon mp_autoteambalance 0;admin_rcon sv_alltalk 1; admin_tsay green [ - L O A D I N G - 4 F U N - M O D E - ];admin_execall speak loading; speak loading"
    bind "F4" "admin_rcon mp_roundtime 1.75; admin_rcon mp_flashlight 1; admin_rcon mp_freezetime 15;admin_rcon mp_c4timer 35;admin_rcon mp_forcechasecam 2;admin_rcon mp_startmoney 800;admin_rcon mp_buytime 0.25;admin_rcon mp_friendlyfire 1;admin_rcon mp_autoteamblance 0;admin_rcon sv_alltalk 0;admin_tsay random [ C P L CONFIG ] ;admin_execall speak loading; speak loading"
    bind "F5" "snapshot"
    bind "F6" "admin_execall kill; admin_execall jointeam 6"
    bind "F7" "admin_tsay blue [ S p e c CT ]^n[ S p e c CT ]^n[ S p e c CT ]"
    bind "F8" "admin_tsay red [ S p e c TR ] ^n[ S p e c TR ] ^n[ S p e c TR ]"
    bind "F9" "admin_rcon sv_restart 1; admin_tsay blue [ - R E S T A R T I N G - ]"
    bind "F10" "admin_rcon sv_alltalk 1; admin_tsay blue ALL TALK ON"
    bind "F11" "admin_rcon sv_alltalk 0; admin_tsay red ALL TALK OFF"
    bind "F12" "messagemode admin_kick"
    bind "INS" "messagemode admin_ban"
    bind "DEL" "admin_rcon mp_friendlyfire 1; admin_tsay red FF ON"
    bind "PGDN" "messagemode admin_pass"
    bind "PGUP" "admin_nopass"
    bind "END" "admin_rcon mp_friendlyfire 0; admin_tsay blue FF OFF"
    bind "MWHEELDOWN" "+jump"
    bind "MOUSE1" "+attack"
    bind "MOUSE2" "+attack2"
    bind "MOUSE3" "exec config.cfg"
    bind "PAUSE" "pause"
    _cl_autowepswitch "0"
    _snd_mixahead "0.1"
    ati_npatch "1.0"
    bgmvolume "1.000000"
    bottomcolor "6"
    brightness "2"
    cl_allowdownload "0"
    cl_allowupload "0"
    cl_backspeed "400"
    cl_cmdbackup "2"
    cl_cmdrate "101"
    cl_corpsestay "600.000000"
    cl_crosshair_color "250 250 50"
    cl_crosshair_size "large"
    cl_crosshair_translucent "0"
    cl_dlmax "128"
    cl_download_ingame "0"
    cl_dynamiccrosshair "1"
    cl_forwardspeed "400"
    cl_himodels "0"
    cl_idealpitchscale "0.8"
    cl_lc "1"
    cl_logocolor "#Valve_Ltblue"
    cl_logofile "smiley"
    cl_lw "1"
    cl_min_ct "2"
    cl_min_t "1"
    cl_minmodels "0"
    cl_mousegrab "1"
    cl_radartype "1"
    cl_righthand "0"
    cl_shadows "1"
    cl_sidespeed "400"
    cl_timeout "300"
    cl_updaterate "101"
    cl_vsmoothing "0.05"
    cl_weather "1"
    con_color "255 180 30"
    con_mono "0"
    console "1.000000"
    crosshair "1.000000"
    fastsprites "0"
    fps_max "161"
    gamma "3"
    gl_dither "1"
    gl_flipmatrix "0"
    gl_fog "1"
    gl_monolights "0"
    gl_overbright "0"
    gl_polyoffset "0.1"
    gl_vsync "0"
    hisound "1"
    hpk_maxsize "4"
    hud_capturemouse "1"
    hud_centerid "1"
    hud_draw "1"
    hud_fastswitch "1"
    hud_saytext_internal "1"
    hud_takesshots "0"
    joystick "0"
    lookspring "0.000000"
    lookstrafe "0.000000"
    m_customaccel "0"
    m_customaccel_exponent "1"
    m_customaccel_max "0"
    m_customaccel_scale "0.04"
    m_filter "0"
    m_forward "1"
    m_pitch "0.022"
    m_rawinput "1"
    m_side "0.8"
    m_yaw "0.022"
    model "gordon"
    MP3FadeTime "2.0"
    MP3Volume "0.800000"
    mp_decals "300.000000"
    name "[Linux] Junior s2 Camila"
    net_graph "3"
    net_graphpos "2"
    net_scale "5"
    r_detailtextures "0"
    sensitivity "1.6"
    skin ""
    spec_autodirector_internal "1"
    spec_drawcone_internal "1"
    spec_drawnames_internal "1"
    spec_drawstatus_internal "1"
    spec_mode_internal "1"
    spec_pip "0"
    suitvolume "0.250000"
    sv_aim "0"
    sv_voiceenable "1"
    team ""
    topcolor "30"
    viewsize "120.000000"
    voice_enable "1"
    voice_forcemicrecord "1"
    voice_modenable "1"
    voice_scale "0.750000"
    volume "0.800000"
    setinfo "_vgui_menus" "0"
    setinfo "_ah" "0"
    +mlook
    +jlook
    exec userconfig.cfg
    EDIT2: It's v-sync the problem.
    Last edited by Amarildo (2014-05-13 22:19:34)

  • Loadgen 2013 task exception

    I'm running a loadgen 2013 simulation for 4,000 2GB mailboxes on 4 Exchange 2013 (WS12 R2 Hyperv) VMs using 13 remote client VMs. The test is for 2 hrs using a 24-hrs for length of day to spread the loads evenly. The test passed with cpu utilization ~60%
    but my task exception count range from 20-40 per client. Should I be concern with this task exceptions? If so what can I do to reduce my task exceptions?
     

    Hello,
    Thank you for your post.
    This is a quick note to let you know that we are performing research on this issue.
    Thanks,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Simon Wu
    TechNet Community Support

  • VBA to identify a group of tasks being updated

    Good Afternoon,
    I have not had much luck with Project questions here, but now that I have dug a little deeper I think I can ask a question that you may be able to help with. If any of you know of a better place to find Project VBA advice, please let me know! 
    This question is also gathering dust over at UA. http://www.utteraccess.com/forum/Custom-Macros-Project-20-t2022616.html
    First off, I am writing a macro that is triggered when a task is updated in project. I used the code from this page as a starting point.
    http://msdn.microsoft.com/en-us/library/ee...fice.12%29.aspx
    The macro I wrote works well. I changed the code up a bit so that it runs each time the user sets a task to 100% complete. When the user sets a task to 100% complete, the macro pulls today's date and adds it to the custom date field (Date2).
    My next challenge is to warn the user if they update start or finish dates for a task with a specific tag in a text field (Text15). This new functionality will be embedded with the previous functionality I already wrote. Here is the problem. When I need to
    update a bunch of tasks, or when I update one task that changes other tasks due to links, the event is triggered for each and every task. This creates lots of message boxes that I don't need.
    On the surface this makes sense because I want to know each time a task changes, but from a practicality standpoint I only need to be notified once for each group of tasks that are updated. For example, if I update one date, and linking causes 10 other dates
    to change, I only want to be notified once. Similarly, if I highlight and change multiple dates I only want to get warned about it once, not once for each task.
    To achieve this I think I need to access some kind of collection that represents the set of tasks that are being updated as a result of user input. This is where I need help. I am not sure how to access this information.
    For your information here are the code elements I have written for the existing macro.
    This section goes in "ThisProject":
    <code>
    Private Sub Project_Open(ByVal pj As Project)
       EnableEvents
    End Sub
    </code>
    This section goes in a module named "modTaskUpdate":
    <code>
    Public TskUpdate As New clsTaskUpdate
    Sub EnableEvents()
       Set TskUpdate.App = MSProject.Application
    End Sub
    </code>
    Finally, this section goes in a Class Module named "clsTaskUpdate":
    <code>
    Public WithEvents App As MSProject.Application
    Private Sub App_ProjectBeforeTaskChange(ByVal tsk As Task, ByVal Field As Long, ByVal NewVal As Variant, Cancel As Boolean)
    'Code for managing 100% complete and Date Completed
    '(This part works OK, see the next section for the code I need to modify)
        If ((Field = pjTaskPercentComplete) And (NewVal = 100)) Then
            'Add today's date to completed date field
            'MsgBox "Adding today's date: " & Date & " to the Date2(DateCompleted) field."
            tsk.Date2 = Date
        End If
        If ((Field = pjTaskPercentComplete) And (NewVal = 0)) Then
            'Remove date from completed date field
            'MsgBox "Removing date from the Date2(DateCompleted) field."
            tsk.Date2 = ""
        End If
    'Code for managing warnings to user if PST dates will change.
    ' Currently this message is triggered for each task that causes a change.
    ' Can we only trigger this task once for each group of changed dates?
        If ((Field = pjTaskStart) Or (Field = pjTaskFinish)) Then
            If (insrt(tsk.Text15, "PST") <> 0) Then
                MsgBox "Warning! You have changed a date that is linked to a line in the PST. As a result the PST has been automatically updated."
            End If
        End If
    End Sub
    </code>
    FYI: The PST is an external Excel file that has its values automatically update via linked cells in Project.
    Thank you for your time and consideration.
    Please let me know if you have any questions.
    Nate

    Nate,
    Yes, as far as I know, there is no "collection" of task changes. Remember, a collection is a group of objects and a change isn't an object.
    I see you found one of the posts I responded to regarding paste links. If you have ABSOLUTE file discipline management, then you might be okay with paste links, but since there is a much better alternative (i.e. VBA) to do what you need I'd avoid the paste
    link idea. As Clint Eastwood said in his Dirty Harry movie, "Do you feel lucky?"
    There have been various posts with code to export Project data to Excel. Unfortunately I find the search capabilities of these forums to be sorely lacking so rather than a link, here is some sample code you can adapt.
    Option Explicit
    Sub CalendarExceptions()
    'Basic macro code created by Kiran.K and posted on MSDN Project
    ' customizing and programming forum Feb 7,2013
    'Code streamlined and updated by John - Project June 2,2014
    Dim MyXL As Object
    Set MyXL = CreateObject("Excel.Application")
    Dim i As Integer, j As Integer
    Dim E As Exception
    Dim r As Resource
    Dim xlRng As Range
    'open Excel, define workbook, and set column headers
    MyXL.Workbooks.Add
    MyXL.Visible = True
    MyXL.ActiveWorkbook.Worksheets.Add.Name = "Exception Report"
    MyXL.ActiveWorkbook.Worksheets("Exception Report").Activate
    Set xlRng = MyXL.ActiveSheet.Range("A1")
    xlRng.Range("A1") = "Proj Cal Holidays"
    xlRng.Range("B1") = "Start Date"
    xlRng.Range("C1") = "Finish Date"
    xlRng.Range("E1") = "Res Name"
    xlRng.Range("F1") = "Res Base Cal"
    xlRng.Range("G1") = "Base Cal Excep"
    xlRng.Range("H1") = "Start Date"
    xlRng.Range("I1") = "Finish Date"
    xlRng.Range("K1") = "Resource Name"
    xlRng.Range("L1") = "Res Excep"
    xlRng.Range("M1") = "Start Date"
    xlRng.Range("N1") = "Finish Date"
    'First gather and export Project calendar exceptions
    i = 2
    If ActiveProject.Calendar.Exceptions.Count > 0 Then
        For Each E In ActiveProject.Calendar.Exceptions
            xlRng.Range("A" & i) = E.Name
            xlRng.Range("B" & i) = E.Start
            xlRng.Range("C" & i) = E.Finish
            i = i + 1
        Next
    End If
    'Next, gather and export resource base calendar exceptions along with
    '   resource calendar exceptions
    i = 2
    For Each r In ActiveProject.Resources
        If Not r Is Nothing Then
            j = i
            If r.Type = pjResourceTypeWork Then
                    For Each E In r.Calendar.BaseCalendar.Exceptions
                        xlRng.Range("E" & i) = r.Name
                        xlRng.Range("F" & i) = r.Calendar.BaseCalendar.Name
                        xlRng.Range("G" & i) = E.Name
                        xlRng.Range("H" & i) = E.Start
                        xlRng.Range("I" & i) = E.Finish
                        i = i + 1
                    Next E
                    For Each E In r.Calendar.Exceptions
                        xlRng.Range("K" & j) = r.Name
                        xlRng.Range("L" & j) = E.Name
                        xlRng.Range("M" & j) = E.Start
                        xlRng.Range("N" & j) = E.Finish
                        j = j + 1
                    Next E
            End If
        End If
    Next r
    MyXL.ActiveWorkbook.Worksheets("Exception Report").Columns("A:N").AutoFit
    End Sub
    John

  • How to get analytics reports programmatically in SharePoint 2013?

    In SharePoint 2010 it was possible to obtain data from web analytics programmatically using Microsoft.Office.Server.WebAnalytics.Reporting.AnalyticsReportFunction class.
    How can you get search reports programmatically in SharePoint 2013? Are there new assemblies or classes that can be used to obtain them?
    In my scenario, i am mostly interested in the most searched terms at web application or service application level. 
    In SharePoint 2013 the Web Analytics Service Application was merged into the Search Service Application. It seems now that the old assemblies used for this (Microsoft.Office.Server.WebAnalytics.dll
    and Microsoft.Office.Server.WebAnalytics.UI.dll) are not available any more.
    They are available in the user interface as Excel reports, in CA->Application Management->Manage Service Applications->Search Service Application->Usage Reports , but I am interested to obtain these reports programmatically.
    Is this scenario still supported in SP 2013?

    try this 
    using (SPSite site = new SPSite(MainBUPageUrl))//open root
                            using (SPWeb web = site.OpenWeb())
                                AnalyticsReportFunction AnalyticReport = new AnalyticsReportFunction(); //create object of analyticsReport
                                Thread.CurrentPrincipal = new WindowsPrincipal(WindowsIdentity.GetCurrent());//this is used only
    in timer job if not used then GetWebAnalyticsReportData will not work
                                object[,] result = null;
                                    web.AllowUnsafeUpdates = true;
                                   result = AnalyticReport.GetWebAnalyticsReportData(SiteCollurl, "2", ReportType.TopDestinationForSiteReport.ToString(),
    DateTime.Today.AddDays(-3.0), DateTime.Today); //this gives top visitor for provided site collection by providing time duration(start and end date),report type and url
                                    SPList list = web.Lists.TryGetList("AppreciationsList");//list
                                    for (int counter = 0; counter < 10; counter++) //show top ten pages
                                        Item = list.AddItem();
                                        s_count = result[rcount, 1].ToString(); //code
    to get top vistor usage count
                                        Username = result[rcount++, 0].ToString();//get
    top vistor name
                                        user = null;
                                        try
                                            user = web.EnsureUser(Username);//check
    user available?
                                        catch (Exception)
                                            counter--;
                                            continue;
                                        IfExist = checkUserExistence(user);//call the
    function   // IfExist = false; //this flag is used to check existence of user in insightMember group
                                        if (IfExist == true)//if user is not in the insight2
    group member list
                                            Item["Appreciated Person"]
    = user; 
                                            Item["Title"] = s_count;
                                            Item.Update();
                                        else //if user is in the insight2 group member
    list
                                            counter--;
                                            continue;
                                  web.AllowUnsafeUpdates = false;

  • SECUENTIAL FIELD IN ZTABLE

    Hi,
    i´m developing a ZTABLE. In this ztable there are two key fields. One of them (
    ZNUMDE) must be the result of concatenating sy-uname(3) sy-datum+2(2) and a secuential
    number of 2 digits the moment the entry is created.
    This key field must distinguish the number of entries in the table by user.
    e.g. user PETER has 2 entries -> 1st ZNUMDE = PET0501
    2nd ZNUMDE = PET0502
    for user JOHN (1 entry) -> ZNUMDE = JOH0501.
    In order to achieve this i´ve created a maintenance view of the table and within the event '01' BEFORE SAVING IN THE DATABASE i´ve created a routine within which i´ve added the following code:  DATA: v_max(2)   TYPE i,
            v_numde(7) TYPE c,
            v_conta(2) TYPE c.
      CLEAR: v_max, v_numde, v_conta.
    Here i check the number of entries of a the user
      SELECT COUNT( DISTINCT usuar ) INTO v_max
        FROM ZTABLE WHERE usuar = sy-uname.
      IF v_max GT 0.
        v_max = v_max + 1.
        v_conta = v_max.
      ELSE.
        v_max = 1.
        v_conta = v_max.
      ENDIF.
      SHIFT v_conta RIGHT.
      REPLACE '' WITH '0' INTO v_conta.
      CONCATENATE sy-uname(3) sy-datum+2(2) v_conta
        INTO z_v_devolucion-numde.
      z_v_devolucion-usuar = sy-uname.
    The question is that thus i´m not able to get ZDEVNUM as desired.
    Any suggestion?
    Best regards.

    Hi!
    It would be easier, if you had described your current (wrong) result.
    But my guess is, your not counting existing entries correctly.
    Your key znumde has three parts: user, year and counter. In your select, you define just user, but not year.
    But when you have already second field usuar (why not user?) for user-id, why not split your key into three separate fields? This would make your selection easier:
    select count( * ) into v_max
      from ztable
      where user = sy-uname
       and  year = sy-datum+2(2)
       and  (other key except counter).
    By the way: you create a year 2100-problem!
    Use v_max type i instead of v_max(2).
    with v_conta(2) type n you might get correct format without additional conversion. Otherwise FM CONVERSION_EXIT_ALPHA_INPUT will do the job, too.
    Or do you struggle with the event?
    Regards,
    Christian

  • SELECT * and NVL

    I would like to use a SELECT * FROM myTable and if the value stored in Oracle is "null", then I would like to replace "null" with a blank space using the NVL function. Can anyone describe how to do this? I though maybe it would just be SELECT nvl(*, ' ') FROM myTable but this is not working properly.
    Thanks for the help...
    Zac

    The NVL function like virtually all Oracle functions except COUNT requires a "real" value, like a column name or an expression that resolves to a value.
    The only way is to code
    SELECT col1,col2,NVL(col3,' ')
    FROM my_table

Maybe you are looking for

  • Adding apps to Venue 11 Pro?

    OK I'm trying to make friends with my Dell Venue 11 Pro, so I bought a Swann 410 Sec. Cam. Sys. because it said I could just plug it into my router and presto I would see it on my 11 Pro Tablet. But when I try to get the "app" Swann DigiView I become

  • REP-0302: Parameter 'SUPPLY_SUBINV' not found in report

    Hi All, I am encountering "REP-0302: Parameter 'SUPPLY_SUBINV' not found in report" error while running the report. Cross checked my report and there are no references for this in pl/sql or my rdf query. Can anyone help me on this.. Thanks gt1982

  • How To Give a Validation In Prompt(OBIEE Answers)

    Hi, I ahve the promt like Name----------------<text box> Go if i enter the name then the prompt will effect on the data. if i didn't enter tha data in name textbox it should dispaly a meassge like:please enter a valid name: here name comling from bac

  • How can I change the default behavior for ctrl-Tab?

    I tried to change the behavior of ctrl-Tab from 'Next Tab' to 'Previous Tab' and added 'alt-Tab' for 'Next Tab' in Keyconfig so I can navigate in both directions with one hand. It does not change the behavior of ctrl-Tab. I created both these shortcu

  • Which RAM should i buy for my HP PAVILION G6 2230TX with Windows 8 Pro(64-bit)

    Spoiler (Highlight to read) Hi! Everyone. How are you all?  Spoiler (Highlight to read) Spoiler (Highlight to read) Spoiler (Highlight to read) The RAM of my PC is expendable upto 8 GB and contains 2 slots, 1 slot is filled with 2 GB RAM and i want t