How to migrate table data from one instance to another instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2023 10:20 AM
Hi,
How to migrate table data from one instance to another instance without loosing the reference and ID's? Is there any servicenow tool available for data migration?
Thanks,
Ranjana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2023 10:41 AM
Hi @Ranjana Goel ,
Hope you are doing great.
To migrate table data from one instance to another instance without loosing the reference and ID's?
In the source instance, export the data from the table you wish to migrate using the data export functionality. Export the data from record using below link, this link will export using sysid : https://instance.service-now.com/incident_list.do?CSV&sysparm_default_export_fields=all
In the target instance, configure an Import Set table that corresponds to the table you are migrating. Import Sets act as staging tables where you can load data for further processing.
Create a Transform Map in the target instance to map the fields from the Import Set table to the destination table. Ensure that the field mappings are accurate, considering the relationships and references within the data.
load the exported data into the staging table in the target instance. This can be done by importing the CSV or XML file generated in step 1.
Transform Data: Once the data is loaded into the Import Set table, apply the Transform Map created in step 3 to transform the data from the staging table to the destination table. This step ensures that references and IDs are maintained correctly during the migration process.
Validate the transformed data to ensure the mappings and transformations are accurate. Once validated, commit the data to transfer it from the Import Set table to the destination table in the target instance.
Regards,
Riya Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2023 11:07 AM
@Riya Verma Thanks for sharing detailed steps Riya. This is really helpful. Let me try these steps and I'll get back to you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2023 11:17 AM
Greetings!!
Before you implement the solution, need to know what do you mean by Data. Data ( Transactional data) movement from one instance to another is not recommended but if you want to move Foundation data
- You can use XML way to move the data from one to another instance without loosing any reference.
- In case data is huge , try to break in chunks so that import will be easy.
In case you want to bring data in first instance, you transform map method.
Please mark this response as correct or helpful or solution accepted if it assisted you with your question.
Regards
Atul G.
Learn N Grow With Atul G
-
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2023 12:04 PM
Hi @Ranjana Goel,
- To export the table & data, we need to export the table as xml from the dictionary and then import it to the required space.
- Go to dictionaries. Then, export it as XML and in the target, go to dictionaries and import it as XML.
- This step should be done for both Table and values in the table separately.
- If there is already the table in the other instance, then go to dictionary, search for the table and then import values.