---
sourceDocument: Australia Customer Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/customer-service-management

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Customer Service Management

ft:clusterId :

    - csm

bundleId :

    - csm

workflow :

    - Customer and Industry


---

# Set the account code property

# Set the account code property {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

After importing customer account information, update the
com.snc.cs_base.last.generated.code.tree.path property with the correct
account code value.

## Antes de Iniciar

Role required: import_admin and sn_crm_foundation_admin

## Por Que e Quando Desempenhar Esta Tarefa

The com.snc.cs_base.last.generated.code.tree.path system property
stores the Account Code value for the most recently created customer
account in the Account (customer_account) table.

When you create a customer account record, the system uses this property to generate a unique account code. The property is then updated with the latest value, confirming the next account record receives a new unique code.

The value of the com.snc.cs_base.last.generated.code.tree.path property must match the value of the Account Code field for the last inserted customer account record. When you create customer account records
by importing data from other sources or instances, these values can get out of synchronization. If these values don't match, the system generates an error on the creation of the next new record in the Account table:

java.sql.BatchUpdateException: Duplicate entry for key account_path

Use the following steps to fix this error.

## Procedimento

1. Determine the highest or last used account code value from the account (customer_account) table.
2. Navigate to the System Property \[sys_properties\] table.
3. Set the com.snc.cs_base.last.generated.code.tree.path property to the value determined in step 1.
{#set-csm-account-code-property__steps_kpw_nvb_nlb}

