Book a Demo

Author Topic: Cannot delete package  (Read 8354 times)

Boron

  • EA User
  • **
  • Posts: 111
  • Karma: +6/-0
    • View Profile
Cannot delete package
« on: December 07, 2011, 06:44:06 pm »
Hello,

I have a very strange thing here in my EA model.
In the project Browser I see an empty package that I want to delete. There is no diagram or sub-package visible in the project browser.

I locked the package and its parent package as I want to delete the empty package.
An error message is telling me:
Quote
The selected item is currently locked, or
contains items that are currently locked.

It can not be deleted at this time.
When locking the package I of course checked the "Include Child Packages" option.

Any idea what EA has done to my model, and how I can solve this?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Cannot delete package
« Reply #1 on: December 07, 2011, 08:47:19 pm »
Boron,

Try the Project Integrity Check (shift F9)
There might be something hiding in the package that has not been locked.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Cannot delete package
« Reply #2 on: December 07, 2011, 09:38:04 pm »
I had a similar issue where I had the same user twice in the users DB (one imported from AD and another added manually).

q.

Boron

  • EA User
  • **
  • Posts: 111
  • Karma: +6/-0
    • View Profile
Re: Cannot delete package
« Reply #3 on: December 08, 2011, 01:17:14 am »
There is no finding by the Project Integrity Check.

@qwerty
No duplicate users in the users list (menu Project -> Security -> Manage Users...)

:(

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Cannot delete package
« Reply #4 on: December 08, 2011, 01:37:48 am »
Then there's:
- export to xmi, delete package from xmi, import again
or
- turn off the security feature, delete package, turn it back on
...

Geert
« Last Edit: December 08, 2011, 01:38:27 am by Geert.Bellekens »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Cannot delete package
« Reply #5 on: December 08, 2011, 04:39:52 am »
DELETE * FROM t_seclocks

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Cannot delete package
« Reply #6 on: December 08, 2011, 05:02:17 am »
That won't do any good if your security mode is set to "Lock to edit"

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Cannot delete package
« Reply #7 on: December 08, 2011, 05:31:36 am »
Yes, but it might help though. It's possible that just one element is locked by someone else. Then you can set the lock again and try once more. The better way would probably be to use Security/Locks to remove the locks.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Cannot delete package
« Reply #8 on: December 08, 2011, 05:33:18 am »
Ah, yes indeed :)

Geert