Author Topic: "Delete or Keep the bound properties" pop-up when running script  (Read 430 times)

sar2

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
"Delete or Keep the bound properties" pop-up when running script
« on: September 04, 2019, 08:37:42 pm »
Hello,

I wrote a script, which has quite some long running time and does sometime need to delete out dated elements.
Sometimes when I use the Delete(short index) method on a element object, I get a "Delete or Keep the bound properties" pop-up in the background, which causes my script to pause until someone closes that window. This is quite bothersome.
I already tried deleting all connectors of the element in question first, but that didn't solve the problem.
Anyone have a workaround this?

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9387
  • Karma: +258/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: "Delete or Keep the bound properties" pop-up when running script
« Reply #1 on: September 04, 2019, 08:40:41 pm »
I have never seen such a popup.
Could it be that you are deleting elements who have embedded elements?
In that case you might want to delete those first.

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 10503
  • Karma: +231/-190
  • I'm no guru at all
    • View Profile
Re: "Delete or Keep the bound properties" pop-up when running script
« Reply #2 on: September 04, 2019, 09:16:48 pm »
Also never saw that. Which EA version?

q.

sar2

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: "Delete or Keep the bound properties" pop-up when running script
« Reply #3 on: September 04, 2019, 09:18:28 pm »
Also never saw that. Which EA version?

q.

I'm using version 12.1

sar2

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: "Delete or Keep the bound properties" pop-up when running script
« Reply #4 on: September 04, 2019, 09:21:20 pm »
I have never seen such a popup.
Could it be that you are deleting elements who have embedded elements?
In that case you might want to delete those first.

Geert

I try deleting connectors, embedded elements and constraints before the element and get the pop-ups during connector deletion all the time.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 9387
  • Karma: +258/-27
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: "Delete or Keep the bound properties" pop-up when running script
« Reply #5 on: September 04, 2019, 09:38:00 pm »
I have never seen such a popup.
Could it be that you are deleting elements who have embedded elements?
In that case you might want to delete those first.

Geert

I try deleting connectors, embedded elements and constraints before the element and get the pop-ups during connector deletion all the time.
Ah, is it during a connector delete, or an element delete.

I think the bound properties are those things you set to link your association to an attribute.
I've never used those.
I would check if any of the collection on the connector (such as CustomProperties) has elements and make sure to delete these before deleting the connector.

Geert

PS. You should also report a bug. An API is not supposed to show message boxes when deleting stuff.

sar2

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: "Delete or Keep the bound properties" pop-up when running script
« Reply #6 on: September 04, 2019, 11:31:20 pm »
I have never seen such a popup.
Could it be that you are deleting elements who have embedded elements?
In that case you might want to delete those first.

Geert

I try deleting connectors, embedded elements and constraints before the element and get the pop-ups during connector deletion all the time.
Ah, is it during a connector delete, or an element delete.

I think the bound properties are those things you set to link your association to an attribute.
I've never used those.
I would check if any of the collection on the connector (such as CustomProperties) has elements and make sure to delete these before deleting the connector.

Geert

PS. You should also report a bug. An API is not supposed to show message boxes when deleting stuff.

Ok so I tried deleting CustomProperties, but I get an Internal Application error.
I tried deleting all other collections as well, but it didn't help.