Hello,
I am trying to create Unique External ID's for records in a sample accounting based dataset.
In my workflow, I have used a formula tool to create my current External ID's : "QBO" + [Date] + ToString([Debit]) + ToString([Credit])
This usually works because every external ID needs to be unique not to just one record, but the records with the related debits and credits (see records 59 & 60). Since the debit is null on the credit line and vice versa, this usually pairs the two when also combined with date.
However, in some instances (see records 55-58), there are identical debit/credit amounts for two transactions (55-56 is one, and 57-58 is the other), when combined with the same date as well, this creates an non-unique ID for the two transactions that should be separate.
My first thought was to somehow use the unique tool to identify duplicates and then somehow parse on extra numbers on two debit and credit records that are in the dups. However this seems to me like a flawed way of doing it that might not always work for more variable datasets (say I had 3 matching transaction sets and not just 2). Does anyone have any better ideas?
(See images for context, first is normal data, second those same records in the duplicate section of a unique tool)
Thanks!