Insert error using IdentificationEngine.createOrUpdateCI

Miles Clark
Tera Contributor

I'm attempting to create Windows and Linux servers (in the cmdb_ci_win_server and cmdb_ci_linux_server tables) from a Scoped App using the Scoped API sn_cmdb.IdentificationEngine.createOrUpdateCI().  Initial this was working well, but I'm running into insert errors of the form:

 

"errors": [ { "error": "INSERT_FAILED", "message": "Insertion failed with error: Error during insert of cmdb_ci_linux_server (my test linux server 7)" }

 

Looking at the logs, there's a stack trace that includes the following: 

 

Duplicate entry '4563f2cf97ff1150c689737e6253afaa' for key 'PRIMARY'

 

As far as I can tell, the API is only called once, so I'm unclear how a duplicate entry could be created.

 

Regardless of the error, the record does get inserted and can be reported on.

 

Beyond the stack trace that includes the message above, the entires in the system log don't give me enough information to figure out what the issue is.

 

Any suggestions on how to troubleshoot this issue?  Many thanks in advance!

 

1 REPLY 1

akkkiii95
Tera Contributor