Author Topic: Blocking the deletion of items on the database  (Read 1090 times)


  • EA User
  • **
  • Posts: 27
  • Karma: +0/-0
  • ekhm
    • View Profile
Blocking the deletion of items on the database
« on: September 23, 2021, 11:28:24 pm »
I have a problem with blocking deletion of objects in EA from the database.

I have created a profile on the database that blocks the deletion of anything from the repository.
In EA there is such a possibility, but when you try to remove anything, a database message appears and the object is restored. This is ok.

The problem arises when someone wants to copy an element and paste it with "Full structure for duplication". Copying is successful, but also a message appears from the database that items are not removed from the t_object table. Additionally, EA creates a package named "EA Model" in place of the copied item. That's weird.

Two questions:
Q1: When copying, does EA put the copied item somewhere in the database to delete it when pasting it and then database display this message?
I did a test, copied the item to memory and searched the database, but I did not find such a temporary item.

Q2: Why does EA create an "EA Model" package when pasting an item?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 11251
  • Karma: +415/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Blocking the deletion of items on the database
« Reply #1 on: September 24, 2021, 02:40:01 am »
When I tried to develop a clone function using the API I found that the only way to do it was to

- create a temporary package
- move the element we need to clone to this package
- clone the package
- move the original element back to its original folder
- move the new element to the target package
- delete the temporary package

So I can imagine that under the hood EA does the same thing when duplicating elements.