Account Code field not iterating

Joseph Navarro1
Tera Contributor

Hello,

We are having an issue with our Account Code field. Basically when we go to add a new account, the Account Code is automatically populated. However, it is read only and within the past couple of days it has started generating codes that already exist and thus gives a duplicate error. 

JosephNavarro1_0-1692982305387.png

JosephNavarro1_1-1692982330342.png

When I looked at the dictionary record for Account Code, I find that the GlideFast tech that had been working with us had set the default value to: field: javascript: new generateCodeForTreePath().generateCode().

I don't know how to find these functions it is referencing. Am I barking up the wrong tree here? Is there something obvious I should check?

Thank you!

Joseph

2 REPLIES 2

Jaspal Singh
Mega Patron
Mega Patron

Hi Joseph,

generateCodeForTreePath seems to be a script include & generateCode is a function/part of the script include. Please try giving it a check.

Thank you for your response! The solution ended up being a completely different thing than I thought. I followed the instructions here: https://docs.servicenow.com/bundle/utah-customer-service-management/page/product/customer-service-ma.... Basically, the system property associated with determining the value of the Account Code field had gone out of sync, so I had to reset the value.