---
sourceDocument: Brazil Customer Service Management
sourceDocumentLink: https://www.servicenow.com/docs/r/customer-service-management

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Customer Service Management

ft:clusterId :

    - csm

bundleId :

    - csm

workflow :

    - Customer and Industry


---

# Set the business organization code property

# Set the business organization code property {#ariaid-title1}

Release version: Brazil  
Updated September 9, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read  
After importing Business Organizations information, update the com.snc.service_organization.last.generated.code.tree.path property with the correct organization code value.

## Before you begin

Role required: admin

## About this task

The com.snc.service_organization.last.generated.code.tree.path system property stores the Organization Code value for the most recently created business organization in the
Organization Core \[sn_customer_service_organization\] table.

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

The value of the com.snc.service_organization.last.generated.code.tree.path property must match the value of the Organization Code
field for the last inserted business organization record. When you create business organization 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 Organization Core table:

java.sql.BatchUpdateException: Duplicate entry for key service_organization_path

Use the following steps to fix this error.

## Procedure

1. Determine the highest or last used organization code value from the Organization Core \[sn_customer_service_organization\] table.
2. Navigate to the System Property \[sys_properties\] table.
3. Set the com.snc.service_organization.last.generated.code.tree.path property to the value determined in step 1.
{#set-csm-bo-code-property__steps_kpw_nvb_nlb}

