Multiple Error Handling mails Issue

Hello,
I have created one SSIS Package, And i have added "Send Mail Task" In Event Handler on Error Event of the package.
Whenever i execute this package it will send multiple mails for single error.
Could you please help me to resolve this issue to send a single mail.

Hi Vinay,
I am able to reproduce the issue in my test environment. It indeed sends a single email for each error. I have tested the method described in the blog (http://agilebi.com/jwelch/2007/05/05/handling-multiple-errors-in-ssis/),
however, it still send multiple emails even if the Send Mail Task is placed in the OnPostExecute event handler of the package. If you would like, you can give it a try to see if it works in your package.
As a workaround, you can send the content in the error log instead of the System variable ErrorDescription. Furthermore, we can also implement custom logging to get the System::ErrorDescription value, then we can send the content of the custom logging.
Since the Send Mail Task cannot send the logging of the current package because the logging is being written. So, we can create another package which contains the Execute Package Task to call the existing package, in the parent package we can add a Send
Mail Task under the Execute Package Task, and set the Precedence Constraint between them to Failure. 
For more information about Custom Logging Using Event Handlers, please see:
http://consultingblogs.emc.com/jamiethomson/archive/2005/06/11/SSIS_3A00_-Custom-Logging-Using-Event-Handlers.aspx 
Hope this helps.
Regards,
Mike Yin
TechNet Community Support

Similar Messages

  • Issue with SRDemo error handling

    Hi All,
    Glad the forums are back up and running. In debugging some error-handling issues in our own application, I found an issue in the error handling code of SRDemo. I thought I'd post the issue here, as many of us (myself included) use some SRDemo code as the basis for our own applications.
    The issue can be found in the oracle.srdemo.view.frameworkExt.SRDemoPageLifecycle class, specifically in the translateExceptionToFacesErrors method. I'll show the code that has the issue first, and explain the issue afterwards:
            if (numAttr > 0) {
                Iterator i = attributeErrors.keySet().iterator();
                while (i.hasNext()) {
                    String attrNameKey = (String)i.next();
                     * Only add the error to show to the user if it was related
                     * to a field they can see on the screen. We accomplish this
                     * by checking whether there is a control binding in the current
                     * binding container by the same name as the attribute with
                     * the related exception that was reported.
                    ControlBinding cb =
                        ADFUtils.findControlBinding(bc, attrNameKey);
                    if (cb != null) {
                        String msg = (String)attributeErrors.get(attrNameKey);
                        if (cb instanceof JUCtrlAttrsBinding) {
                            attrNameKey = ((JUCtrlAttrsBinding)cb).getLabel();
                        JSFUtils.addFacesErrorMessage(attrNameKey, msg);
                }Now, this bit of code attempts to be "smart" and only show error messages relating to attributes if those attributes are in fact displayed on the screen. It does so by using a utility method to find a control binding for the attribute name. There are two issues with this code, one obvious, and one that is a bit more subtle.
    The obvious issue: if there is a binding in the page definition, it doesn't necessarily mean that the attribute is shown on the screen. It's a good approximation, but not exact.
    The other issue is more subtle, and led to errors being "eaten," or not shown, in our application. The issue comes if you are using an af:table to display and update your data. In that case, the findControlBinding will not find anything for that attribute, since the attribute is contained within a table binding.
    Just posting this as a word to the wary.
    Best,
    john

    somehow, this message got in the wrong thread....
    Hi Frank,
    Yes, I simply scripted it out this way to contrast the behaviour if the first attribute was read-only vs not read-only. I found the issue on a page in our app that was simply drag-and-drop the VO from the data control on the page.
    It's quite annoying, because our particular use case that hit this error is a "save" button on the page. If the commit operation doesn't return any errors (and it doesn't in this use case!), we add a JSF message saying "save successful" - then the attribute errors are further added later in the page lifecycle, so we get 3 messages: "Save successful" and "Fix this error" and "Tried to set read-only attribute" - quite confusing to the end-user when the only message they should see is "fix this error."
    At any rate, the fix is to simply re-order the attributes in the page definition - that doesn't affect the UI at all, other than to fix this issue.
    John
    it was supposed to be something like:
    Hi Frank,
    Thanks for the reply. I was simply posting this here so that people who use the SRDemo application techniques as a basis for developing the same functionality in their own apps (like me) can be aware of the issue, and avoid lots of head-scratching to figure out "what happened to the error message?"
    John

  • Error Handling in File to Multiple IDOC Scenario?

    Hello Experts,
    My scenario is file with Multiple records and I want to send it to SAP system.If there will be 10 Records in my file I need to create 10 IDOC in Target system.
    I can use below of the two options.
    1) File to Multiple Idoc (1.N Mapping)
    2) Using BPM
    3)Directly place the file in SAP application server and process it via ABAP Program.
    However I am not clear in which option error handling will be more effective.Please suggest.
    Basically I want to handle If out of 10 records 9 are correct and 1 record is not correct then I should be able to report within PI without affecting 9 correct records.Is it possible 9 records will be sent to SAP system and PI will only show error for 1 incorrect record.
    Also I will be doing this scenrio for transaction data with huge size (1 Million Records).Which approach will be more effective in this case.
    Thanks,
    Pushkar

    Hi Patel,
    I want to handle If out of 10 records 9 are correct and 1 record is not correct then I should be able to report within PI without affecting 9 correct records.Is it possible 9 records will be sent to SAP system and PI will only show error for 1 incorrect record.
    when working on graphical mapping, the target structure is created when there are no errors in all records of source structure.
    suppose if we have validation error in 9th and 10th record, then we can not process the first eight records and inturn we can not store the two error records in XI for further.
    i suggest you the third option, you can directly place the file in SAP application server and process it via ABAP Program.
    this is far better because you can do more customizations as you have to deal with millions of records.
    Regards,
    Pradeep A.

  • Handling Multiple Error Messages through EXIT_SAPMM06E_012 for ME28

    Dear Team,
                           After Executing ME28, system will give List of PO's that are to be Released . User will select Multiple  PO's and
    Press Release button in Application toolbar. once it is relased, User will press save Icon for all released PO's. 
    Once Save icon is presed, I need to  do  Validation for Multiple PO's in the user Exit EXIT_SAPMM06E_012 and capture my
    ErrorMessages for all Released PO's for which Validation fails.
    Here in the given user Exit, one PO will be processed at a time as PO is defined as Import Parameter but it will handle all PO's
    and give the output in status bar saying 'Relased Saved' for all PO's which succesfully gonethrough.
    once we execute ME28, system is showing list output with PO's to be Released(As system is handling with Write statments). In this case, we dont have scenario of PBO and PAI Modules( where user can correct error if any validation fails) like we have for ME22,etc.
    I have Written simpel Error Message in the  User Exit.
    once i tried to trigger my user exit  by Releasing and Saving with One PO, Error Message is displayed ( as information Message
    appears) and if i Press Exit button in Error Message, it is coming out of Transaction.
    Is there any Possibilty to Handle Multiple Error Messages ( in my case for  Valdiation Failed Po's)  in ME28 ,after Releasing and Saving , and also user should not come out of Transaction once  Error Messages are Displayed.
    Thanks and Regards
    Suresh

    Hi Suresh,
    there is a tekpo table to handle all po items. you can put it in loop and do validations.
    if any errors through, there may be a ex_messages table of type bapiret2.
    or
    try like this:  MESSAGE E368(00) WITH TEXT-001 TEXT-002.
    thanks
    srinu
    Edited by: srinu rao on Sep 22, 2009 3:43 AM

  • HT203242 I get this error when launching itunes "the registry settings used by the itunes drivers for importing and burning CDs and DVDs are missing." I ahve reinstalled iTunes multiple times but the issue remains.....any suggestions?

    I get this error when launching itunes "the registry settings used by the itunes drivers for importing and burning CDs and DVDs are missing." I ahve reinstalled iTunes multiple times but the issue remains.....any suggestions?

    I'd start with the following document, with one modification. At step 12 after typing GEARAspiWDM press the Enter/Return key once prior to clicking OK. (Pressing Return adds a carriage return in the field and is important.)
    iTunes for Windows: "Registry settings" warning when opening iTunes

  • Using gmail - multiple copies of mail being written are forwarded to the trash -did not have this issue with 10.6.8 -

    I have two Imacs - the master one is plugged in directly into the modem, it runs with 10.6.8 and works fine (this computer is not connected to Icloud)- the other  is connected to a router which is connected to the master unit and the modem. that unit was upgraded to 10.9.4 and it is connected to Icloud - both Imacs use gmail accounts for e-mail.
    The "slave" unit running on 10.9.4 creates multiple copies of mail being written and sends those copies to the trash file. We have had up to fifty copies of one e-mail in the trash. That computer worked fine under OSX10.6.8 - We have visited the apple store genius bar with this Imac, and consulted the apple phone support service to no avail.
    while it does take a long time to transmit the e-mails, addressees get only one copy. Your help will be appreciated.
    Gerald

    9/16/14 update - another call to apple phone support revealed that this is a known issue that has no solution at this time.

  • Issue in Proxy service Error Handler.

    Hi,
    Is it possible to reset or clear all variables used in a proxy service in error handler.

    Hi,
    You cannot delete all the variables at once.
    Please refer to the below link.
    http://docs.oracle.com/cd/E21764_01/doc.1111/e15867/proxy_actions.htm#i1316125
    Thanks,
    Durga.

  • Site-wide Error Handler issue

    I'm having a strange one. I'm using CF 9.0, and I have a Site-wide Error Handler set up, with the relative path set correctly.When run-time errors occur, it is calling the template exactly as expected, except for one thing.
    In addition to the error template (which shows a nice user-friendly page), I am also getting the default ColdFusion error information following.
    So...error occurs, it is throwing to the error template as expected, but then also pushing out the default error page.
    It does not do this on CF7 with identical code, so I am thinking that perhaps there is a setting on CF9 Administator that I'm not clicking. But search as I might, I only see the Site-wide Error Handler field.
    Any suggestions? This is driving me batty.

    ianskinner wrote:
    What do you get if you turn on "Robust Exception Information"?
    You are presuming that since your test error is a DSN error and this extra message is about a DSN error, that they are the same error.  That is an unproven correlation.  Or at least you have not show us the proof.
    Robust Exception Information is enabled on the Cold Fusion Administrator. I don't know why it wasn't showing earlier, but now when I run the test page I get the following:
    The web site you are  accessing has experienced an unexpected error.
    Please contact the website  administrator.
    The following information is meant for the website developer for  debugging purposes.
    Error Occurred While Processing Request
    Datasource  doesNotExist could not be found.
    The  error occurred in \\srv238\wwwroot\rjr\errorhandling\cferror_test.cfm: line  11
    9 : This query calls a non-existent datasource, triggering an error to be handled. --->
    10 :
    11 : <cfquery name="testQuery" datasource="doesNotExist">
    12 : select * from nothing
    13 : </cfquery>
    DATASOURCE
      doesNotExist
    Resources: Check the ColdFusion  documentation to verify that you are using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser 
    Mozilla/4.0 (compatible;  MSIE 6.0; Windows NT 5.1; SV1; GTB6.3; .NET CLR 1.1.4322; InfoPath.2; .NET CLR  2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022;  .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; MS-RTC EA 2)
    Remote  Address 
    172.21.10.142
    Referrer 
    Date/Time 
    30-Dec-09 01:21  PM
    Stack Trace  (click to expand)

  • Error handling in process chain-doubts

    Hi ,
    I have some doubts in error handling of process chains.
    1) I have  aprocess load infopackeage and subsequent process is update fromPSA.
    process load infopackage got failed  , so i loaded  the IP manually and repeated the next i.e process update from PSA .
    How to correct the process chain from now?
    2) I have  aprocess load infopackeage and subsequent process is Delete request in infocube .process load infopackage got failed  , so i loaded  the IP manually and repeated the next process i.e Delete request in infocube. Chain continued by deleting the right request . How this is possible ?
    Plz  help me  as this is urgent and daily i have to deal with this  issues. If any documents on error handling is greatly appreciated.
    My mail id is [email protected]
    Regards,
    Pavan

    Hi Pavan,
    Hope the following links will give u a clear idea about process chains and clear ur doubts.
    Business Intelligence Old Forum (Read Only Archive)
    http://help.sap.com/saphelp_nw2004s/helpdata/en/8f/c08b3baaa59649e10000000a11402f/frameset.htm
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/8da0cd90-0201-0010-2d9a-abab69f10045
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/19683495-0501-0010-4381-b31db6ece1e9
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/36693695-0501-0010-698a-a015c6aac9e1
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/9936e790-0201-0010-f185-89d0377639db
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3507aa90-0201-0010-6891-d7df8c4722f7
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/263de690-0201-0010-bc9f-b65b3e7ba11c
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    Errors in monitoring of process chains can be categorized into 4 different sections...
    Master data - Full Update
    Master data - Delta Update
    Transaction data - Full Update
    Transaction data - Delta Update.. in terms of loading of data which can be due to server shut down or system maintenance... errors due to incorrect entries in the OLTP system in which case you'll have to fix the errors in the PSA and manually load the data...
    Otherwise it can have errors on Attribute change run being locked by some other job... Aggregate Roll up failing because of attribute change run being run at the same time... Problem with hierarchies and save hierarchies...
    There can be problems with the data store activation if the ODS object contains any incorrect request sitting inside it... then, you need to delete the incorrect request and reload the data again...
    In case of Transaction Delta failure, you'll have to request for a repeat either manually in the infopackage or using the repeat option if available on right clicking the load event...
    For Master Data Delta failures, you need to do an Re-init by deleteing the previous initalization condition in the "initalization option for source systems" in the menu scheduler or reschedule the enitre chain... because, master data generally do not support repeat of last delta ...
    U can even look into these links:
    /people/siegfried.szameitat/blog/2006/02/26/restarting-processchains
    For common data load errors check this link:
    /people/siegfried.szameitat/blog/2005/07/28/data-load-errors--basic-checks
    ****Assign Points if Helpful****
    Regards,
    Ravikanth.

  • Error Handling in Forms

    Dear all,
    we are using oracle developer suite 10g r2 with oracle database 10g r2 against windows server 2003.
    Error handling is a very big issue.
    i try to do the following, just correct me, or make the trigger more efficient.
    i face unexpected messages, like a message two time displayed, sometime important message never displayed.
    i just set the :system.message_level =20 in the when-new-form-instance trigger.
    and create on-error trigger like below
    declare
    errcode number:=error_code;dbmserrcode number;dbmserrtext varchar2(200);
    formtxt varchar2(200);
    errtype varchar2(3);
    begin
    --------- user defined database exceptions errors raised by --RAISE_APPLICATION_ERROR
    IF DBMS_ERROR_CODE in (-20738,.......) then
    raise form_trigger_failure;
    end if;
    if error_code=50017 then
    message('duration must be between 0 and 23');message(' ',no_acknowledge);
    raise form_trigger_fialure;
    elsif
    error_code=40202 then
    clear_message;
    message('please provide the required fields.');message(' ',no_acknowledge);
    raise form_trigger_fialure;
    elsif error_code=50022 then
    clear_message;
    message('time must be in the correct format.');message(' ',no_acknowledge);
    raise form_trigger_fialure;
    end if;
    if error_code in (40509,40508) then
    dbmserrcode:=dbms_error_code; dbmserrtext:=dbms_error_text;
    if dbmserrcode=-1438 then
    clear_message;
    message('your number is too large.try again.');message(' ',no_acknowledge);
    raise form_trigger_fialure;
    elsif dbmserrcode=-1400 then
    clear_message;
    message('your forgot to provide a value.try again.');message(' ',no_acknowledge);
    raise form_trigger_fialure;
    elsif dbmserrcode=-2291 then
    clear_message;
    message('header is not found for this insertion.');message(' ',no_acknowledge);
    raise form_trigger_fialure;
    elsif dbmserrcode=-1 then
    clear_message;
    message('record already exists');message(' ',no_acknowledge);
    raise form_trigger_fialure;
    else
    clear_message;
    message(error_code||' : '||error_text);message(' ',no_acknowledge);
    raise form_trigger_fialure;
    end if;
    else
    clear_message;
    message(error_code||' : '||error_text);message(' ',no_acknowledge);
    raise form_trigger_fialure;
    end if;
    exception
    when others then
    if dbms_error_code=-20738 then
    clear_message;
    message('Error: absent or later record errror from the database trigger.);
    raise form_trigger_failure;
    elsif .....
    esle
    clear_message;
    message(error_code||' : '||error_text);message(' ',no_acknowledge);
    raise form_trigger_fialure;
    end if;
    end;any suggession?
    Regards

    i must come with a plsql code which handle every error and suppress unnecessary messages.Good luck with that. No matter how well thought out or planned, you're not going to be able to take all scenarios into account. The design of an exception handler takes time to address all possible scenarios you want handled and even then, you're not likely to handle every situation in the beginning.
    could we implement the oracle ebusiness error handling procedures here in our application?if yes, then where could we find that procedure?>
    I've dug through that code and it is not a thorough as you think it is. It handles specific situations and then defaults the rest. It is a good model for your own exception handler, however. That is what I used it for. :) I don't recall which library it is in, but I'll look around and if I find it, I'll post it.
    I agree with Andreas's comment...
    Simply remove your ON-ERROR-trigger, then you have a default. That's nothing better or worse than what apex has.I'm not too familiar with Apex; I've worked with it, but it's been a little while. Even with Apex, you're going to have to develop a customized Exception Handler so more intuitive or application specific messages are displayed in response to an exception.
    As to Andreas's comment...
    For your own error-handling... The "simplest" way in my eyes is create your own error-table where you have appropiate columns for the error-code and the error-type (FRM,ORA,Whatever), then in your ON-ERROR-trigger read the appropiate record from that table and show the error. You could also have a flag in your table which decides what to do with a specific error (Show as Message, Show as Alert, Don't show at all) and react accordingly.This is exactly what we implemented in our application. We created a set of tables that contain all of the Oracle Runtime errors and their attributes (Error Type, Severity Level, etc). Then we wrote a standard On-Error trigger that is subclassed to all of our forms that calls a Library "On_Error" package. This package evaluates the exception raised, compares it to the database entry for the error and then displays an appropriate message depending on the Severity Level, Error Type (ORA or FRM) and Message Type (Informational, Error, Caution) and we display the message in either the Status Bar, Note Alert, Caution Alert or Stop Alert or it is supressed. If an error is not found in the table, then it is displayed in a Stop Alert as an "Unhandled Exception." The second table I mentioned contains all of the messages used by our application and is cross referenced with the table that contains the Oracle messages. By simply assigned one of our messages to an Oracle message - our package will display our message instead of the default Oracle Message. Yes, this took sometime to build and test and once implemented, we spent another couple of months perfecting it, but now it is pretty solid and we haven't had to modify it in over a year.
    While this level of complexity may be overkill for your application, it does offer the greatest flexibility in the long-run. Also, if your application must support multiple languages, having all of your messages in a table make internationalization extremely easy. :)
    The point of all this, is that no matter which system you use (Forms, Apex, or Java) you will still need to invest some time into designing an Excpeiton Handling method for your application and then implement it accross the application. This is not something you can develop in a short period of time and it will not be perfect in the beginning. However, in the long-run, you will be happy you spent the time up-front to build a flexible and robust Exception Handling system.
    Craig...

  • Step by Step documents for Process Chain Error Handling with Screen Shots

    Hi
    Is anybody having Step By Step Documents for Process Chain Error Handling with Screen Shots ?. Please forward it to me to my e-mail [email protected] .  I will reward points to u immediately.
    bye
    Aamira Khan

    Hi,
    You can find lots of topic related to process chain issues in SDN.Please make a search in SDN.
    https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_library&query=process+chain&adv=true&sdn_author_name=&sdn_updated_on_comparator=ge&sdn_updated_on=&sortby=cm_rnd_rankvalue
    Regards.

  • Module Pool Error handling

    Hi friends,
    This issue regarding Module Pool Error Handling
    How to handle the multiple error on the same screen ,
    For example in the below code you could see "Carrid is Invalid"  when carrid is entred wrongly
    "in the same way i also need " Connid is invalid" When the customer entres the wrong Connid
    *Select single * from sflight into e_sflight*
    where carrid = e_sflight-carrid AND
    connid = e_sflight-connid AND
    fldate = e_sflight-fldate.
    IF NOT sy-subrc IS INITIAL.
    MESSAGE ID 'ZADT' TYPE 'E'
    NUMBER '002' WITH 'Carrid is invalid'.
    Kindly let me know your feedback\
    Thank you
    Sandy

    Hi Sandy,
    in PAI. " Also try to close your Questions as currently 8 out of 8 are unresolved
    Chain. " For More info take F1 help on this Key word
    field : carrid, connid. " These are the Screen Field names
    module validate on chain-request.
    endchain.
    in Program.
    module validate.
    select single carrid into carrid
         from scarr
          where carrid = carrid.
    if sy-subrc = 0.
    select single connid into connid
              from sflight
              where connid = connid,
    if sy-subrc NE 0.
    message 'Enter Valid Connid' type 'E'.
    endif.
    else.
    message 'Enter Valid Carrid' type 'E'.
    endif.
    endmodule.
    Cheerz
    Ram
    Edited by: Ramchander Krishnamraju on Apr 12, 2010 11:48 AM

  • Multiple Error Messages, starting With 500 null Error

    I've been experiencing multiple error messages with
    ColdFusion 7.0 on Ubuntu Linux/Apache2 for the past several days,
    starting with the 500 null error (see
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=f9e312a2),
    which ocurred on only part of the site (a set of forms requiring
    remote login). Now, the following errors are appearing on various
    CF forms: "An I/O error while manipulating the sort index" and "An
    exception occurred when setting up mail server parameters" and
    finally, "No space left on device." All these errors are occurring
    on add/edit forms and cffile upload forms that were working fine a
    few hours ago and that haven't been changed.
    Right now, I'm replacing the license.properties file to deal
    with the 500 null error. My question is, has anyone else
    experienced this smattering of other error messages in conjunction
    with the 500 null error? Or fast on the heels of it? What's the
    deal with the 500 null error, anyway? Has Adobe made any progress
    with this issue?

    Okay, this is a followup to my previous post (
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=143&threadid=1165765&en terthread=y).
    Replacing the license.properties file isn't sufficient in
    addressing the 500 null error. We are running Ubuntu Linux. I
    understand that I need to replace jvm 1.5 with jvm 1.4.2. I'm
    honestly not sure how to detect on Linux which version of jvm is
    running or how to make sure that version 1.4.2 is what is running
    when we reinstall ColdFusion. If someone could help me with this,
    I'd appreciate it. The 500 null error is eating my Web site like
    the Langoliers. Even some static .cfm pages are failing now.

  • Tour 9630 e-mail issues

    New to the Tour and BB, two e-mail issues. It won't see or open e-mail PDF attachments from just one particular sender (he uses a Mac, but shouldn't matter). BB opens other PDF's fine, and they open in my laptop's Outlook just fine from this sender (but not on the phone).
    Next, e-mails come in to BB already opened (in both the Messages icon and the Yahoo e-mail icon on the BB), only some stay bold until I click on them? This happens when I have not checked e-mail on BB or on my laptop, yet they still show as opened on BB with just a few staying bold or unopened? I have Auto Open in Holster set to Never, and don't do any reconciling. Any help with the two topics above would be greatly appreciated! Thanks!

    @D55R33WW - The previous client was able to correct this by adjusting the send/recieve frequency within Outlook and in your case within MacMail. 
    More details...
    If there are too many pop connections at once on the account then it will keep other connections from accessing the account and you will receive that error message.
    What I would recommend here is that your customer adjust the frequency (10 mins or more) that their email client checks the mailbox.
    To clarify a bit further, the system can handle the frequent pop connections, but sometimes the email clients fail to close their first connection correctly which leaves it idle on our system for some time.
    Then when they try to connect again they encounter errors because there are already connections for that account.
    http://www.hosting.com/support/microsoft-outlook-2010-/set-send-and-receive-interval-in-ou tlook-2010-
    http://www2.webster.edu/helpdesk/inbox_optimize/send-recieve-mac_mail.html
    If still an on-going issue please reach out to our direct support so we can investigate this further.
    Hope this helps!
    -Sidney

  • Writing an error handler package

    I want to standardize on an error handling package, with a record type declared that is anchored to a table. Some obvious attributes I can think of for the table are the following:
    1. Time stamp
    2. The package that threw the error
    3. The method that threw the error
    4. Any textual content written by the programmer that invoked the package. Perhaps that could be a concatenation of relevant fields with a delimiter for example.
    5. The severity of the error. For example, it could be 'fatal' i.e. can't move any more, 'severe' i.e. threw out junk but leaves the result table with too little content to be practical etc.
    6. The author who wrote the code.
    My questions are:
    (i) In the experience of seasoned writers of libraries in this forum, are there other significant fields (and enumerated values of error types) that you capture, independent of the domain that you are writing this for?
    (ii) Is there an analog of argv[0] of the C language in PL/SQL that provides the package (and method)? names? this way, I can proof against the careless programmer mis-typing.
    (iii) Apart from writing to the db table and perhaps sending e-mail, are there any significant methods to this package that have escaped my admittedly cursory analysis?
    (iv) I am thinking of making it refuse to accept null values for the fields which would force the invoker to populate them when he or she throws an exception. Are there any other things I should force?
    Thanks,
    Srini

    Firstly this is not "error handling" it is logging. They are two different things.
    Secondly, before you go any further down this road I recommend you check out log4plsql. This does quite a lot of what you want and a whole lot more besides. It is not perfect (I discuss some of its shortcomings here but it is a very good starting point.
    Some specifics:
    6. The author who wrote the code.If you know the PACKAGE/METHOD names and you know the version of the software deployed in that environment surely your software version control software will tell you this info?
    ii) Is there an analog of argv[0] of the C language in PL/SQL that provides the package (and method)? names?No. Unfortunately PL/SQL lacks this sort of refection, it would be very useful. One tactic is to expand the logging to include INFO and DEBUG levels, which can be turned off (log4plsql does this). Then the developer gets some benefit from the logging package and that is an incentive to get the names right. Another approach is to use an IDE (such as TextPad) that supports clip libraries; include your logger registration call in the templates for PACKAGE, PROCEDURE and FUNCTION.
    (iii) Apart from writing to the db table and perhaps sending e-mail, are there any significant methods to this package that have escaped my admittedly cursory analysis?Syslog. It is then industry standard. Some people like files.
    (iv) I am thinking of making it refuse to accept null values for the fields which would force the invoker to populate themI think it is an important principle that logging should be as robust as possible - we don't want a gnarly exception thrown because the logging package failed to handle a trivial issue.
    You will get the maximum uptake of your logging package if its API is easy to use and developers can see ready benefits from making it work. Again, DEBUG is the key here: all you need do is make it easier to use your package than typing (and removing!) DBMS_OUTPUT.PUT_LINE calls.
    Cheers, APC

Maybe you are looking for

  • ODI Scenario fails to extract data from Essbase

    Hello, We are running ODI 10.1.3.6.0. When we run a scenario it fails when trying to export data from Essbase. I am pretty new to ODI and can't seem to find the information to fix this error. Thanks in advance for your help. Below is the error. org.a

  • Set Field in IDOC-Segment mandantory?

    Hi everybody, is it possible to mark IDOC-fields in a segment in R/3 as mandantory. I cant see any options in WE31. Thanks Regards Mario

  • Replacement of Session in Java application.

    Hi all, I am from the JSP world. In JSP one can use Session to save data which needs to be stored till the user logs out. If I am writing a standalone application how I could store details such as user ID etc.. till the application dies. Antony Paul

  • Extra spaces when coping from data tab

    When I run a query like "select * from dba_tables" (could be any statement) and then click on a table name and copy it. I then take another statement and say "select count(*) from " and paste what I copied, there are a large number of spaces on the e

  • IPad mail notifications not showing up

    Hi I am not getting any alerts when I get email and so far no Facebook alerts either.