- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-17-2019 01:42 PM
I Am testing the functionality of London and manual de-duplication task creation.
I run the following script:
var sysIDs = '4014825d0a0a0b9b00c4db61928034b9, 4014a3010a0a0b9b007e8c84ff4d4abe, 4014bc1c0a0a0b9b008781123ff5a5e3';
var dupTaskUtil = new CMDBDuplicateTaskUtils();
var deDupTaskID = dupTaskUtil.createDuplicateTask(sysIDs);
gs.info(deDupTaskID);
This task should create a de-duplication task with the 3 CIs identified by their sysIDs.
I get a new Remediate Duplicate Task entry with a short description of "Manually found duplicate records".
On the Duplicate Audit Results tab, I get three entries, but the actual CI is only present for one of the entries. The other two show up as (empty). Am I doing something wrong or have I found a bug?
Scot
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2019 03:13 PM
Hey Scot,
I was having the same issue and figured out, you shouldn't have any spaces in the sysIDs variable.
Example:
So you shouldn't have:
var sysIDs = '4014825d0a0a0b9b00c4db61928034b9, 4014a3010a0a0b9b007e8c84ff4d4abe';
It should be :
var sysIDs = '4014825d0a0a0b9b00c4db61928034b9,4014a3010a0a0b9b007e8c84ff4d4abe';
Regards,
Abdul Elsaid

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-02-2019 07:50 AM
Hi Scot -- I was having the same issue as you and found this to work:
//Manually create remediate duplicate task for Oracle Instance with the same name
//using script include CMDBDuplicateTaskUtils
var taskSysId = new CMDBDuplicateTaskUtils().createDuplicateTask("0b0c115f4f2356006d01f7e18110c744,86ba48644f7b17006d01f7e18110c75a");
gs.print(taskSysId);
Let me know how you make out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2019 03:13 PM
Hey Scot,
I was having the same issue and figured out, you shouldn't have any spaces in the sysIDs variable.
Example:
So you shouldn't have:
var sysIDs = '4014825d0a0a0b9b00c4db61928034b9, 4014a3010a0a0b9b007e8c84ff4d4abe';
It should be :
var sysIDs = '4014825d0a0a0b9b00c4db61928034b9,4014a3010a0a0b9b007e8c84ff4d4abe';
Regards,
Abdul Elsaid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2019 12:55 PM
Thanks for the review. We ended up going straight from Kingston to Madrid and i didn't have a chance to review anything more with it.
Since then, I've been busy on other things. Would like fix it so that I could tie a UI action with building the actual de-duplication task but have just been too busy on other things.
Scot.