Book a Demo

Author Topic: DeleteBaseline fails in VBA script on second loop call onwards  (Read 3343 times)

loay.ellaithy

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
I have written a VBA script in Excel which calls DeleteBaseline() in a loop of multiple baseline GUIDs.
In the first loop, calling DeleteBaseline() succeeds (with return value "True") also evidently through checking EA (baselines are decreased by one). However on successive loops,  calling DeleteBaseline() fails (with return value "False") also evidently through checking EA (baselines are the same).

After the macro completes, running the same macro again will go through the very same behavior.

Although I have found a work around by re-instantiating the Project variable everytime before calling DeleteBaseline however I'm reporting still this issue.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: DeleteBaseline fails in VBA script on second loop call onwards
« Reply #1 on: March 09, 2018, 10:40:38 pm »
Hi,

Please note that posting on this forum only serves to warn other users.
Make sure you also submit a formal bug report

Geert