- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2020 03:42 AM
Hello I am working on Data Source and while doing Transform Map I am using destination table as one of the User Created Table. I have mapped source and target table fields properly with same variable Type, even data is getting imported properly. But while running the transform map no record is getting inserted or updated. Do have any idea on this?
Solved! Go to Solution.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2020 11:43 PM
Hello Everyone
Issue is resolved now.
When ever data was loaded in the import set table, in the import set row table state column was empty. Normally if we re process it state changes to pending.
So I wrote a business rule , whenever import set table state is loaded set the import set row table state to pending. Now its working fine.
Thanks
When to run : after update
Table : sys_import_set
Condtion : current.state == "loaded"
// search all my import set rows and updated them to pending state
reset_import_set_row();
function reset_import_set_row() {
var mu = new GlideMultipleUpdate("sys_import_set_row");
mu.addQuery("sys_import_set", current.sys_id);
mu.setValue("sys_import_state", "pending");
mu.execute();
gs.addInfoMessage(gs.getMessage("import set rows updated to 'Pending' state"));
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2020 09:49 PM
issue persist for scheduled import set as well. After re-process data is getting inserted in the destination table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2020 11:43 PM
Hello Everyone
Issue is resolved now.
When ever data was loaded in the import set table, in the import set row table state column was empty. Normally if we re process it state changes to pending.
So I wrote a business rule , whenever import set table state is loaded set the import set row table state to pending. Now its working fine.
Thanks
When to run : after update
Table : sys_import_set
Condtion : current.state == "loaded"
// search all my import set rows and updated them to pending state
reset_import_set_row();
function reset_import_set_row() {
var mu = new GlideMultipleUpdate("sys_import_set_row");
mu.addQuery("sys_import_set", current.sys_id);
mu.setValue("sys_import_state", "pending");
mu.execute();
gs.addInfoMessage(gs.getMessage("import set rows updated to 'Pending' state"));
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2020 02:12 AM
Hi,
that is somewhat weird behavior; how are you triggering the data source?
Mark ✅ Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
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
04-08-2020 02:40 AM
Through Scheduled import set and Data source type is JDBC and it is Asynchronous mode