Book a Demo

Author Topic: Deletion of package not possible  (Read 3948 times)

Boron

  • EA User
  • **
  • Posts: 111
  • Karma: +6/-0
    • View Profile
Deletion of package not possible
« on: October 05, 2012, 06:11:01 pm »
Hello,

I wanted to delete a package that obviously does contains no more sub elements in the project browser.
We have enabled "Require User Lock to Edit" for the model.
I applied a user lock including child packages.

Now EA tells me in a message box "The selected item is currently locked, or contains items that are currently locked. It cannot be deleted this time."

There are really no more elements below this package visible in the project browser.
The project integrity check finds no problems.
Any ideas?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Deletion of package not possible
« Reply #1 on: October 05, 2012, 06:29:50 pm »
You could temporarily turn off security, delete the package and turn it on again. There was a similar thread here (you might try to search for it) which dealt with the security tables, but I guess above option is the easiest.

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: Deletion of package not possible
« Reply #2 on: October 08, 2012, 08:47:18 pm »
Are you sure you locked the parent package of the package you are trying to delete.

If that is the case then there is probably an "invisible" element left in your package. (such as a note or something like that)

What I would do is check using an SQL Search like this:

Code: [Select]
select c.ea_guid as CLASSGUID,c.object_type as CLASSTYPE,c.name as Name, c.stereotype as Stereotype
from t_object c
where c.package_id = #Package#

This search will return all elements in the currently selected package.

Geert