Easiest way to tell if a Job has failed

Apologies if this is the wrong subject but I couldn't figure out which one covered my issue.
We had a SQL Server failover to another server in the cluster. At the time, it was running a Job that has a single call to an SSIS package. That SSIS package calls a number of other packages and takes around 25 to 30 minutes to run all the way through.
Because of that failover, the job was killed. There's no record in the Job log that it ran at all. I've always assumed that this is because the job is not actually logged until the first step finishes, whether it fails or not.
Now, due to a problem in my design of this job, the fact it ran another morning before anyone came to me to ask for help, I've got a lot of tidying up to do. And to make the job more resilient.
But that aside, is there any way to force it to log job starts so that the app support people will have a visual clue that all is not right when they view the Job Activity Monitor? Or do I have to code something myself around checking the SSIS logs I write?
Nick Ryan SQL Server Developer OnePath (NZ) Ltd

Thanks for sharing details with me!!
Might be somewhere we may need some more clarity, so please let me say one more time what I tried to mention.
I see point that I was trying to say is from your line:
There was a suggestion I might be able to put some custom code in there that logs the start of the package. I'm not sure if that was suggesting I actually update the log that the Job Activity Monitor displays - that sounds a little dangerous but would be
ideal if it could be done.
As per my previous exe. when I was working for one of my client and they wanted to track each and every logging for everybody activities then they used to create such logging process by designing their own code and table structure and others and that worked
for them as well. We just need to validate it properly. This can be implemented using so many better applicable dmvs to access multiple queries access and execution state.
I Agree with you:
"When the SQL Server fails over in the middle of the ETL job, obviously the email part is not going to work."
However if you enable the Sql Server Agent Services restart option in job, then each service restart will also alert you and then you can map all these small small information from multiple sources and make sense about what might went wrong by putting these
events logically into statements.
I mean customized solutions are always for us apart from Sql Server Jobs execution logging support.
Also If Team is not ready to cross the jobs monitor and check jobs log files then only process enforcement with proper benefits may help us.
Thanks for allowing me to explain one more time.
Santosh Singh

Similar Messages

  • Easiest way to tell if I'm hacked

    Sorry. Wasn't sure exactly where to put this. I'm a total noob at running our server so I'll put it in this section.
    What's the easiest way to tell if our server has been hacked?
    Many thanks for any help.

    I generally do not recommend running a Mac or any other general-purpose server as a gateway; get an external box (commercial product or a spare dual-network-controller x86 box running Smoothwall or M0n0wall or pfSense) and use that to keep the load and the logging off your server, and to simplify your network configuration.
    Misconfigured DNS services is the usual trigger for slow Server Admin and Workgroup Manager. (And for similar problems with Server Preferences, though that's not as commonly used around here.)
    Mac OS X Server requires valid DNS for many of its services, and things get wonky when that's not available or not working.
    Start by issuing the following Terminal.app command:
    sudo changeip -checkhostname
    You'll get some character chunder and an OK, or some chunder an an indication of a network or DNS problem.
    Then to further check your DNS, check IP connectivity with ping (via Terminal.app command line and ping server.ip.address.here and and then ping server.example.com, or via the GUI and Applications > Utilities > Network Utility) to determine if you can connect from the client to the server...
    ...Then check forward and reverse DNS. Via Terminal.app, dig server.example.com and dig -x server.ip.address.here to determine if those return valid responses, and that the forward and reverse responses match. Via Network Utility, use the lookup command to lookup by name, then by address.
    DNS is a prerequisite for most everything to do with Mac OS X Server and one of the first things that must be set up, and if DNS is not configured correctly or if the DNS servers are unreachable or unstable, then Server Admin will usually be one of the tools that shows beachballs.
    You can also use Applications > Utilities > Activity Monitor or the shell +top -ocpu+ command to see what's going on; where the activity might be going.
    It's possible you've been hacked, but there are also a number of more, um, benign triggers.

  • Easiest way to tell of any running open applications?

    How is the easiest way to tell if there are any background applications that are running and fastest way to close them all out? 

    Any apps that you have running should appear on your homescreen between your Hub and your homescreen.  If you have apps running, the order from left to right is Hub, running apps and homescreen.  Unfortunately, there is no way to close 'em all down at once; you have to do it one by one.  At least now you know where they're found.  If they're not there between the Hub and the homescreen, they're not running.
    Cheers.  
    - If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated.

  • How to find the job has failed in back ground

    Hi All,
        I have a requirement where i will be running a report online and background.
    If my job has failed in Background, then i have to trigger a mail to the user stating that the job has been terminated.
    Now, How will i know the Job has failed and how should i handle this in my report so as to trigger a mail.
    Hope i am clear with my requirement.Kindly clarify if possibe with any func modules or sample codings.
    Thanks in advance
    Nanda

    Hi try that:
    try:
    1) fm job_open
    2) submit report
    3) fm job_close
    4) finally select table TBTCO
    example:
    DATA: jobcount_test LIKE tbtcjob-jobcount,
            job_released    LIKE btch0000-char1,
            rcode(2),
            strtimmed LIKE btch0000-char1 VALUE 'X'.
      DATA jobname  LIKE tbtcjob-jobname.
      CONCATENATE  'TEST_' sy-repid '_' sy-datum INTO jobname.
      CALL FUNCTION 'JOB_OPEN'
           EXPORTING
                jobname          = jobname
           IMPORTING
                jobcount         = jobcount_test
           EXCEPTIONS
                cant_create_job  = 1
                invalid_job_data = 2
                jobname_missing  = 3
                OTHERS           = 4.
      IF sy-subrc NE 0.
        MESSAGE x000(yp) WITH 'JOB-START ' jobname ' failed !!!'.
      ELSE.
    *--Step insert
        SUBMIT rsbdcsub
        USER sy-uname VIA JOB jobname NUMBER jobcount_test
        WITH mappe = map
        WITH von = pdatum
        WITH z_verarb = 'X'
        AND RETURN .
        CALL FUNCTION 'JOB_CLOSE'
             EXPORTING
                  jobcount             = jobcount_test
                  jobname              = jobname
                  strtimmed            = strtimmed
                  targetsystem         = sy-host
             IMPORTING
                  job_was_released     = job_released
             EXCEPTIONS
                  cant_start_immediate = 1
                  invalid_startdate    = 2
                  jobname_missing      = 3
                  job_close_failed     = 4
                  job_nosteps          = 5
                  job_notex            = 6
                  lock_failed          = 7
                  OTHERS               = 8.
        IF sy-subrc > 1.
          MESSAGE x000(yp) WITH 'JOB-CLOSE ' jobname ' failed!!!'.
        ENDIF.
      ENDIF.
    Andreas

  • In the Lync Database, is there a way to tell if a call has been answered or gone to voicemail?

    We are using Lync 2010.
    In Lync, if a call is not answered, and does not go to voicemail, is anything recorded in the Lync database ?
    It looks to me as if nothing is recorded in the database, but I was wondering if there is an option in Lync configuration to make Lync record such activity in its database.
    Is there a way to tell from the LYnc database if a call was answered by a person or went to voicemail
    I have been looking at the LCSCDR database, at the sessionDetails table, but cannot see a way of distinguising between these scenarios.

    Nothing is recorded if the call is not answered and does not go to voicemail.  This is a source of frustration for me, and there is no way that I'm aware of to record this information to the LCSCdr database.
    To see if voicemail answered, you want to look at the client version that answered the call, voicemail will say ExchangeUM.  You can see me messing around with this in the below example, pulling from SessionDetails.User2ClientVerId and matching against
    the ClientVersions table.
    Please remember, if you see a post that helped you please click "Vote As Helpful" and if it answered your question please click "Mark As Answer".
    SWC Unified Communications
    This forum post is based upon my personal experience and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • What is the easiest way to tell if your time capsule has backed up your hard drive, as my mac has been recalled for a replacement hard drive

    Your views would be appreciatted, my imac has recently been recalled for a replacement hard drive, would it be easier just to purchase a external hard drive to be on the safe side for backing up my photos etc?
    I have a 1GB time capsule but to be honest not sure how it operates it states it oldest back up is the 11th October
    201GB of 998 available or would it best to buy a external hard drive and back up using this.
    thanks
    Benjoe08

    You are very wise.. !!
    It can be awfully hard restoring the Mac from TM.. as many posters here have discovered.
    IMHO.. for certainty.. get an external drive.. they are not expensive.. do a full backup to it.
    I would even download superduper and make a clone of the existing drive and boot from it.. this means when the Mac is returned if all else fails.. you can use the external clone as a boot and have exact OS as you have right now.

  • Is there any way to tell when a task has a lock

    Normally I can just keep track of it. But upon an external termination I can get into problems. If I don't release a lock, well it stays locked. If I release it and don't have it I get a run time error. But I can't find a way to ask a lock if I have it.

    ChasGI,
    Unfortunately, there is not a way to query a lock to determine what/who posseses it.
    The Get Status lock operation returns the Number of Threads Waiting to Lock the Lock. You could get creative with that.
    Matt P.
    Applications Engineer
    National Instruments

  • How to tell if a user has logged in to teststand

    I am using a custom LV UI. I would like to know if there is a way to tell if the user has clicked the cancel button on the standard TS login. I would like to keep using the standard TS login if possible.
    Thanks
    Joe.
    "NOTHING IS EVER EASY"

    Hi Joe,
    Unfortunately, the default TestStand login code uses a TestStand engine method (DisplayLoginDialog) to handle this dialog box.  The method returns a user object based on the user's selections, and cannot be modified.  However, a clone of theTestStand login code developed in LabVIEW can be downloaded from the developer zone.  This set of VIs does not use this method, and will allow you to configure what data is returned by the dialog.The files can be downloaded here:
    LabVIEW based Login Reference Example for Teststand
    Let me know if you need any help configuring this code, and I'll be happy to help!
    Al B.
    Staff Software Engineer - TestStand
    CTA/CLD

  • Can't tell if a 2960X has a stack module installed.

    I'm trying to determine if several C2960X switches we own have stack modules installed.  When I do a show inventory the module is not called out.  I can't find a way to tell if a switch has a module installed without physically looking at the switch.  Anyone have an idea?
    I'm pretty sure that site1 does NOT have a stack module installed:
    site1#sh inve
    NAME: "1", DESCR: "WS-C2960X-24PS-L"
    PID: WS-C2960X-24PS-L  , VID: V01  , SN: ZZZZZZZZZZZ
    NAME: "GigabitEthernet1/0/25", DESCR: "1000BaseLX SFP"
    PID: GLC-LH-SMD          , VID: V01  , SN: ZZZZZZZZZZZ
    site1#sh swit detail
    Switch/Stack Mac Address : 0000.0000.0000
                                               H/W   Current
    Switch#  Role   Mac Address     Priority Version  State
    *1       Master 0000.0000.0000     1      4       Ready               
             Stack Port Status             Neighbors     
    Switch#  Port 1     Port 2           Port 1   Port 2
      1       Down       Down             None     None
    site1#
    I pretty sure that site2 DOES have a stack module installed:
    site2#sh inv
    NAME: "1", DESCR: "WS-C2960X-48FPS-L"
    PID: WS-C2960X-48FPS-L , VID: V01  , SN: ZZZZZZZZZZZ
    site2#sh swit det
    Switch/Stack Mac Address : 0000.0000.0000
                                               H/W   Current
    Switch#  Role   Mac Address     Priority Version  State
    *1       Master 0000.0000.0000     1      4       Ready               
             Stack Port Status             Neighbors     
    Switch#  Port 1     Port 2           Port 1   Port 2
      1       Down       Down             None     None
    site2#

    Yep, that does it. 
    Thanks!!!

  • The Share Operation has failed: QuickTime Error: -50

    I just updated to FCP X 10.0.8 and all of the sudden I am getting share errors when I attempt to export.  I have tried sharing to youtube and sharing for apple devices at 1280px X 720px using H.264 codec.  Each time I get a quicktime error: -50.
    I am editing on a Mac Mini 2.7 GHZ Intel i7.  8GB memmory OS 10.8.3.  The video files are AVCHD 1920x1080 24fps and live on an external 6 tb GTech Raid external hard drive.
    So far, I have tried deleting both my project file's render files and event render files.  I have copied the project to a new project and re-rendered.  Each time, I am seeing that several tiny little segments are showing as un-rendered (orange bars above clip on timeline).   I'm guessing that this might have something to do with the error?
    I am not using any images and the music I am using is an AIFF file.  I re-timed some of the clips for slow motion.
    When I try to share as "export file" > Video and Audio > Apple Pro Res 422 at 1920 x 1080 I get "The share operation Export File has failed" The operation could not be completed because an error occurred when creating frame 1403 (error - 1).  But I'm not sure how to view frame numbers.
    Any help would be appreciated.  Thank you.

    I've tried deleting all the render files several times and it doesn't work. 
    Interestingly enough, when I copy the bad clips individually to a new project and then export them, they export just fine.  They do not have the weird orange render bars. 
    Check out this link to see a screenshot of my timeline.
    I'm not sure if my clips are optimized.  My import preferences have the "create optimized media" checkbox checked, but when I actually imported the files, I did not check the "create optimized media" checkbox.  Although, on my hard drive there is a folder for transcoded media > high quality media and it has some clips in there, including the bad clips.  So I guess it created optimized media?  Is there another way to tell if a clip has been optimized.
    Here is a screenshot of my preferences.
    Here are my project properties.

  • SMTP send failure doesn't indicate which address field has failed?

    Hi,
    I have question regarding Transport.send method. I try send a message (in which to one of the address is invalid e.g. BCC field). I get the exception SendFailedException. I catch the exception and try to send the message again to all ValidUnsentAddresses. But in the exception or in nested exception there is no way I know which address field has failed?
    I can always compare the valid unsent addresses with addresses in message and can remove the invalid from the message but thought there must be some way to know it in exception it self?
    Regards

    Sorry, no, it doesn't tell you which field the address came from, because in fact the
    address may not come from any field at all.
    In the normal case the addresses from all fields are collected together and used as
    the list of addresses to send the message to. But by using the appropriate sendMessage
    method, you can send the message to any addresses you want, whether they appear in
    the message or not.

  • Error message if job scheduling fails.

    Hi,
    I want to catch the message if scheduling fails and send to an email id.
    can this be done?
    how can we do this?
    thanks in advance
    Vikash.

    Hi Vishal,
    I can elaborate on that. I dont have a sample code with me.
    Steps:
    1) Consider the job which is scheduled with the help of SM36 as Job_A
    2) Now, develop one program which needs to be incorporated as Job_B. This Job_B moniors and send whether the first job has triggered successfully, running or not.
        a) Now, to develop the program I would request you to take a look at the table TBTCO first.
        b) This table will have details of all the jobs that were scheduled in the system.
        c) Create a work area of the type TBTCO structure and try to fetch the details of the job which you 
            have triggered already.
        d) Now, check the value of the status of the job in the work area.
        e) if it is active/ready/released, then dont take any action.
         f) if it is cancelled or failed, then try to implement the logic of sending an e-mail with the contents
            saying the job has failed to run.
    3) Note: Remember to run this monitoring job Job_B after sometime the Job_A has started.
    Hope this much information would pull your mind to incorporate it easily
    Thanks,
    Babu Kilari

  • My father-in-law's photo library has thousand of "stock photos"(such as the guitar from garage band) surrounding his actual photos.  What is the easiest way for me to clean this up for him? Karen

    My father-in-law's photo library has thousand of "stock photos"(such as the guitar from garage band) surrounding his actual photos.  What is the easiest way for me to clean this up for him? Karen

    Can you tell me how to do that and how to do it without erasing his actual photos which are intermingled?
    ThanK You.
    Karen
    PS We are only in town for a few more hours & I'd love to get this done for him. He's in PA & I'll never be able to walk him through this by phone:)

  • HT1338 My Mac Book Pro is currently runnng OS X v10.5.8. When I check for updates by clicking the apple icon it tells me that my computer is up to date.  What is the easiest way to upgrade to OS X Lion?  Do I need to get OS X Snow Leopard first?

    My Mac Book Pro is currently runnng OS X v10.5.8. When I check for updates by clicking the apple icon it tells me that my computer is up to date.  What is the easiest way to upgrade to OS X Lion?  Do I need to get OS X Snow Leopard first?

    Yes, there's been no updates to 10.5.8 for quite awhile, next is paid Upgrades.
    Snow Leopard/10.6.x Requirements...
    General requirements
       * Mac computer with an Intel processor
        * 1GB of memory (I say 4GB at least)
        * 5GB of available disk space (I say 30GB at least)
        * DVD drive for installation
        * Some features require a compatible Internet service provider; fees may apply.
        * Some features require Apple’s MobileMe service; fees and terms apply.
    Which apps work with Mac OS X 10.6?...
    http://snowleopard.wikidot.com/
    It looks like they might still have it...
    http://store.apple.com/us/product/MC573Z/A?fnode=MTY1NDAzOA
    If it's a core Duo & not a Core2Duo, then it'll only run in 32 bit mode.
    Lion/101.7 System requirements
        •    x86-64 processor (Macs with an Intel Core 2 Duo, Intel Core i3, Intel Core i5, Intel Core i7, or Xeon processor.)
        •    At least 2GB of memory, I say 6 GB
        •    Latest version of Mac OS X Snow Leopard (10.6.8), with the Mac App Store installed
        •    At least 4GB of disk space for downloading, I say 50 GB.
    Like Snow Leopard, Lion does not support PowerPC-based Macs (e.g., Power Macs, PowerBooks, iBooks, iMacs (G3-G5), eMacs).
    Lion also does not support 32-bit Intel Core Duo or Core Solo based Macs. Rosetta is no longer available in Lion, which means Lion no longer supports PowerPC applications.
    http://en.wikipedia.org/wiki/Mac_OS_X_Lion#System_requirements
    http://www.apple.com/macosx/how-to-buy/
    What applications are not compatible with Mac OS X 10.7 "Lion"?
    http://ow.ly/5Iz09
    http://roaringapps.com/apps:table

  • Please tell me the way to find the person who has booked the conferenceroom

    HI All,
    When i am trying to book a conference room. it was showing the status a s busy in zimbra.But i am not able to find the person who has booked the room ?? how do i know the person who has booked teh conference room??if i can know that person i can negiotate with him abt the room.
    please tell me the way to find the person who has booked teh conference room ?????
    Thanks in advance
    Venugopal

    Hi Venugopal,
    If you add approvers using beekeeper for that resource AND that you use Outlook, you can see who is 'in charge' of that resource, ie the person that will hand over the keys to that room when you need them. That person is the only one who may be able to tell you who has booked the resource, you can then go and 'negociate' ;o)
    In Zimbra (1.5.1.5) you can't see the contacts..
    hth
    David

Maybe you are looking for

  • Apps no longer working after Mavericks install yesterday

    Hello all and thank you in advance for any help. I installed Mavericks yesterday and since the install my iMac has been running horribly. I can not get applications to work (Preview, App Store, iPhoto, ect). As soon as I click on them they quit unexp

  • How to catalogue "old" removable media

    Hi, I shoot photos, download them from my SD memory into my hard disk, and import them using LR 1.3. Soon my hard disk gets full and so I can export them burning them onto dvds, retaining all related metadata. But, what if I want to import from optic

  • Add another Node EBS 11i

    Hi all, this thread is in continuation with thread. Re: EBS upgrade path Applicaiotn=11.5.10.2 DB=10.2.0.5.0 OS= OEL 4.8 Nodes configuration is 1+1+1 i.e. Node Name erpapps (Admin+Web+Form+Concurrent) erpdb db tier erpdrdb standby database <b>want to

  • Pacman fails to synchronise.

    This happened yesterday after i decided to install arch on my desktop(its been on my laptop for a month or two now) i cannot sync with any server at all on either my laptop or my desktop both with the same error messages. the error: :: Synchronising

  • Fuji raw file problems

    Lr 4.4 dng file looks much worse than jpeg out of my Fuji 770exr camera ... why would this happen?  Thanks