Upload data with an excel file through record producer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2020 02:27 AM
Hello Team,
I'm trying to upload data through excel file using record producer but it's not working with below script. It's redirecting to data source I can see that excel file not got loaded.
current.import_set_table_name = 'u_r2p_rework_data_load'; //Name of your import table
current.file_retrieval_method = "Attachment";
current.type = "File";
current.format = "Excel";
current.header_row = 1;
current.sheet_number = 1;
current.insert();
var importSetRec = loader.getImportSetGr(current);
var ranload = loader.loadImportSetTable(importSetRec, current);
importSetRec.state = "loaded";
importSetRec.update();
transformWorker.setBackground(true);
transformWorker.start();
current.setAbortAction(true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2020 08:08 AM
Hi,
if that is custom one then you need to check what got changed from yesterday and today.
Did you check
1) transform map sys_id is valid
2) Transform map is present in instance
3) Somebody updated some field maps in that transform map
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2020 02:46 AM
Hi,
Also check below video link that might be useful.
Upload data with excel file and record producer
Let me know if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2020 03:04 AM
Hi Onkar,
I have tried using same method but didn't worked.
Thanks,
Chaitanya
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2020 04:19 AM
Ok.
So may be
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2020 07:00 AM
Hi,
Take a look at my video here: Episode 16 - Upload data with an excel file and Record producer in ServiceNow - YouTube
//Göran
Feel free to connect:
LinkedIn
Subscribe to my YouTube Channel
or look at my Book: The Witch Doctor's Guide To ServiceNow