Subject: Seeking Suggestions for Bulk Data Import in ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Everyone,
We have approximately 10 million records that need to be inserted into a scoped custom table in ServiceNow.
We initially tried using Transform Maps to load the data, but we haven't been successful in processing such a large volume of records.
Additionally, our environment does not have a MID Server, and we cannot use REST APIs to accomplish this requirement.
All the records are currently available in a single CSV file. Splitting the file into multiple smaller files is also not an option due to certain restrictions.
Could you please suggest any alternative approaches or possible solutions to achieve this using ServiceNow's native capabilities?
Any suggestions, recommendations, or insights would be greatly appreciated.
Thanks in advance for your help!
Regards,
ServiceNow Developer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @irfan12
Without Mid Server , Data Source like a JDBC connection or a REST call can not bring data into a Staging Table until and unless endpoint is public.
Only Option I think it is left i.e Splitting CSV file with 20-30 chunks. Could you please explain what is the restriction you have to split it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thank you for your response.
In my current environment, I only have the downloaded CSV file available. I don't have access to any tools or even Windows PowerShell that would allow me to split the CSV file into smaller chunks.
Could you please suggest an alternative approach to handle this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @irfan12,
With 10M records, the slowdown usually comes from transform overhead rather than the record count. I’d try these two native options together:
1. Tune the transform map
- Coalesce: For a pure insert, remove it. If you need it, coalesce only on an indexed field. An unindexed coalesce scans the whole table for every row.
- Settings: uncheck Run business rules and Enforce mandatory fields.
- Scripts: use direct field maps instead of scripts, and avoid onBefore/onAfter scripts that query records for every row.
- Attachment size: check that com.glide.attachment.max_size allows your full CSV to attach.
- Before the load: clean up old import sets and staging rows, and run it outside business hours.
2. Use Concurrent Import
Create a Scheduled Data Import that uses your existing data source and check Concurrent Import. ServiceNow splits the staged rows into multiple import sets and transforms them in parallel across nodes.
Test with a subset in a sub-production instance first to check throughput. A load this size will likely take hours, not minutes.
Hope this helps!