The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Need Cloning Guidance

saint
Tera Expert

Hi Experts,

 

I’m looking to copy groups from Prod to Dev via cloning. I plan to exclude all other user and group-related tables such as sys_user, sys_user_grmember, sys_user_has_role, sys_group_has_role, etc.

Would cloning only the groups be sufficient, or could this approach cause issues by not including the related tables?

 

I want to include Prod data for task tables such as Incident, Problem, Change, and Service Request during a clone. What’s the best way to configure the clone to include these specific task tables?

 

I have Transform Maps and Import Sets in both the global and application scopes for Asset Management integrations and other integrations. When performing a clone, how should I configure it so that these configurations are not affected or broken? What’s the best approach to ensure they remain intact in both global and application scopes?

2 ACCEPTED SOLUTIONS

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @saint 

In cloning, two things are important: Preserve and Exclude. These define what you want to keep and what you want to edit or add. In your case, you need to add the tables under Preserve."

 

 

Preserve data: 

Data preservers

Sometimes, it is necessary to preserve some data on an instance targeted for cloning. For example, if the target is a MID Server, you must not overwrite the MID Server [ecc_agent] table. Preserved data is stored on the target instance before cloning begins and is restored on the target instance after cloning.
 
Exclude data:
 
Basically:
 
Preserve means: keep what data is already there on the target instance, but add to it.
Exclude means: If no preserve, don't even bring data to the target instance, but instead make it empty. Otherwise, if perserved, but excluded, then keep what is there, but don't touch it.
 
DrAtulGLNG_0-1756074425512.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

Chavan AP
Kilo Sage
ServiceNow Clone Configuration Best Practices


1. Cloning Groups Only - Potential Issues
Problems with excluding related tables:

Broken memberships: Groups without sys_user_grmember will have no members
Missing roles: Groups without sys_group_has_role will have no assigned roles
Orphaned references: Other tables referencing these groups may break
Recommended approach:

Include these minimum tables:

- sys_user_group (groups)

- sys_user_grmember (group memberships)  

- sys_group_has_role (group roles)

- sys_user_role (roles themselves)



Alternative: Use Preserve Data option for user-related tables instead of excluding them.





2. Including Specific Task Tables
Clone Configuration:

Tables to Include:

- incident

- problem  

- change_request

- sc_request

- sc_req_item

- sc_task

- task (parent table)



Related tables to consider:

- task_activity (journal entries)

- sys_attachment (attachments)

- sys_audit (audit history if needed)



Best Practice: Use Table Hierarchy option to automatically include child tables.



3. Preserving Transform Maps & Import Sets
Configuration approach:

For Transform Maps:

Preserve Data for:

- sys_transform_map

- sys_transform_entry  

- sys_transform_script

- sys_data_source



For Import Sets:

Preserve Data for:

- sys_import_set_row

- sys_import_set

- All custom import tables (imp_*)



Scope considerations:

Global scope: Maps preserved automatically
Application scope: Use Preserve Data for application tables
Custom applications: Include the entire application scope


Recommended Clone Settings:

Clone Type: Data and Configuration

Options:

  - Preserve Data: sys_transform_*, sys_import_*, sys_data_source

  - Include Applications: [your custom apps]

  - Exclude: sys_user, sys_user_has_role (if not needed)

  - Include: All task tables with hierarchy





Pro Tip: Test clone on a sub-prod instance first to validate configuration before applying to Dev.
Glad I could help! If this solved your issue, please mark it as Helpful and Accept as Solution so others can benefit too.*****Chavan A.P. | Technical Architect | Certified Professional*****

View solution in original post

3 REPLIES 3

Rafael Batistot
Kilo Patron

Hi @saint 

 

May you try via Preserve data 

 

  1. Navigate to All > System Clone > Preserve Data.

 

https://www.servicenow.com/docs/bundle/xanadu-platform-administration/page/administer/managing-data/...

 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @saint 

In cloning, two things are important: Preserve and Exclude. These define what you want to keep and what you want to edit or add. In your case, you need to add the tables under Preserve."

 

 

Preserve data: 

Data preservers

Sometimes, it is necessary to preserve some data on an instance targeted for cloning. For example, if the target is a MID Server, you must not overwrite the MID Server [ecc_agent] table. Preserved data is stored on the target instance before cloning begins and is restored on the target instance after cloning.
 
Exclude data:
 
Basically:
 
Preserve means: keep what data is already there on the target instance, but add to it.
Exclude means: If no preserve, don't even bring data to the target instance, but instead make it empty. Otherwise, if perserved, but excluded, then keep what is there, but don't touch it.
 
DrAtulGLNG_0-1756074425512.png

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Chavan AP
Kilo Sage
ServiceNow Clone Configuration Best Practices


1. Cloning Groups Only - Potential Issues
Problems with excluding related tables:

Broken memberships: Groups without sys_user_grmember will have no members
Missing roles: Groups without sys_group_has_role will have no assigned roles
Orphaned references: Other tables referencing these groups may break
Recommended approach:

Include these minimum tables:

- sys_user_group (groups)

- sys_user_grmember (group memberships)  

- sys_group_has_role (group roles)

- sys_user_role (roles themselves)



Alternative: Use Preserve Data option for user-related tables instead of excluding them.





2. Including Specific Task Tables
Clone Configuration:

Tables to Include:

- incident

- problem  

- change_request

- sc_request

- sc_req_item

- sc_task

- task (parent table)



Related tables to consider:

- task_activity (journal entries)

- sys_attachment (attachments)

- sys_audit (audit history if needed)



Best Practice: Use Table Hierarchy option to automatically include child tables.



3. Preserving Transform Maps & Import Sets
Configuration approach:

For Transform Maps:

Preserve Data for:

- sys_transform_map

- sys_transform_entry  

- sys_transform_script

- sys_data_source



For Import Sets:

Preserve Data for:

- sys_import_set_row

- sys_import_set

- All custom import tables (imp_*)



Scope considerations:

Global scope: Maps preserved automatically
Application scope: Use Preserve Data for application tables
Custom applications: Include the entire application scope


Recommended Clone Settings:

Clone Type: Data and Configuration

Options:

  - Preserve Data: sys_transform_*, sys_import_*, sys_data_source

  - Include Applications: [your custom apps]

  - Exclude: sys_user, sys_user_has_role (if not needed)

  - Include: All task tables with hierarchy





Pro Tip: Test clone on a sub-prod instance first to validate configuration before applying to Dev.
Glad I could help! If this solved your issue, please mark it as Helpful and Accept as Solution so others can benefit too.*****Chavan A.P. | Technical Architect | Certified Professional*****