CMDBDuplicateTaskUtils creates De-duplication task with missing CIs in London

Scot Eagle1
Giga Contributor

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?

 

find_real_file.png

 

Scot

 

1 ACCEPTED SOLUTION

abduleelsaid
Giga Expert

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

 

 

View solution in original post

3 REPLIES 3

jennif
Giga Contributor

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.

abduleelsaid
Giga Expert

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

 

 

Scot Eagle1
Giga Contributor

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.