Conflicting g/l account key with g/l account number?

SUGGESTED

Client reported an odd situation where they would be doing a VI import and the GL account number in the import file would be changed to an entirely different account number for a number of different accounts upon import.   If you used file explorer to look at the accounts in question, the accounts did not show up.

After hunting around under the hood,  I discovered this situation.

GL account structure is xxxxx-xx-xx.  (9 characters not counting the dashes)

A GL account key is also 9 characters.

Comparing the account keys I discovered that GL account 70200-00-01 has an account key of 67000001.   There also happens to be a GL account 67000-00-01.  Remove the dashes and it is a match to the account key for the other account.   The import file has it formatted to 670000001.   Apparently when you VI import it first tries to compare to the account key first.  If it does not find that then it continues to look for the (visual) account.  So in this case it find the account key of 67000001 and picks that and returns 70200-00-01.

Basically it is a coincidence that the account key and visual account match.

Now the trick is to try to fix the account key so it does not conflict (as well as identify all the accounts that conflict).

I tried creating a second GL account and merging the original account into it,  then renumbering the new account.  Seems logical.  Unfortunately that did not change the underlying account key.  Apparently the system remembered the original account key and restored it?

Client isn't going to go for changing the GL account structure to make it longer/shorter (I wouldn't either).

Does anyone know of any utility that might "renumber" the underlying account keys?

In the mean time I'm going to try having the client format the import file account number with dashes.  Assuming that works for the import, it wouldn't fix other issues such as in explorer.

  • 0

    Alternative idea: Import the value into a UDF, then script a column post validate to take the UDF value and SetValue to the accountkey column, using the special command mentioned here (which "should" explicitly consider it an account #, not a key):

    sagecity.na.sage.com/.../284500

  • 0 in reply to Kevin M

    That's a possibility too.  Will take a look.

    Ultimately, need to fix it so that explorer and other areas will work correctly as well.

  • 0
    Apparently when you VI import it first tries to compare to the account key first.  If it does not find that then it continues to look for the (visual) account.  So in this case it find the account key of 67000001 and picks that and returns 70200-00-01.

    Tom, Is this certain?  That seems uncharacteristically sloppy and a coincidence that would occur often enough to be problematic.  I know raw account keys are frequently exactly the same as the account number and when they aren't, they often have a letter in them.  Is there any chance that the GLaccount table got monkeyed with at some point?  Just thinking out loud.

  • 0 in reply to Rsmcnamara

    I don't believe the client is sufficiently knowledgeable to "monkey" with that type of thing.  Heck I don't think I could monkey with it myself.

    What makes it sufficiently unique that it is not seen very often is that your "visual" account keys have to be exactly 9 characters (without separators) and you are then doing imports.  Any more or less and you have no possibility of seeing this.

    One thing I noticed in browsing through indexes is that there were a number of account keys that are in the format "FED    0890"  (blank spaces after the FED) which I had never seen before.  Accounts where the raw account number and the key are exactly the same were accounts prior to version 4.0 when the GL was upgraded to the business objects framework.  Accounts added after that time generally do not have matching raw and keys.  So this FED thing has me surprised.

  • 0
    SUGGESTED

    Tom,

    You need to import the fully formatted account number with the dashes. Whenever the number of characters exceeds 9, you must also select "Skip Source Data Truncation" on the Configuration tab.