locked
Cannot revise or expire a package that has already been expired RRS feed

  • Question

  • I'm getting this message when trying to delete a software package I created that didn't work as expected. I had actually deleted it once, but it reappared, and when I try to delete it I'm not able to and get this message instead:

     

    Date: 14.05.2008 12:15:40
    Application: System Center Essentials
    Application Version: 6.0.1885.0
    Severity: Error
    Message: Cannot revise or expire a package that has already been expired.

    System.InvalidOperationException: Cannot revise or expire a package that has already been expired.
       at Microsoft.UpdateServices.Internal.BaseApi.Update.ExpirePackage()
       at Microsoft.EnterpriseManagement.SCE.Internal.UI.SoftwarePackagesView.DeletePackageProgressForm.DeleteItemsBackgroundWorkerDoWork(Object sender, DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

     

    Any ideas how I can get rid of the package?

    Wednesday, May 14, 2008 10:59 AM

Answers

  • Go into WSUS and do a cleanup of updates. That clears it from SCE.

     

    Bob

    Tuesday, July 29, 2008 5:33 PM

All replies

  • Hi,

    My understanding is that you deleted this package in the console before ( and it actually disappear from "All software packages", now it appear agian, right?

    Could you please navigate to UpdateServicesPackages folder to check whether the file still exists?

    --------------------
    Regards,
    Eric Zhang



    Thursday, May 15, 2008 5:57 AM
  • Correct. I deleted the package and when I refreshed the view, it reappared.

     

    The folders for the deleted software packages are still under the UpdateServicesPackages folder. Should I delete them?

     

    Thanks,

    Stian

    Thursday, May 15, 2008 6:30 AM
  • Hi Stian,

    Please do not directly delete the software package under  UpdateServicesPackages folder.

    Also, please collect these two logs:

    %programfiles%\update services\logs\softwaredistribution.log

    %programfiles%\update services\logs\change.log


     send them to SCEDATA@microsoft.com <mailto:  SCEDATA@microsoft.com>.

    Note:

    Please include the following three lines in the email body:

    Cannot revise or expire a package that has already been expired
    http://forums.microsoft.com/TechNet/EditPost.aspx?PostID=3363156&SiteID=17
    Eric Zhang - MSFT

    Regarding more information about how to send email to SCEDATA@microsoft.com, please refer to:

    How to send files to the Microsoft SCE team for review
    <http://forums.microsoft.com/TechNet/ShowPost.aspx?PostID=1680389&SiteID=17>

    Also, please post a quick note in the current thread to inform me after sending the email.

    Thanks!


    --------------------
    Regards,
    Eric Zhang



    Monday, May 19, 2008 10:02 AM
  • Hi,

    As this thread has been quiet for a while we will be changing the issue type to ‘Comment’.

    If you wish to return to this question you can go ahead and change the type back to ‘Question’. Then you can edit your initial post and change the radio button at the top of the post editor window.

    If the issue has been resolved, we’d love to hear your solution. By sharing your experience you can help other community members facing similar problems.

    Thanks!

    --------------------
    Regards,
    Eric Zhang




    Monday, May 26, 2008 1:27 PM
  •  

    Hi Eric,

     

    I have emailed you the logs as requested. I have not deleted the software folders yet. We have created several packages after this incident, and are not able to remove them from the software package view either.

     

    Please advise.

     

    Thanks,

    Stian

    Friday, May 30, 2008 8:17 AM
  • Hi Stian,

    Here is a script call IUpdateServer.ExportPackageMetadata to get the SDP XML for a locally published update, please use powershell to run this script (GetPackageMetadata.ps1) which takes a update id and exports the package metadata to %temp%\metadata.xml file.

    After the metadata.xml is created, please send it to SCEDATA@Microsoft.com

    For your convenience, I have created a workspace for you and upload this script.  You can downlaod the  file from the following link.(choose receive files from Microsoft).
    Workspace URL: https://sftasia.one.microsoft.com/choosetransfer.aspx?key=8a4e567c-184a-49b5-aa52-ef337044dbb4
    Password: $X-m*G6+9#Sjxj

    Note: Due to differences in text formatting with various email clients, the workspace link above may appear to be broken.  Please be sure to include all text between '(' and ')' when typing or copying the workspace link into your browser.

    --------------------
    Regards,
    Eric Zhang



    Monday, June 2, 2008 11:43 AM
  •  

    Thanks Eric. I ran the script on all the packages that are expired and e-mailed you 7 xml-files. Let me know what you get out of them.

     

    Stian

    Tuesday, June 3, 2008 1:57 PM
  • Hi Stian,

    I received your mail. Also, please give me the package ID of the problematic package which you cannot delete, you can find it under \\updateservicespackages, please tell me both the folder name and .cab name.

    --------------------
    Regards,
    Eric Zhang



    Wednesday, June 4, 2008 10:37 AM
  • I believe this is what you need. Listed as:

     

    "Update ID

    Folder name

    CAB name"

     

    1c4a4f00-2e5b-4828-8ba2-e2126641bb37

    c3497bac-d6f5-4541-ad32-cdced42f6dc5
    c3497bac-d6f5-4541-ad32-cdced42f6dc5_1.cab

     

    62e833d5-96a7-4125-b024-10caebe0aa5b

    5ccd63fe-41e6-4562-895a-f45da06e3357
    5ccd63fe-41e6-4562-895a-f45da06e3357_1.cab

     

    173d9db9-3d01-4188-be36-ab6e3e6715ad 

    68293e81-1525-4965-909f-c3086d8a89f2
    68293e81-1525-4965-909f-c3086d8a89f2_1.cab

     

    465d9e9a-b0cd-495c-96ae-4ff7d25d16ed

    285cda09-5d2c-442b-bdf6-989d524391d8
    285cda09-5d2c-442b-bdf6-989d524391d8_1.cab

     

    ac7df952-1980-4a6b-9b78-d507c889f3c5

    31513a5d-de7a-447b-95a5-d2abe6ad00ad
    31513a5d-de7a-447b-95a5-d2abe6ad00ad_1.cab

     

    d3343305-b766-49ab-90cb-e5add9c73959

    b4f14d73-ddfe-42ff-85ef-508849699c66
    b4f14d73-ddfe-42ff-85ef-508849699c66_1.cab

     

    e3d0da7b-eb61-41ad-9deb-b45eda47f2fd

    645d2d59-88c4-410b-a7b4-113196f36ea4
    645d2d59-88c4-410b-a7b4-113196f36ea4_1.cab

     

    Wednesday, June 4, 2008 11:15 AM
  • Hi Stian,

    I'd like to confirm whether all of these 7 packages cannot be deleted, or just some of them?

    --------------------
    Regards,
    Eric Zhang



    Wednesday, June 4, 2008 12:40 PM
  • Every single one of them are still stuck in the SCE console after deleting them.

    Wednesday, June 4, 2008 12:54 PM
  • Hi Stian,

    I have received your mail, and now working with our product team to resolve it, I'll update this thread as soon as we find a solution

    Thanks for your cooperation.

    --------------------
    Regards,
    Eric Zhang



    Friday, June 6, 2008 7:22 AM
  • Hi Stian,

    Please download WSUS server diagnostic tool from this website:

    http://technet.microsoft.com/en-us/wsus/bb466192.aspx

    After installing, please run the following command to delete the expired update files:

    wsusdebugtool /toolStick out tongueurgeunneededfiles

    --------------------
    Regards,
    Eric Zhang



    Wednesday, June 11, 2008 12:45 PM
  • I ran the command you specified and it deleted several update files, but the software packages are still listed under the software pane, and I'm still not able to get rid of them.

     

    Please advise.

     

    Stian

     

    Friday, June 13, 2008 12:46 PM
  • Hi Stian,

    After my investigation, it supposed to be a bug, I will update this thread as sson as we get any solutions.

    --------------------
    Regards,
    Eric Zhang



    Wednesday, June 18, 2008 7:08 AM
  • Go into WSUS and do a cleanup of updates. That clears it from SCE.

     

    Bob

    Tuesday, July 29, 2008 5:33 PM
  • Where excatly I can find UpdateServicesPackages folder so that I can delete my packages which i was unable to?

     

    Thanks

     

    Thursday, September 18, 2008 8:20 PM
  • Cool. Cleaning up the WSUS updates actually cleared the deleted software packages from SCE.

     

    Thanks,

    Stian

    Friday, September 19, 2008 8:55 AM
  • If you don't see a folder called windowsupdateservices in your program files then what?

     

    Friday, September 19, 2008 8:49 PM
  • hi Eric

    I'm too facing the same error any solution yet ,I tried all the previous options in form.Weare implementinf SCE 2007 solution for a Customer and it's really important fix this problem erro is given below

    I have one more query can we use Active directory security groups for software deployment?

    ote:  The following information was gathered when the operation was attempted.  The information may appear cryptic but provides context for the error.  The application will continue to run.

    System.InvalidOperationException: Cannot revise or expire a package that has already been expired.
       at Microsoft.UpdateServices.Internal.BaseApi.Update.ExpirePackage()
       at Microsoft.EnterpriseManagement.SCE.Internal.UI.SoftwarePackagesView.DeletePackageProgressForm.DeleteItemsBackgroundWorkerDoWork(Object sender, DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.OnDoWork(DoWorkEventArgs e)
       at System.ComponentModel.BackgroundWorker.WorkerThreadStart(Object argument)

     

    regards

    Paul

     

    Friday, March 6, 2009 12:38 PM
  • Hi Stian,

    After my investigation, it supposed to be a bug, I will update this thread as sson as we get any solutions.

    --------------------
    Regards,
    Eric Zhang




    This issue was found in June and there still is no fix???  This is getting aggravating.
    Thursday, April 2, 2009 6:55 PM
  • Hey,

    i have the same error - is there a solution?
    Monday, May 4, 2009 7:41 AM