Author Topic: Audit Records - Deleting a single record.  (Read 3325 times)

lynch80516

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Audit Records - Deleting a single record.
« on: February 29, 2020, 09:39:12 am »
Does anyone have experience with deleting a single audit record. I have a model that has auditing enabled and I we found a problem with one of the elements text. We fixed the text, but the original text still is present in the audit record for that element.

What I would like to be able to do is delete that single audit record without completely eliminating all the record logs and starting over.

Any suggestions would be appreciated.

John

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Audit Records - Deleting a single record.
« Reply #1 on: February 29, 2020, 10:30:56 am »
You will probably need to locate the culprit in t_snapshot and delete it with SQL. Pretty much hacking a log which ought to keep changes. Raises the question why you create the audit in the first place. This way you can't trust is. Seems quite odd.

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13387
  • Karma: +566/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Audit Records - Deleting a single record.
« Reply #2 on: February 29, 2020, 07:29:02 pm »
I was thinking the same thing.
Why keep an audit log, if you are going to delete specific records from it.
Smells funny ???

Geert

lynch80516

  • EA Novice
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Audit Records - Deleting a single record.
« Reply #3 on: March 01, 2020, 01:21:11 pm »
Yes it is weird and unusual. But I'm faced with an issue that I can either delete a single audit record or roll the model back about a year and start over. It's complicated

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Audit Records - Deleting a single record.
« Reply #4 on: March 02, 2020, 01:21:44 am »
Well, I guess you have reasons. FWIW I would not remove the log entry but add a "rollback/undo" action to the log.

q.