Is it possible to restart jobs defined using BMV0 with these errors?

Hi All,
I have got this direct input job defined in BMV0 and scheduled as an event related periodic job. The job gets restarted when the errors are 'system_cancelled' , 'Dataset cant open' etc., but when the job errors are 'Session cant be protected', 'error due system shutdown',the job is not getting restarted and its giving a message 'A job with the same name has not yet ended'.this message is getting displayed when the job gets cancelled....If I check in SM37 , its cancelled and the error in the job log is 'error due to system shutdown' or 'session cant be protected'.
So Is it possible for this periodic job to get triggered even when the latter set of errors occur?
When the event triggers agin, the job gets restarted if the error is 'system_cancelled' but if they are the above set of errors, the job gets cancelled again and the message in the job log of sm37 is a job with the same name has not yet ended.
Message was edited by: Sushma Anuprava

Hi i have same problem as u mentioned as below.
I have got this direct input job defined in BMV0 and scheduled as an event related periodic job. The job gets restarted when the errors are 'system_cancelled' , 'Dataset cant open' etc., but when the job errors are 'Session cant be protected', 'error due system shutdown',the job is not getting restarted and its giving a message 'A job with the same name has not yet ended'.this message is getting displayed when the job gets cancelled....If I check in SM37 , its cancelled and the error in the job log is 'error due to system shutdown' or 'session cant be protected'.
So Is it possible for this periodic job to get triggered even when the latter set of errors occur?
When the event triggers agin, the job gets restarted if the error is 'system_cancelled' but if they are the above set of errors, the job gets cancelled again and the message in the job log of sm37 is a job with the same name has not yet ended.
Did you get this resolved ? is so plz let me know.
Thanks in advance !

Similar Messages

  • SSIS Job is getting failed with an error "0x00000005 : Failed to compiled scripts contained in the package.

    Hi All. Could anyone resolve my issue.
    I was created a package with an Script task written in VB.Net.
    The Package was executing Successfully in BIDS.
    But when i tried to exceute the same using Sql server Agent Job, Its getting Failed with the below error message
    "Executed as user: Admin. Microsoft (R) SQL Server Execute Package Utility  Version 11.0.2100.60 for 32-bit  Copyright (C) Microsoft Corporation. All rights reserved.    Started:  5:12:27 PM  Error: 2013-03-13 17:12:32.33    
    Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors. 
    End Error  Error: 2013-03-13 17:12:32.33     Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: BC30179 - enum 'ScriptResults' and enum 'ScriptResults' conflict
    in class 'ScriptMain'., ScriptMain.vb, 156, 22  End Error  Error: 2013-03-13 17:12:32.36     Code: 0x00000005     Source: Checking Alcon Files Checking Alcon Files     Description: The binary
    code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:34.28     Code: 0x00000005    
    Source: Formating Excel Sheet Formating Excel Sheet     Description: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.  End Error  Error: 2013-03-13 17:12:34.28    
    Code: 0x00000005     Source: Formating Excel Sheet Formating Excel Sheet     Description: BC30179 - enum 'ScriptResults' and enum 'ScriptResults' conflict in class 'ScriptMain'., ScriptMain.vb, 191, 22  End Error 
    Error: 2013-03-13 17:12:34.29     Code: 0x00000005     Source: Formating Excel Sheet Formating Excel Sheet     Description: The binary code for the script is not found. Please open the script in the
    designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:51.56     Code: 0x00000004     Source: Checking Alcon Files      Description:
    The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.  End Error  Error: 2013-03-13 17:12:51.56     Code: 0xC0024107    
    Source: Checking Alcon Files      Description: There were errors during task validation.  End Error  DTExec: The package execution returned DTSER_FAILURE (1).  Started:  5:12:27 PM  Finished: 5:12:51 PM 
    Elapsed:  24.336 seconds.  The package execution failed.  The step failed."
    Please give some solution to this.
    Thanks in advance

    Are you editing this job in SQL 2012? Is it wrapping your paths in \"? Like for example does the command line tab on the step look like this:
    /FILE "\"D:\yourPathGoesHere.dtsx\""  /CONFIGFILE "\"D:\yourPathGoesHere.dtsConfig\"" /CHECKPOINTING OFF /REPORTING E
    That's the problem I had, and I resolved it by recreating the whole thing via SQL Script and getting rid of all those \" things. I think that is preventing SSIS from looking up the precompiled binaries for your Script Task. So you should edit the command
    line manually:
    /FILE "D:\yourPathGoesHere.dtsx"  /CONFIGFILE "D:\yourPathGoesHere.dtsConfig" /CHECKPOINTING OFF /REPORTING E
    Please write back whether that helps you. David Dye's answer didn't help me at all.

  • My computer keeps restarting on osx mountain lion with this error message:

    Interval Since Last Panic Report:  104 sec
    Panics Since Last Report:          1
    Anonymous UUID:                    08869DB0-7F78-4C11-90A9-1D35FC7DBFC6
    Fri Jul 13 12:38:41 2012
    panic(cpu 4 caller 0xffffff80002c4794): Kernel trap at 0xffffff7f823d59b1, type 14=page fault, registers:
    CR0: 0x0000000080010033, CR2: 0x0000000000000008, CR3: 0x000000002495e04e, CR4: 0x00000000001606e0
    RAX: 0xffffff7f823d5a84, RBX: 0x0000000000000077, RCX: 0x0000000000000000, RDX: 0x00000000000f6e6f
    RSP: 0xffffff80f1ab39b0, RBP: 0xffffff80f1ab39c0, RSI: 0xffffff8027c7f800, RDI: 0xffffff802672d000
    R8:  0x0000000000000075, R9:  0xffffff7f8242f380, R10: 0xffffff80f1ab392c, R11: 0xffffff80f1ab3930
    R12: 0xffffff8017a9f188, R13: 0xffffff802672d000, R14: 0xffffff80d39d0000, R15: 0xffffff802672d000
    RFL: 0x0000000000010282, RIP: 0xffffff7f823d59b1, CS:  0x0000000000000008, SS:  0x0000000000000010
    CR2: 0x0000000000000008, Error code: 0x0000000000000002, Faulting CPU: 0x4
    Backtrace (CPU 4), Frame : Return Address
    0xffffff80f1ab3660 : 0xffffff8000220792
    0xffffff80f1ab36e0 : 0xffffff80002c4794
    0xffffff80f1ab3890 : 0xffffff80002da55d
    0xffffff80f1ab38b0 : 0xffffff7f823d59b1
    0xffffff80f1ab39c0 : 0xffffff7f823d9f7d
    0xffffff80f1ab3b00 : 0xffffff7f823d6ed4
    0xffffff80f1ab3b60 : 0xffffff800065593e
    0xffffff80f1ab3b80 : 0xffffff800065621a
    0xffffff80f1ab3be0 : 0xffffff80006569bb
    0xffffff80f1ab3d20 : 0xffffff80002a3f08
    0xffffff80f1ab3e20 : 0xffffff8000223096
    0xffffff80f1ab3e50 : 0xffffff80002148a9
    0xffffff80f1ab3eb0 : 0xffffff800021bbd8
    0xffffff80f1ab3f10 : 0xffffff80002af140
    0xffffff80f1ab3fb0 : 0xffffff80002dab5e
          Kernel Extensions in backtrace:
             com.apple.driver.AppleIntelHD4000Graphics(7.2.8)[6B02D782-A79F-399C-81FD-353EBF F2AB81]@0xffffff7f823cd000->0xffffff7f82433fff
                dependency: com.apple.iokit.IOPCIFamily(2.7)[C0404427-3360-36B4-B483-3C9F0C54A3CA]@0xffffff 7f80829000
                dependency: com.apple.iokit.IONDRVSupport(2.3.4)[474FE7E9-5C79-3AA4-830F-262DF4B6B544]@0xff ffff7f8088d000
                dependency: com.apple.iokit.IOGraphicsFamily(2.3.4)[EF26EBCF-7CF9-3FC7-B9AD-6C0C27B89B2B]@0 xffffff7f80854000
    BSD process name corresponding to current thread: Google Chrome He
    Mac OS version:
    11E2620
    Kernel version:
    Darwin Kernel Version 11.4.2: Wed May 30 20:13:51 PDT 2012; root:xnu-1699.31.2~1/RELEASE_X86_64
    Kernel UUID: 25EC645A-8793-3201-8D0A-23EA280EC755
    System model name: MacBookPro10,1 (Mac-C3EC7CD22292981F)
    System uptime in nanoseconds: 914746831561
    last loaded kext at 10232972675: com.apple.driver.AppleHWSensor          1.9.5d0 (addr 0xffffff7f824f1000, size 28672)
    last unloaded kext at 511123964876: com.apple.iokit.IOEthernetAVBController          1.0.1b1 (addr 0xffffff7f818db000, size 20480)
    loaded kexts:
    com.apple.driver.AppleHWSensor          1.9.5d0
    com.apple.filesystems.autofs          3.0
    com.apple.driver.AppleMikeyHIDDriver          122
    com.apple.driver.AGPM          100.12.69
    com.apple.driver.ApplePlatformEnabler          2.0.5d3
    com.apple.driver.X86PlatformShim          5.0.0d8
    com.apple.driver.AppleHDA          2.2.3f13
    com.apple.driver.AppleUpstreamUserClient          3.5.9
    com.apple.driver.AppleMikeyDriver          2.2.3f13
    com.apple.driver.AudioAUUC          1.59
    com.apple.driver.AppleIntelHD4000Graphics          7.2.8
    com.apple.driver.AppleSMCPDRC          5.0.0d8
    com.apple.iokit.IOUserEthernet          1.0.0d1
    com.apple.iokit.IOBluetoothSerialManager          4.0.7f2
    com.apple.GeForce          7.2.8
    com.apple.driver.AppleSMCLMU          2.0.1d2
    com.apple.Dont_Steal_Mac_OS_X          7.0.0
    com.apple.driver.AudioIPCDriver          1.2.3
    com.apple.driver.ApplePolicyControl          3.1.32
    com.apple.driver.AppleMuxControl          3.1.32
    com.apple.driver.AppleLPC          1.6.0
    com.apple.driver.AppleMCCSControl          1.0.33
    com.apple.driver.AppleIntelFramebufferCapri          7.2.8
    com.apple.driver.BroadcomUSBBluetoothHCIController          4.0.7f2
    com.apple.driver.AppleUSBTCButtons          227.6
    com.apple.driver.AppleUSBTCKeyboard          227.6
    com.apple.AppleFSCompression.AppleFSCompressionTypeDataless          1.0.0d1
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib          1.0.0d1
    com.apple.BootCache          33
    com.apple.driver.XsanFilter          404
    com.apple.iokit.IOAHCIBlockStorage          2.0.4
    com.apple.driver.AirPort.Brcm4331          560.7.21
    com.apple.driver.AppleSDXC          1.2.2
    com.apple.driver.AppleUSBHub          5.0.7
    com.apple.driver.AppleEFINVRAM          1.6.1
    com.apple.driver.AppleAHCIPort          2.3.0
    com.apple.driver.AppleUSBEHCI          5.0.7
    com.apple.driver.AppleUSBXHCI          1.0.7
    com.apple.driver.AppleSmartBatteryManager          161.0.0
    com.apple.driver.AppleACPIButtons          1.5
    com.apple.driver.AppleRTC          1.5
    com.apple.driver.AppleHPET          1.7
    com.apple.driver.AppleSMBIOS          1.9
    com.apple.driver.AppleACPIEC          1.5
    com.apple.driver.AppleAPIC          1.6
    com.apple.driver.AppleIntelCPUPowerManagementClient          195.0.0
    com.apple.nke.applicationfirewall          3.2.30
    com.apple.security.quarantine          1.3
    com.apple.security.TMSafetyNet          8
    com.apple.driver.AppleIntelCPUPowerManagement          195.0.0
    com.apple.kext.triggers          1.0
    com.apple.iokit.IOSCSIArchitectureModelFamily          3.2.1
    com.apple.driver.DspFuncLib          2.2.3f13
    com.apple.iokit.IOSurface          80.0.2
    com.apple.iokit.IOSerialFamily          10.0.5
    com.apple.driver.AppleHDAController          2.2.3f13
    com.apple.iokit.IOHDAFamily          2.2.3f13
    com.apple.iokit.IOAudioFamily          1.8.6fc18
    com.apple.kext.OSvKernDSPLib          1.3
    com.apple.driver.AppleSMBusPCI          1.0.10d0
    com.apple.driver.AppleGraphicsControl          3.1.32
    com.apple.driver.AppleBacklightExpert          1.0.4
    com.apple.driver.X86PlatformPlugin          5.1.1d6
    com.apple.driver.AppleSMC          3.1.3d10
    com.apple.driver.IOPlatformPluginFamily          5.1.1d6
    com.apple.nvidia.nvGK100hal          7.2.8
    com.apple.driver.AppleSMBusController          1.0.10d0
    com.apple.NVDAResman          7.2.8
    com.apple.iokit.IONDRVSupport          2.3.4
    com.apple.iokit.IOGraphicsFamily          2.3.4
    com.apple.driver.AppleUSBBluetoothHCIController          4.0.7f2
    com.apple.iokit.IOBluetoothFamily          4.0.7f2
    com.apple.driver.AppleThunderboltDPInAdapter          1.8.4
    com.apple.driver.AppleThunderboltDPAdapterFamily          1.8.4
    com.apple.driver.AppleThunderboltPCIDownAdapter          1.2.5
    com.apple.driver.AppleUSBMultitouch          230.5
    com.apple.iokit.IOUSBHIDDriver          5.0.0
    com.apple.driver.AppleUSBMergeNub          5.0.7
    com.apple.driver.AppleUSBComposite          5.0.0
    com.apple.driver.AppleThunderboltNHI          1.6.0
    com.apple.iokit.IOThunderboltFamily          2.0.3
    com.apple.iokit.IO80211Family          420.3
    com.apple.iokit.IONetworkingFamily          2.1
    com.apple.iokit.IOUSBUserClient          5.0.0
    com.apple.iokit.IOAHCIFamily          2.0.8
    com.apple.iokit.IOUSBFamily          5.0.7
    com.apple.driver.AppleEFIRuntime          1.6.1
    com.apple.iokit.IOHIDFamily          1.7.1
    com.apple.iokit.IOSMBusFamily          1.1
    com.apple.security.sandbox          177.5
    com.apple.kext.AppleMatch          1.0.0d1
    com.apple.driver.DiskImages          331.7
    com.apple.iokit.IOStorageFamily          1.7.2
    com.apple.driver.AppleKeyStore          28.18
    com.apple.driver.AppleACPIPlatform          1.5
    com.apple.iokit.IOPCIFamily          2.7
    com.apple.iokit.IOACPIFamily          1.4
    Model: MacBookPro10,1, BootROM MBP101.00EE.B00, 4 processors, Intel Core i7, 2.3 GHz, 8 GB, SMC 2.3f28
    Graphics: NVIDIA GeForce GT 650M, NVIDIA GeForce GT 650M, PCIe, 1024 MB
    Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In, 512 MB
    Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54333531533642465238432D50422020
    Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54333531533642465238432D50422020
    AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xEF), Broadcom BCM43xx 1.0 (5.106.198.19.21)
    Bluetooth: Version 4.0.7f2, 2 service, 18 devices, 1 incoming serial ports
    Network Service: Wi-Fi, AirPort, en0
    Serial ATA Device: APPLE SSD SM256E, 251 GB
    USB Device: hub_device, 0x8087  (Intel Corporation), 0x0024, 0x1a100000 / 2
    USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8510, 0x1a110000 / 3
    USB Device: hub_device, 0x8087  (Intel Corporation), 0x0024, 0x1d100000 / 2
    USB Device: hub_device, 0x0424  (SMSC), 0x2512, 0x1d180000 / 3
    USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0262, 0x1d182000 / 5
    USB Device: BRCM20702 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0x1d181000 / 4
    USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8286, 0x1d181300 / 6

    Welcome to Apple Communities
    Open > http://codykrieger.com/downloads/gfxCardStatus-2.2.1.zip Select the NVIDIA GeForce GT 650M and see if the kernel panic ocurrs. If not, it's a driver issue

  • How to use variables with

    I need to get the number of lines in internal table, which would
    be easy, using DESCRIBE TABLE itab LINES lines. But the problem
    is, that I get the name of this internal table in the field of
    another internal table, so I have to use the name of internal
    table as variable, but I don't know how to use variables with
    DESCRIBE TABLE (or if this is possible).

    Hi,
    REPORT ZPRUEBA782 .
    define two tables with diferent structures.
    data: begin of table1 occurs 0,
    registro type i,
    end of table1.
    data: begin of table2 occurs 0,
    registro type i,
    repid like sy-repid,
    end of table2.
    data: rows type i.
    start-of-selection.
    fill them with data
    do 1000 times.
    table1-registro = sy-tabix.
    append table1.
    enddo.
    do 1757 times.
    table2-registro = sy-tabix.
    table2-repid = sy-repid.
    append table2.
    enddo.
    call a form that receives as input the table and returns the number
    of rows as output.
    perform howmanyrows tables table2 changing rows.
    break-point. "evaluate the number of rows
    perform howmanyrows tables table1 changing rows.
    break-point. "evaluate the number of rows
    end-of-selection.
    form howmanyrows tables itable changing rows.
    rows = 0.
    loop at itable.
    add 1 to rows.
    endloop.
    endform.
    You can try it if you don't find a better solution.
    Cheers,
    Chaitanya.

  • BenQ XL2420T 120 HZ / 3D Ready - May I use this with my iMac?

    Hi.
    My Philips 190B monitor that I have been using with my iMac in Extended Desktop mode recently died so I'm looking for a replacement second monitor.
    I also own a PS3. Well, actually I own two.  One is sick at the moment.
    I would like to replace the Philips with the new BenQ XL2420T monitor.  Use it with my iMac as I did with the Philips (possibly for gaming too) and use it with one, or both, of my PS3s for gaming and 3D Blue Ray movies via HDMI.  Thinking forward I am likely to get into 3D gaming too.
    The BenQ has a 120Hz refresh rate and I wonder if the ATI Radeon HD2600 in my Mac can handle this? It's late 2007 vintage.
    Or with the BenQ XL2420T monitor am I being too ambitious?
    My Philips is currently connected to my iMac using DVI -D by means of an adapter.
    Message was edited by: El Deanio

    lottathings1 wrote:
    BenQ just intro'd a couple of new monitors with a macbook mode to match mac color space.  you might check those out as a 2nd monitor for your imac - they're 1080P and have hdmi input, they're white too. 
    more info is on the Benq US blog at http://info.benq.us/blog/bid/231596/BenQ-s-New-White-Monitors-Offer-Choice-Style -and-Mac-Compatibility
    W.
    Looks rather nice to be sure. It's got DVI-D so it ought to work with my iMac without a problem.  My current monitor is (was) connected this way by means of a small adapter.
    BenQ say it has it has HDMI 1.4 so it can work with consoles.  Doesn't say 3D though, so I assume that is a 'no'. Strange that 3D should be omitted when all the consoles can handle this. 
    In fact I have just downloaded the extra info from BenQ ad the spec looks reallly impressive. I assume that D-Sub is what they call VGA now.  I need  VGA in case I ever bring my old PowerMac 6500/300 out of mothballs. Yes, the white Benq looks like a great second monitor for my iMac.  I'm virtually certain now that it doesn't have 3D but now I'm not so sure about the desirability of having that facility. I'm intrigued by what they say about the 'Reading Mode'.
    Thanks for the heads up, lottathings1. Really given me something to think about.  LOL!

  • PGI using Stock with Special Stock Indicator "E". (STO)

    Hi,
    We are in the process of creating Stock Transfer.
    While doing PGI the System is displaying the following message:
    Only 0 EA of material 1103DGC22LB 08062009 available
    When we executed T Code MMBE, we found the Stock exits with Special Stock Indicator "E".
    Is it possible to do the PGI using Stock with Special Stock Indicator "E"?
    Or what would be best possible to handle this situation.
    Please guide.
    Regards,
    PK

    If the stock has special stock indicator E. then you can see this in MMBe as Sales Order stock. If you dispaly the details, then you can see the Sales Order number and item for which the stock is assigned. Unless there is some reason that you want to take this stock from the sales order (for example the sales order is to be rejected), then you shouldn't take this stock as you will be unable to fullfill the sales order. If you want ot borrow the stock, then you could do a transfer as advised by previous person from sales order stock to own stock and after you get replacement stock transfer some back to sales order stock, to fullfill the order. If you are using MTO then you could also create a new production order assigned to the sales order to make the stock in the special stock segment.
    Rgds
    Richard

  • Can i use automator with photoshop?

    I want to open a Keynote or PPT file select an image, open it in photoshop make the background transparent then save it back in Keynote. is this possible?

    Yes you can use automator with photoshop:
    You might wanna take a look at http://www.automatorworld.com/archives/photoshop-cs-automator-actions/
    But not sure if it does what you are asking for.

  • How to use value in a drop-down list box as "With these Values" parameter?

    Hello, new user.
    I have a drop-down list box on Page 1, upon which the user can choose a study number. The List Box is named "P1_STUDY_NBR".
    Then I have a list, one entry of which goes to my master-detail form, which is Page 6. I would like it to go to the study number that the user choose on Page 1.
    In my target on the create/edit list entry, I put in "Page in this Application", "Page 6", then in Set these items, I put in
    P6_STUDY_NBR
    My question is what to use in With these values, where I want the contents of the P1_STUDY_NBR. I tried:
    &P1_STUDY_NBR
    and that does not work. If I put in one of the study numbers, like 336-00, then it does work, but I want it to pass the study number the user chooses in the list box. How do I refer to the contents of P1_STUDY_NBR?
    -Mary

    Yes, that does work, thanks. I'm now getting the default value I was putting in yesterday rather than an error message, so there must be something loading it, but I'll hunt around for what process might be doing that, or try re-creating the master-detail form again.

  • Timer job defination not visible in central admin

    Hi,
    I have created timer job and added feature ans sheduled it weekly in the code.
    I have deployed it successfully by right click on project=> deploy.
    I can view this .wsp in the manage Farm Solution as Globaly deployed.
    Also I can see the feature in my site collection feture as active.
    I checked GAK also it included the timer job dll.
    I m in Farm Admin group. I restarted Timer service and admin service many times.
    BUT still I am not able to view my timer job defination in the central admin.
    Please suggest any solution.
    Thanks.

    This is code for my job
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Administration;
    using System.Net.Mail;
    using System.Net;
    using System.Collections.Specialized;
    using Microsoft.SharePoint.Utilities;
    namespace SP_MyJob_CustTimerJob
    class MyJob : SPJobDefinition
    public MyJob():base()
    public MyJob(string jobName, SPService service, SPServer server, SPJobLockType targetType): base(jobName, service, server, targetType)
    this.Title = "MyJob";
    public MyJob(string jobName, SPWebApplication webApplication): base(jobName, webApplication, null, SPJobLockType.ContentDatabase)
    this.Title = "MyJob";
    public override void Execute(Guid contentDbId)
    SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory("C:/ChkLog.txt", TraceSeverity.High, EventSeverity.ErrorCritical), TraceSeverity.High, "My job running", null);
    This is code for event reciver
    using System;
    using System.Runtime.InteropServices;
    using System.Security.Permissions;
    using Microsoft.SharePoint;
    using Microsoft.SharePoint.Security;
    using Microsoft.SharePoint.Administration;
    namespace SP_MyJob_CustTimerJob.Features.Feature
    /// <summary>
    /// This class handles events raised during feature activation, deactivation, installation, uninstallation, and upgrade.
    /// </summary>
    /// <remarks>
    /// The GUID attached to this class may be used during packaging and should not be modified.
    /// </remarks>
    [Guid("e999a541-8a4b-4170-884c-82f83853b2ab")]
    public class FeatureEventReceiver : SPFeatureReceiver
    // Uncomment the method below to handle the event raised after a feature has been activated.
    //job name
    const string JobName = "MyJob";
    public override void FeatureActivated(SPFeatureReceiverProperties properties)
    try
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(SPContext.Current.Site.ID))
    using (SPWeb web = site.OpenWeb())
    int day = DateTime.Now.Day;
    SPWebApplication webApp = site.WebApplication;
    foreach (SPJobDefinition spjob in site.WebApplication.JobDefinitions)
    if (spjob.Name == JobName)
    spjob.Delete();
    //shedule job on every week
    MyJob myJob = new MyJob(JobName, webApp);
    SPWeeklySchedule schedule = new SPWeeklySchedule();
    schedule.BeginDayOfWeek = DayOfWeek.Saturday;
    schedule.BeginHour = 1;
    schedule.BeginMinute = 1;
    schedule.BeginSecond = 0;
    schedule.EndSecond = 0;
    schedule.EndMinute = 30;
    schedule.EndHour = 1;
    schedule.EndDayOfWeek = DayOfWeek.Saturday;
    myJob.Schedule = schedule;
    myJob.Update();
    web.AllowUnsafeUpdates = false;
    catch (Exception ex)
    // Uncomment the method below to handle the event raised before a feature is deactivated.
    public override void FeatureDeactivating(SPFeatureReceiverProperties properties)
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(SPContext.Current.Site.ID))
    using (SPWeb web = site.OpenWeb())
    int day = DateTime.Now.Day;
    SPWebApplication webApp = site.WebApplication;
    foreach (SPJobDefinition spjob in site.WebApplication.JobDefinitions)
    if (spjob.Name == JobName)
    spjob.Delete();
    // Uncomment the method below to handle the event raised after a feature has been installed.
    //public override void FeatureInstalled(SPFeatureReceiverProperties properties)
    // Uncomment the method below to handle the event raised before a feature is uninstalled.
    //public override void FeatureUninstalling(SPFeatureReceiverProperties properties)
    // Uncomment the method below to handle the event raised when a feature is upgrading.
    //public override void FeatureUpgrading(SPFeatureReceiverProperties properties, string upgradeActionName, System.Collections.Generic.IDictionary<string, string> parameters)
    Please tell me whats wrong in this code.

  • Creating Job definition using Command line.

    Hi all,
    is there a possibility to create a job through command line, with parameter as CMD and source as any batch file and scheduling it on the fly.
    Let me know...
    Always
    sai.

    yes, you can use ldapmodify to add objectclasses. You should modify cn=schema and follow the objectclasses and attributes syntax. You can check config/schema directory in any dsee instance for examples.
    Other way is adding objectclasses editing directly 99user.ldif schema file whereas dsee is down.

  • Printer is overprinting old jobs on top of new jobs.  Using a Mac with OSx and a HP photosmart for over a year.  this just started happening.

    Printer is overprinting old jobs on top of new jobs.  Using a Mac with OSx and a HP photosmart for over a year.  this just started happening.

    RReset printing system again and the restart in Safe Mode . This will clear some caches,to do this hold down the Shift key when you hear the startup tone until a progress bar appears, after it has fully booted restart normally and add the printer.

  • Is it possible to create user defined control in labview

    in .net we can create user defined contol in which i can put more then one control and,, can use it as single control when needed,, but,, how this possible in labview,,
    actually in my program i have a tab control and,, in that tab control there are 8 pages,, now there are 5 different kind option selection for each page lets say "a" "b" "c" "d" "e",,,,,.,. so,, when i select "a" configuration for tabpage 1 should show.. "a"(control collection)  on tabpage1....and,, same should b possible for all 8 pages............................. this can possible if its possible to create user defined contorl in labview
    while in .net its very easy task i m confused here,..,.
    i put these controls in another 5 different  VI,,,, and tried to call in subpanel but,, i dont find the solution,,,
    Attachments:
    tabcontrol.vi ‏1 KB

    Hi,
    I've tried to open you attachment but LabVIEW tells me it's not a vi... could you check it and repost please ?
    I'm not really sure of what you need but you CAN customize you control in LabVIEW, it is not hard, you just have to know how it works
    Sometimes being good at another programation language confuse you more than it helps because you try to do as you are used to... the difficulty it to "translate" functions from a language to another.
    I do know how frustrating it can be when you think "Damned, it would take me only 5 minutes to do that with language a and after 10 hours with language b it is still not working "
    You have to get in LabVIEW way of thinking, I wish you good luck !
    A quick exemple... this might not do exactly what you need but it may help you anyway.
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    exemple.vi ‏55 KB

  • Is it possible to restart a download from the amount downloaded previously?

    Is it possible to restart a download from the amount downloaded previously?
    When I download some lectures from iTunes U, sometimes the link breaks and the download gets interupted.Then when the download is resumed it starts from 0 KB and not from the KB amount that was downloaded when the download was interupted.Is there a way to resume the download from the point it was interrupted?

    Well I'm using 9.0.3.1.5 and I STILL have this same problem.
    Not sure if location is a factor, but I'm a US resident with a US iTunes account but I spend most of my time in Asia and I know a LOT of folks in India, UAE, etc with it. Everything else in iTunes works perfectly fine, except resuming non-purchased downloads.
    On Apple Support I could only find a solution related to Purchased downloads, but not individual unsubscribed podcasts you clicked GET on or free iTunesU content. These still go back to zero with no option to resume only restart.
    I mean, every quality download manager for your web browser gives you a consistent experience in resuming almost any download except very few servers on the Internet with specific policies to not allow resumes. If there is no solution just silence, either this is one of those mysterious come-and-go bugs that are hard to replicate or maybe iTunes is conserving bandwidth by discouraging resumes of free content it doesn't make money on. Especially 100MB+ files from folks in places with reliable but slower "3rd world" connections. So I would with a half bitten lip throw an answer your question as NO, it is not possible.
    I do hope someone who thinks they have a solution steps in to say Yes, it would make a lot of people very happy.

  • Is it possible to do message mapping using different namespace message type

    Hi all,
    Is it possible to do message mapping using different namespaces message types
    Example :
    i am having message type MT_1 in namespace http://sap.com/abc
    and second message type MT_2 in namespace http://partner.com/xyz
    so MT_1 can be mapped with MT_2 or not having different namespace.
    Thanks

    Read through my reply in this thread for Defining Software component dependencies.
    Though it explains this for Improted Archives, it also holds true for Message Types to be used in message mappings.
    Re: Payload Extraction
    Regards
    Bhavesh

  • Is ti possible to label a set of tape with a specific media family. For eg. I want media family'xyz' to use tape only from location '1-6'. Is this possible in OSB

    -Is it possible to label a set of tape with a specific media family. For eg. I want mediafamily 'abc' to use tape only from location '1-6' and media family 'xyz' to use tapes from location '7-12'. Is this possible in OSB.
    -If not through media family, is there any other way to label tapes with customized lablels.
    -Is it possible for a backup job to use the tapes from a set of tapes and backup should fail if the tapes are not found from the set. Even if the library has empty tapes.
    I have read about Volume set, but I believe its something that is created automatically when the backup spans to the next volume after current volume is full.

    -Is it possible to label a set of tape with a specific media family. For eg. I want mediafamily 'abc' to use tape only from location '1-6' and media family 'xyz' to use tapes from location '7-12'. Is this possible in OSB.
    -If not through media family, is there any other way to label tapes with customized lablels.
    -Is it possible for a backup job to use the tapes from a set of tapes and backup should fail if the tapes are not found from the set. Even if the library has empty tapes.
    I have read about Volume set, but I believe its something that is created automatically when the backup spans to the next volume after current volume is full.

Maybe you are looking for