How to rollback an import

Nithya Devi
Tera Contributor

Hi,

Could anyone suggest how to rollback the import that done via data source.

Data source Import;

Type- File.

Format- CSV

File Retrieval Method- Attachment.(manual attachment)

 

regards,

Nithya.

 

 

6 REPLIES 6

Chaitanya ILCR
Kilo Patron

Hi @Nithya Devi ,

 

Directly rolling back an import set in ServiceNow, in the same way you might rollback an update set, is not a built-in feature. Once an import set has transformed data into target tables, the changes are committed.

 

you can can go through the import records and their targets

if the operation is insert you can delete the target record

 

if the operation is update it's going to be complex

if you the audit is enabled on the table you can try to go through the audit data and undo the changes

 

also I found this, see if this is of any use to you

https://www.servicenow.com/community/servicenow-ai-platform-articles/rollback-import-sets/ta-p/23060...

 

 

Please mark my answer as helpful/correct if it resolves your query.

Regards,
Chaitanya

Bhuvan
Tera Sage

@Nithya Devi 

 

It is not supported out of box. Try below solution in development environment and see if it works,

 

https://developer.servicenow.com/connect.do#!/share/contents/7322031_rollback_import_sets?t=PRODUCT_...

 

If this helped to answer your query, please mark it helpful & accept the solution. 

 

Thanks,

Bhuvan

Hi Bhuvan,

 

Let me try this on my pdi and let you know.

 

Regards,

Nithya.

Shashank_Jain
Kilo Sage

@Nithya Devi ,

 

ServiceNow does not provide a one-click “rollback” for data imports. Once a Transform Map has run and data is written to the target table, there is no native undo.

 

 

  • Identify the Created and Updated records.

  • Use a list filter or background script to delete/revert those.

  • If the import was large, you may need to request a database restore from ServiceNow Support (HI ticket).

  • This can only restore to a backup point, so it may affect other data created since.

 

 

If this works, please mark it as helpful/accepted — it keeps me motivated and helps others find solutions.
Shashank Jain – Software Engineer | Turning issues into insights