New Record Address Cleanup

Hi all,

I'm not sure if this is an 'all Tessituras do this' or specific to our implementation. When a new account is created through our website, the new record's address is created twice and is modified by the WebAPI instantly, with the duplicate entry being inactivated. So, all new records from the website have an inactive duplicate of their mailing address.

For a while, a couple of us on the team would just update each record as they came in. Because we're kinda small, the volume isn't impractical, but this does mean we're spending time deleting something instead of doing something more productive. Does anyone know a setting or piece of code that is responsible for this that I could update in our system? This wouldn't replace real cleanup, but would be great at not needing to click into each and every new record.

Thanks!

Anthony

Opera Colorado

Parents Reply Children
  • Hi all, I love a good discussion on data cleanup! :)

    Dealing with duplicate addresses (however they get into Tess) has been a concern for our 20+ organization consortium, so years ago I created a script that would set the address type on similar-looking non-primary addresses to a "hidden" address type that only sys admins could see. (The address type is hidden simply by using a control group that no consortium org has access to.) This works for us because then we're not deleting addresses that may be slightly different, since that could have adverse effects, e.g. apartment numbers or postal codes that are off by one character may look similar, but most likely only one is correct.

    My script also deletes exact address matches, but as Gawain mentioned you need to be careful about deleting (or updating, for that matter) records since they could be referenced elsewhere in the system. You can check the dependencies in SSMS, but off the top of my head, besides the places that Gawain mentioned, orders and affiliations are other places that reference addresses, so you'd need to look for those references and then either update them to the "kept" address or leave those addresses alone.

    Having an official script from TN that could do some robust clean up on these addresses, or even avoid them entirely, at least from TNEW, definitely sounds like an Idea I'd vote on! Slight smile

  • Hi all, I love a good discussion on data cleanup! :)

    Hear, hear!

    My script also deletes exact address matches,

    TNEW leaves their address dupes inactive, which is also helpful re: finding them. 

    Having an official script from TN that could do some robust clean up on these addresses, or even avoid them entirely, at least from TNEW, definitely sounds like an Idea I'd vote on!

    Me, too. :-)

  • Ugh.  I count 15 tables with an "address_no" column.  That includes T_ADDRESS and T_PHONE, three working tables, one DataImport table and one local (custom) table, so 8 (9 for us) to deal with.  But that does not include TX_CONTACT_POINT_PURPOSE since that isn't using the name address_no.  Probably that's the only example, but I suppose I should see I can query foreign keys as well.

  • My staff deplores an inactive address that is a duplicate of an active address.  Even if it is not an exact equivalency (which is the only one I am satisfactorily okay with deleting via nightly procedure), they do not want it there.  Clean-up is fun!!!  Or something like that.